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.
Youtube stream only last 4 hours are downloaded. #24730
Comments
|
Something changed 1 hour ago and now the full 12 hours of the stream are visible on Desktop at the same URI. I don't know what was changed. https://www.youtube.com/watch?v=ntu4ik4otfo&lc=UgxY4u5nf5lzR2kn1c14AaABAg.97Hxh9vu8Sq97JreVRUSbw |
|
Handles what? youtube-dl acts like browser no more no less. |
|
uh, i think this should have been given a little more consideration. I'm running into the same problem right now trying to grab a 7 hour live-stream and it is only returning the last 4 hours (to the second, exactly 4:00:00) even though the other 3+ are still available online. This happens with both merging separate streams as well as trying a lower-res version that is HLS and unified audio-video already. Still only getting the last 4 hours right now. or maybe just document the 4 hour thing for live streams as a temporary thing. I just went and tried it again today (about 12 hours later), just like the original issue reporter did, and now I'm getting all 7+ hours. It seems it is just a matter of live streams that it takes time before the video content is fully converted to a stable stream. |
|
Yes, YouTube takes some time to process longer streams after they have ended. Usually on mobile you can see the whole stream immediately, but for browsers it can take even over 24 hours to fully show up. This is a bit problematic if you run automatic archivals periodically for certain channels, since you can’t really know if youtube-dl has actually fully downloaded livestreamed videos without going through all of them one by one. There won’t be any errors, because this is simply how YouTube serves the content to browsers. I don’t know if there’s any way to programmatically determine if a livestream has been processed after it has ended. So I’m not really sure if this can be handled in a good way from youtube-dl’s side. |
Checklist
Description
For this video
https://www.youtube.com/watch?v=ntu4ik4otfo
on Desktop and youtube-dl only the last 4 hours are downloaded.
On the mobile app it is possible to view the full 12 hours of the live stream.
Verbose log
Only pasting the short log here, because the issue is easily reproducable. My log is not relevant: