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.
[heavy-r.com] Connection interrupt leads to unplayable video file #20869
Comments
|
Redownloading starting few bytes back won't make any difference if a webserver handles range requests improperly. |
Checklist
Verbose log
Description
After a connection interrupt - quite oftently caused by the webserver - the video file is broken and unplayable.
As you can see in the log, after 78.8%, the connection broke down. The video file is only playable up to this point. After that, broken.
Unfortunately, the same issue occurs, when you download the url with
wget. It happens with a lot of videos on that platform recently. It's not due to one broken file, nor does it happen at the same point in the file all the time. Downloading becomes a role the dice game.Seems like the web server doesn't properly resume the connection at the requested byte.
Youtube-dl should go back a little and redownload a few kilobytes and or binary overlap the downloaded part and the new part instead of just appending the new to the old.