scivision / PyLivestream

Pure Python FFmpeg-based live video / audio streaming to YouTube, Facebook, Periscope, Twitch, and more
Apache License 2.0
710 stars 157 forks source link

24/7 Youtube music stream #20

Closed ohld closed 5 years ago

ohld commented 5 years ago

Hi! I just found your project and it looks awesome!

Is it possible to create 24/7 audio music stream (grab *.mp3 from folder or internet audio stream and set some *.png or *.gif as an 'video') with your library? And push it all to Youtube?

If yes - can you please describe how can this be deployed? I'd very like to run all of this on my raspberry pi.

Thanks! And great job!

scivision commented 5 years ago

Yes the command would be like:

FileGlobLivestream /home/user/myaudio youtube -glob "*.mp3" -image /home/user/pictures/myimg.png
ohld commented 5 years ago

Thanks! I'll try it. How should I login into youtube?

scivision commented 5 years ago

https://www.youtube.com/live_dashboard

at the bottom is "encoder setup" that gives you the secret code to put into the file youtube.key which is in the same directory as stream.ini