scivision / PyLivestream

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

Playlist #85

Closed Ch41r05 closed 1 year ago

Ch41r05 commented 1 year ago

This is a first approach at resolving the issue that plagues multiple file streaming with an online/offline constant transition since the stream is reinitialized for each file. With this approach we use both the playlist and stream_loop features of ffmpeg. What I couldn't adapt to this kind of approach were input file randomization and captions. I guess there could be a way for both of them to work if we could get back information from ffmmpeg execution, such as the current file that's being streamed so that in an asynchronous way we could reshuffle the playlist string.