abayochocoball/hollow_memories

[improvement] Download live streams with Youtube-dl without corruption

DarkMahesvara opened this issue · 0 comments

https://github.com/abayochocoball/hollow_memories/blob/master/archiving_livestreams.md#recording-regular-streams

"Youtube-dl can record livestreams as well but Streamlink offers a better user experience for this scenario (it is common for people to corrupt their livestream recordings with youtube-dl). "

There is actually an option with ffmpeg to automatically stop the recording when the stream ends.

--external-downloader-args "'-m3u8_hold_counters' 10" will timeout the recording after 10 seconds (can be longer or shorter).
see: https://ffmpeg.org/ffmpeg-formats.html#hls-1

Currently i only got it working on Windows and not Linux (Ubuntu) which might be because of a difference with the ffmpeg version/features on different platforms (or the syntax is different?).