

The source code is licensed under GPL v3.

Use at your own risk and don't bother opening up any issues if something breaks or the video goes out of sync. Support for VP9 livestreams has been added, but is highly experimental at this point and therefore commented out. The time limit here is usually about 12 hours. The first segments of those livestreams have long been deleted at this point, so the script just fails. youtube_stream_capture attempts to go back to the very first segment of a livestream by design. Livestreams that have been running for multiple days (such as the 24/7 music livestreams) are not supported. $ python3 youtube_stream_capture.py -cookie-file /mnt/c/Users/mrwnwttk/Desktop/cookie.txt Requires python3, aria2c, ffmpeg as well as ffprobe (usually bundled with ffmpeg) to be installed and on your systems' PATH. This code might break at some point in the future, please don't bother reaching out to me about it. Since then better tools have made their way onto the internet capable of doing the exact same thing, one of them being ytarchive, which has many of the features that I wanted to implement myself but never got around to, including threads. While it was the first tool capable of retroactively archiving YouTube livestreams, the code could always best be described as a whole bunch of band-aid fixes stacked on top of one another. I've marked it as read-only and disabled the issues tab. This repository is no longer being maintained by me. Unlike other recording solutions such as streamlink, youtube_stream_capture does not need to be restarted after six hours and therefore can record livestreams without any gaps. Record YouTube livestreams from start to finish, that includes the ability to rewind up to 12 hours regardless of whether the actual YouTube player allows it or not.
