question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Youtube] Did not get any data blocks for format 22

See original GitHub issue

Checklist

  • I’m reporting a broken site
  • I’ve verified that I’m running yt-dlp version 2022.04.08 (update instructions) or later (specify commit)
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I’ve read the guidelines for opening an issue
  • I’ve read about sharing account credentials and I’m willing to share it if required

Region

United States

Description

Hello, I’m attempting to download this video, but every time I try, I get β€œERROR: Did not get any data blocks”.

This is the video URL: https://www.youtube.com/watch?v=Crt__iGLuoc

Verbose log

[debug] Command-line config: ['-vU', 'https://www.youtube.com/watch?v=Crt__iGLuo
c']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8 (No ANSI), err utf-8 (No A
NSI), pref cp1252
[debug] yt-dlp version 2022.04.08 [7884ade] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: avconv -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] Checking exe version: avprobe -bsfs
[debug] exe versions: none
[debug] Optional libraries: brotli, certifi, Cryptodome, mutagen, sqlite, websoc
kets
[debug] Proxy map: {}
Latest version: 2022.04.08, Current version: 2022.04.08
yt-dlp is up to date (2022.04.08)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=Crt__iGLuoc
[youtube] Crt__iGLuoc: Downloading webpage
[youtube] Crt__iGLuoc: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:
vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source
, vcodec:vp9.2(10), acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr
, vext, aext, hasaud, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] Crt__iGLuoc: Downloading 1 format(s): 22
[debug] Invoking downloader on "https://rr3---sn-nx5s7n76.googlevideo.com/videop
layback?expire=1649559160&ei=GPJRYoO_BYKSsfIPjcmymAM&ip=2601%3A602%3A8a80%3A6a80
%3Ab8fb%3A5a05%3A8046%3A13d1&id=o-AOjk_BNMvIoqJKbwt-bJl12F5R4tNk6pklRKncW83062&i
tag=22&source=youtube&requiressl=yes&mh=V-&mm=31%2C29&mn=sn-nx5s7n76%2Csn-nx57yn
ld&ms=au%2Crdu&mv=m&mvi=3&pl=36&initcwndbps=2032500&vprv=1&mime=video%2Fmp4&cnr=
14&ratebypass=yes&dur=854.819&lmt=1649515077461736&mt=1649537103&fvip=6&fexp=240
01373%2C24007246&c=ANDROID&rbqsm=fa&txp=4432434&sparams=expire%2Cei%2Cip%2Cid%2C
itag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig=AOq0
QJ8wRAIgf1T5hQxYvQ6ahKlDtcrh-5hEjqp4i2pB7WjZ_HOgCOkCIBtSXTi50m6Z4YZcKfibhWAFrjCu
u_39F-7a96mttRaQ&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=A
G3C_xAwRQIgVoH7K2ESLMWHtHtFiNcG3TIKYxsDb48Gcjx2YsupAD0CIQCZafBSCdy4hOFJdXVlCqPSc
5e0nT2ib25ON40MMuuJGw%3D%3D"
[download] Resuming download at byte 395115


ERROR: Did not get any data blocks
  File "yt_dlp\__main__.py", line 19, in <module>
  File "yt_dlp\__init__.py", line 869, in main
  File "yt_dlp\__init__.py", line 859, in _real_main
  File "yt_dlp\YoutubeDL.py", line 3264, in download
  File "yt_dlp\YoutubeDL.py", line 3237, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1399, in extract_info
  File "yt_dlp\YoutubeDL.py", line 1408, in wrapper
  File "yt_dlp\YoutubeDL.py", line 1492, in __extract_info
  File "yt_dlp\YoutubeDL.py", line 1548, in process_ie_result
  File "yt_dlp\YoutubeDL.py", line 2648, in process_video_result
  File "yt_dlp\YoutubeDL.py", line 3138, in process_info
  File "yt_dlp\YoutubeDL.py", line 2846, in dl
  File "yt_dlp\downloader\common.py", line 457, in download
  File "yt_dlp\downloader\http.py", line 370, in real_download
  File "yt_dlp\downloader\http.py", line 339, in download
  File "yt_dlp\downloader\common.py", line 178, in report_error
  File "yt_dlp\YoutubeDL.py", line 950, in report_error
  File "yt_dlp\YoutubeDL.py", line 884, in trouble

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:5
  • Comments:64 (17 by maintainers)

github_iconTop GitHub Comments

7reactions
Goldpawcommented, Apr 21, 2022

…and solved.

Got a hint from this that the issue was downloading mp4 in some cases, so I listed the formats and chose a webm stream instead. Then it worked.

~$ yt-dlp --list-formats https://www.youtube.com/watch?v=GnXk6Pex0SE 

