Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Corrupt youtube live streams if saved immedaitely after stream ends #25570
Comments
|
I see you've labled this a duplicate. I can appreciate if it's your project that you may be exhausted from seeing the same questions asked. I still cannot find this issue when I search for it, as I coudn't before I originally asked. I can only find questions about how to save an ongoing live stream on youtube. This may just be a lack of ability or skill on my part. I may be abysmal at finding things. However, this does not negate that linking to the duplicate would be much appreciated by me and others coming across this in the future, if this question has been asked already, as you hae demonstrated that you know this has been asked previously and are in the best position to show where. Many thanks. |
Checklist
Question
WRITE QUESTION HERE
I've run into this scenario a few times lately where I want to save a YouTube stream that has just finished broadcasting. For example, I will try the following in terminal, which works for a regular, non-live stream by saving a local version of the YouTube video (this is just an example url):
youtube-dl https://youtu.be/CPYjM30DfCkIf I try the same on a YouTube stream that's just ended it initially appears to work fine. I'm afraid I've not saved the terminal output from the last attempt to illustrate, apologies, and I cannot recreate the same example without having a stream that has just ended in the last few minutes. While not as useful, I can describe the result as it's predictable each time:
This happens each time I try and save a live stream after it's finished. If I try and save it while it's broadcasting it saves it in parallel, live, and I can't seem to save it from the beginning.
The interesting thing is that if I wait an hour or so, after finishing, the live video will now save fine. I'm assuming that YouTube perhaps re-renders/saves the live video to a different format in the hour and that's why it saves fine if I leave it long enough?
What I'm wondering is there any way of repairing/rescuing the videos that save? The URL for one is no longer accessible and I have a 900mb video that is exhibiting the problems I stated above. I'm not sure if it's a case of missing headers but I would hope that the filesize being this large would suggest the majority is salvageable?