Fix HTTP Error When Downloading YouTube Videos

httpvideo conversionyoutubeyoutube-dl

Have been trying this video. https://www.youtube.com/watch?v=mBKKZN1MMBM.
Youtube-dl doesn't work. Convert.io and https://www.onlinevideoconverter.com manually also failed.
What could have gone wrong here?

EDIT

(base) C:\Users\vx>youtube-dl https://www.youtube.com/watch?v=mBKKZN1MMBM
[youtube] mBKKZN1MMBM: Downloading webpage
[youtube] mBKKZN1MMBM: Downloading video info webpage
[youtube] mBKKZN1MMBM: Downloading MPD manifest
[download] Destination: Flask error handling - Python on the web - Learning Flask Ep. 18-mBKKZN1MMBM.mp4
[download]   0.5% of 69.84MiB at 380.54KiB/s ETA 03:07[download] Got server HTTP error: Downloaded 348996 bytes, expected 73232110 bytes. Retrying (attempt 1 of 10)...


ERROR: Did not get any data blocks

Best Answer

Youtube videos are sometimes displayed in segments, and not every download program knows how to handle this.

According to your error, I would guess that the first segment had the size of 348996 bytes, while the total size was 73232110 bytes, so the download did not proceed to the second segment, but instead aborted.

I have used another online downloader : y2mate.com, which had no problem with it (link).

Related Question