go-chromecast icon indicating copy to clipboard operation
go-chromecast copied to clipboard

Raspberry pi & crontab Q

Open kimasplund opened this issue 3 years ago • 2 comments

Hey guys. Seems like a great project. But can i just run this from chrontab and have it cast continuously from a folder of mp3's to a chromecast audio group? or am i missing something here?

kimasplund avatar Oct 06 '22 10:10 kimasplund

Hello @kimasplund, if I'm understanding correctly, you should be able to use go-chromecast playlist <folder> https://github.com/vishen/go-chromecast#playlist-1. However I haven't used this functionality in a while so it may not work as expected. If it doesn't, let me know and I can look at fixing it, or altering it.

vishen avatar Oct 07 '22 23:10 vishen

Oh actually yes that works. Just me being impatient and thinking its not working when it for some reason transcodes the mp3's before it plays them. Transcode a few min, play the file, stops and transcodes next one, plays the file and so on. -Does it need to transcode mp3's? -Can it transcode in the background continuesly if needed? -Will it rescan the directory?

and perhaps there is some timeouts happening?

ERRO[10:31:54] error transcoding                             error="exit status 1" filename=/home/pi/shared/Ambient/Franco_Galateo_-_11-_now_she_an__angel.mp3 package=application                       │
│ERRO[10:37:27] error transcoding                             error="write tcp 192.168.86.26:41747->192.168.86.33:60950: write: broken pipe" filename=/home/pi/shared/Ambient/Raw_Vibrations_-_Relaxing_Ze│
│

kimasplund avatar Oct 13 '22 09:10 kimasplund