vachau / youtube-restreamer

Automatically monitor a YouTube channel for livestreams and restream them to another YouTube channel or any other streaming service.
MIT License
6 stars 4 forks source link

Last few seconds of the stream loop for a minute or so after the source stream ends #3

Open vachau opened 3 years ago

vachau commented 3 years ago

FFmpeg's HLS downloader will continue waiting for data after when the stream ends, so the ending is only detected when the call is made to the youtube api which happens less frequently. Can be fixed by making sure that the upload retry offset >= event loop delay

vachau commented 3 years ago

Problem reduced not fixed, now loops delay seconds * # retries