[youtube] GnXk6Pex0SE: Downloading webpage
[youtube] GnXk6Pex0SE: Downloading android player API JSON
[info] Available formats for GnXk6Pex0SE:
ID  EXT   RESOLUTION FPS β”‚   FILESIZE   TBR PROTO β”‚ VCODEC        VBR ACODEC      ABR     ASR MORE INFO
────────────────────────────────────────────────────────────────────────────────────────────────────────────────
sb2 mhtml 48x27          β”‚                  mhtml β”‚ images                                    storyboard
sb1 mhtml 80x45          β”‚                  mhtml β”‚ images                                    storyboard
sb0 mhtml 160x90         β”‚                  mhtml β”‚ images                                    storyboard
139 m4a   audio only     β”‚    4.50MiB   48k https β”‚ audio only        mp4a.40.5   48k 22050Hz low, m4a_dash
249 webm  audio only     β”‚    4.63MiB   50k https β”‚ audio only        opus        50k 48000Hz low, webm_dash
250 webm  audio only     β”‚    5.99MiB   64k https β”‚ audio only        opus        64k 48000Hz low, webm_dash
140 m4a   audio only     β”‚   11.95MiB  129k https β”‚ audio only        mp4a.40.2  129k 44100Hz medium, m4a_dash
251 webm  audio only     β”‚   11.05MiB  119k https β”‚ audio only        opus       119k 48000Hz medium, webm_dash
17  3gp   176x144      6 β”‚    7.62MiB   82k https β”‚ mp4v.20.3     82k mp4a.40.2    0k 22050Hz 144p
160 mp4   256x144     25 β”‚    7.45MiB   80k https β”‚ avc1.4d400c   80k video only              144p, mp4_dash
278 webm  256x144     25 β”‚    7.47MiB   80k https β”‚ vp9           80k video only              144p, webm_dash
133 mp4   426x240     25 β”‚   15.89MiB  172k https β”‚ avc1.4d4015  172k video only              240p, mp4_dash
242 webm  426x240     25 β”‚   13.33MiB  144k https β”‚ vp9          144k video only              240p, webm_dash
134 mp4   640x360     25 β”‚   29.41MiB  318k https β”‚ avc1.4d401e  318k video only              360p, mp4_dash
18  mp4   640x360     25 β”‚   45.91MiB  497k https β”‚ avc1.42001E  497k mp4a.40.2    0k 44100Hz 360p
243 webm  640x360     25 β”‚   22.90MiB  248k https β”‚ vp9          248k video only              360p, webm_dash
135 mp4   854x480     25 β”‚   63.53MiB  688k https β”‚ avc1.4d401e  688k video only              480p, mp4_dash
244 webm  854x480     25 β”‚   37.29MiB  404k https β”‚ vp9          404k video only              480p, webm_dash
136 mp4   1280x720    25 β”‚  119.43MiB 1294k https β”‚ avc1.64001f 1294k video only              720p, mp4_dash
22  mp4   1280x720    25 β”‚ ~ 96.75MiB 1023k https β”‚ avc1.64001F 1023k mp4a.40.2    0k 44100Hz 720p
247 webm  1280x720    25 β”‚   69.13MiB  749k https β”‚ vp9          749k video only              720p, webm_dash
298 mp4   1280x720    50 β”‚  153.51MiB 1663k https β”‚ avc1.640020 1663k video only              720p50, mp4_dash
302 webm  1280x720    50 β”‚  107.75MiB 1167k https β”‚ vp9         1167k video only              720p50, webm_dash
299 mp4   1920x1080   50 β”‚  269.23MiB 2917k https β”‚ avc1.64002a 2917k video only              1080p50, mp4_dash
303 webm  1920x1080   50 β”‚  200.36MiB 2171k https β”‚ vp9         2171k video only              1080p50, webm_dash

~$ yt-dlp -f 303 --no-continue https://www.youtube.com/watch?v=GnXk6Pex0SE

[youtube] GnXk6Pex0SE: Downloading webpage
[youtube] GnXk6Pex0SE: Downloading android player API JSON
[info] GnXk6Pex0SE: Downloading 1 format(s): 303
[download] Destination: Modifying a Harley Benton Jazzmaster Kit _ #DIYKitChallenge22 Part 1 [GnXk6Pex0SE].webm
[download] 100% of 200.36MiB in 00:21
2reactions
xxxLCxxxcommented, Jun 14, 2022

It certainly is one in regard to biting me away from here. Noted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"ERROR: Did not get any data blocks" : r/youtubedl - Reddit
any connection error is either network related, firewall related, or youtube server related. it's not uncommon for one of their many servers to...
Read more >
Trying to download a youtube video, but getting a weird ...
Youtube videos are sometimes displayed in segments, and not every download program knows how to handle this. According to your error,Β ...
Read more >
Problem downloading the YouTube video - VideoHelp Forum
I'm having a lot of problems downloading a youtube video. I figure this must be down to the age ... ERROR: Did not...
Read more >
Ubuntu Manpage: youtube-dl
--ignore-config Do not read configuration files. ... manifests and related data on YouTube videos --merge-output-format FORMAT If a merge is required (e.g.Β ...
Read more >
yt-dlp - PyPI
Split video by chapters: Videos can be split into multiple files based on chapters ... format-spec to revert this; Unlike youtube-dlc, yt-dlp does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found