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 - bad request when specified format restriction on height #15257
Comments
|
Most likely the problem is due to your proxy. |
|
@dstftw How did you reach this conclusion ? it's working fine without height restriction. Plus I have downloaded like a thousand videos this way. |
|
Please, try to reproduce it and confirm :
|
PS E:\test> youtube-dl --ignore-config --verbose --format '[height<=720]' T6f1-nEjDdM
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', '--format', '[height<=720]', 'T6f1-nEjDdM']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.01.14
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.4.1, ffprobe 3.4.1, phantomjs 2.1.1
[debug] Proxy map: {}
[youtube] T6f1-nEjDdM: Downloading webpage
[youtube] T6f1-nEjDdM: Downloading video info webpage
[youtube] T6f1-nEjDdM: Extracting video information
[debug] Invoking downloader on 'https://r5---sn-4g5edn7e.googlevideo.com/videoplayback?mn=sn-4g5edn7e&ipbits=0&expire=1516031473&ratebypass=yes&ms=au&lmt=1503469642833792&ei=kXlcWo7PJMTGcIKCvqAG&dur=662.720&pl=20&id=o-ACZ7QuasiYc1AcTJIsO-FOTYdy-XlysQRwZwix-tVv4t&initcwndbps=718750&mv=m&source=youtube&signature=75FC53C5004B180EA688603AD24EB1ADA961F216.40B80DCAE3F0C35D9B6706622DEC8CE76C1614A9&key=yt6&mime=video%2Fmp4&requiressl=yes&ip=92.75.1.118&mm=31&sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&itag=22&mt=1516009736'
[download] Destination: Humans and Nature and Creation - Crash Course World Mythology #6-T6f1-nEjDdM.mp4
[download] 0.3% of 89.19MiB at 1.39MiB/s ETA 01:03 [download] Got server HTTP error: Downloaded 289165 bytes, expected 93517591 bytes. Retrying (attempt 1 of 10)...
[download] Resuming download at byte 289165
[download] Destination: Humans and Nature and Creation - Crash Course World Mythology #6-T6f1-nEjDdM.mp4
[download] 0.4% of 89.19MiB at 448.49KiB/s ETA 03:22[download] Got server HTTP error: Downloaded 354169 bytes, expected 93517591 bytes. Retrying (attempt 2 of 10)...
[download] Resuming download at byte 354169
ERROR: Did not get any data blocks
File "__main__.py", line 19, in <module>
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\__init__.py", line 465, in main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\__init__.py", line 455, in _real_main
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 1988, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 795, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 849, in process_ie_result
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 1622, in process_video_result
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 1895, in process_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 1834, in dl
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\downloader\common.py", line 361, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\downloader\http.py", line 287, in real_download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\downloader\http.py", line 257, in download
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\downloader\common.py", line 163, in report_error
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 612, in report_error
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpo17hktrm\build\youtube_dl\YoutubeDL.py", line 574, in trouble
PS E:\test>What are you actually trying to achieve with |
|
Thank you @Hrxn for responding and confirming. |
|
|
Description of your issue, suggested solution and other information
Seems like the extracted video URL is not valid. However, when I also tried without specifying format restriction (height<=720) it worked fine. This is the only youtube video that I had problem with. (This never occurred to me at least for many other videos)