Trying to download a youtube video, but getting a weird incomprehensible http error, even via tools

1

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

AlexZheda

Posted 2019-07-13T19:07:16.940

Reputation: 13

Well, without the error message our guess is as good as yours. – Appleoddity – 2019-07-13T19:22:49.667

I just thought someone can try and reproduce it. But this error is not very informative to me. – AlexZheda – 2019-07-13T19:28:18.240

Answers

0

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).

harrymc

Posted 2019-07-13T19:07:16.940

Reputation: 306 093

Do you know if there is a way to pass some params to youtube-dl to make it handle the segments? Or some other python library that can handle that? It seems that youtube is increasingly offering such segmenting on its videos. – AlexZheda – 2019-07-13T19:43:49.303

Sorry, I don't know of any such option for youtube-dl, and the documentation makes no mention of it. I fear you will need to find another tool. – harrymc – 2019-07-13T20:02:32.350

If my answer has helped with the problem, please accept it (tick the V sign). – harrymc – 2019-07-13T20:02:40.400

of course I will accept it :) I just wanted to wait if anyone might know an alternative python library. – AlexZheda – 2019-07-13T20:20:39.780

also, a great website y2mate! thanks a lot! – AlexZheda – 2019-07-13T20:21:41.133

0

Do this to update youtube-dl;

$ youtube-dl -U

... then retry the video download.

youtube-dl is updated frequently...
if a download isn't working, always first try an update.


Example run:

$ youtube-dl https://www.youtube.com/watch?v=mBKKZN1MMBM
[youtube] mBKKZN1MMBM: Downloading webpage
[youtube] mBKKZN1MMBM: Downloading video info webpage
[youtube] mBKKZN1MMBM: Downloading MPD manifest
[dashsegments] Total fragments: 180
[download] Destination: Flask error handling - Python on the web - Learning Flask Ep. 18-mBKKZN1MMBM.f299.mp4
[download] 100% of 127.05MiB in 00:14
[dashsegments] Total fragments: 92
[download] Destination: Flask error handling - Python on the web - Learning Flask Ep. 18-mBKKZN1MMBM.f140.m4a
[download] 100% of 13.94MiB in 00:04
[ffmpeg] Merging formats into "Flask error handling - Python on the web - Learning Flask Ep. 18-mBKKZN1MMBM.mp4"
Deleting original file Flask error handling - Python on the web - Learning Flask Ep. 18-mBKKZN1MMBM.f299.mp4 (pass -k to keep)
Deleting original file Flask error handling - Python on the web - Learning Flask Ep. 18-mBKKZN1MMBM.f140.m4a (pass -k to keep)

Hannu

Posted 2019-07-13T19:07:16.940

Reputation: 4 950

From what I can see the DL is working here, locally... – Hannu – 2019-07-13T21:04:29.597

Hm. I just tried it and it's the same even though I am using the version from like today. ERROR: Did not get any data blocks – AlexZheda – 2019-07-13T22:30:11.790

Apparently there is a new version today -> Updating to version 2019.07.16 – Hannu – 2019-07-16T16:07:05.677