What am I doing wrong: Unable to get 480p from YouTube
See original GitHub issuePlease follow the guide below
- You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
- Put an
x
into all the boxes [ ] relevant to your issue (like that [x]) - Use Preview tab to see how your issue will actually look like
Make sure you are using the latest version: run youtube-dl --version
and ensure your version is 2016.06.23.1. If it’s not read this FAQ entry and update. Issues with outdated version will be rejected.
- [ x] I’ve verified and I assure that I’m running youtube-dl 2016.06.23.1
Before submitting an issue make sure you have:
- [x ] At least skimmed through README and most notably FAQ and BUGS sections
- [x ] Searched the bugtracker for similar issues including closed ones
What is the purpose of your issue?
- Bug report (encountered problems with youtube-dl)
- Site support request (request for adding support for a new site)
- Feature request (request for a new functionality)
- [x ] Question
- Other
I’m unable to download 480p videos from youtube.
I don’t want to spend the disk space / bandwidth for 720p’s, and 360p’s lack sufficient detail in many cases.
keybounceMBP:Zisteau michael$ cat ~/.config/youtube-dl/config
--no-mtime
-o %(title)s.%(ext)s
-f "best[height<=480]/bestvideo[height<=480]+bestaudio"
--write-sub
--embed-subs
--recode-video mp4
keybounceMBP:Zisteau michael$
That should be straight forward. Best that is 480, otherwise, best video that is 480, combined with best audio. Subtitles if there. Make it mp4 if it was flv.
keybounceMBP:Zisteau michael$ youtube-dl -F https://www.youtube.com/watch?v=L4QIjGKOwdg
[youtube] L4QIjGKOwdg: Downloading webpage
[youtube] L4QIjGKOwdg: Downloading video info webpage
[youtube] L4QIjGKOwdg: Extracting video information
WARNING: video doesn't have subtitles
[youtube] L4QIjGKOwdg: Downloading MPD manifest
[info] Available formats for L4QIjGKOwdg:
format code extension resolution note
249 webm audio only DASH audio 55k , opus @ 50k (48000Hz), 12.20MiB
250 webm audio only DASH audio 75k , opus @ 70k (48000Hz), 14.98MiB
171 webm audio only DASH audio 110k , vorbis@128k (44100Hz), 24.73MiB
140 m4a audio only DASH audio 129k , m4a_dash container, mp4a.40.2@128k (44100Hz), 30.73MiB
251 webm audio only DASH audio 147k , opus @160k (48000Hz), 27.60MiB
160 mp4 256x144 DASH video 118k , avc1.4d400c, 30fps, video only, 26.60MiB
278 webm 256x144 DASH video 129k , webm container, vp9, 30fps, video only, 25.24MiB
133 mp4 426x240 DASH video 258k , avc1.4d4015, 30fps, video only, 59.50MiB
242 webm 426x240 DASH video 291k , vp9, 30fps, video only, 54.43MiB
243 webm 640x360 DASH video 535k , vp9, 30fps, video only, 101.29MiB
134 mp4 640x360 DASH video 653k , avc1.4d401e, 30fps, video only, 121.76MiB
244 webm 854x480 DASH video 957k , vp9, 30fps, video only, 179.94MiB
135 mp4 854x480 DASH video 1191k , avc1.4d401f, 30fps, video only, 232.57MiB
247 webm 1280x720 720p 1888k , vp9, 30fps, video only, 348.94MiB
136 mp4 1280x720 720p 2380k , avc1.4d401f, 30fps, video only, 433.36MiB
302 webm 1280x720 DASH video 3220k , vp9, 60fps, video only, 572.16MiB
248 webm 1920x1080 1080p 3340k , vp9, 30fps, video only, 618.66MiB
298 mp4 1280x720 DASH video 3548k , avc1.4d4020, 60fps, video only, 708.06MiB
137 mp4 1920x1080 1080p 4435k , avc1.640028, 30fps, video only, 767.41MiB
303 webm 1920x1080 DASH video 5395k , vp9, 60fps, video only, 994.70MiB
299 mp4 1920x1080 DASH video 5921k , avc1.64002a, 60fps, video only, 1.23GiB
17 3gp 176x144 small , mp4v.20.3, mp4a.40.2@ 24k
36 3gp 320x180 small , mp4v.20.3, mp4a.40.2
43 webm 640x360 medium , vp8.0, vorbis@128k
18 mp4 640x360 medium , avc1.42001E, mp4a.40.2@ 96k
22 mp4 1280x720 hd720 , avc1.64001F, mp4a.40.2@192k (best)
keybounceMBP:Zisteau michael$
So … Yea, this has an 854x480 version. DASH mp4 format. Video only. Plus audio. So what I want is there, right?
keybounceMBP:Zisteau michael$ youtube-dl -v https://www.youtube.com/watch?v=L4QIjGKOwdg
[debug] System config: []
[debug] User config: [u'--no-mtime', u'-o', u'%(title)s.%(ext)s', u'-f', u'best[height<=480]/bestvideo[height<=480]+bestaudio', u'--write-sub', u'--embed-subs', u'--recode-video', u'mp4']
[debug] Command-line args: [u'-v', u'https://www.youtube.com/watch?v=L4QIjGKOwdg']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.23.1
[debug] Python version 2.7.5 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg N-74965-g26a0cd1-tessus, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] L4QIjGKOwdg: Downloading webpage
[youtube] L4QIjGKOwdg: Downloading video info webpage
[youtube] L4QIjGKOwdg: Extracting video information
WARNING: video doesn't have subtitles
[youtube] L4QIjGKOwdg: Downloading MPD manifest
[debug] Invoking downloader on u'https://r13---sn-a5m7lne6.googlevideo.com/videoplayback?ratebypass=yes&signature=D677CDF927B57E842AF23945A9DF91914B211A8A.53341825213D071A7611319D18BACB43A5627EBA&fexp=9414904%2C9416126%2C9416891%2C9419451%2C9422596%2C9426150%2C9428398%2C9431012%2C9432564%2C9433096%2C9433380%2C9433946%2C9434183%2C9435408%2C9435526%2C9435734%2C9435876%2C9435988%2C9436008%2C9436617%2C9437066%2C9437403%2C9437553%2C9437674%2C9437742%2C9438140%2C9438661%2C9439551%2C9439653%2C9439848%2C9439969&itag=18&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&key=yt6&nh=IgpwcjAyLmxheDE2KgkxMjcuMC4wLjE&requiressl=yes&source=youtube&pl=52&mime=video%2Fmp4&lmt=1466504212109756&sver=3&expire=1466676258&upn=7pMBkssagsM&initcwndbps=360000&id=o-AKwHucSOVhGUTuIHO--6SgC8kh-b9A1YV-iGYk77Ci3Q&mn=sn-a5m7lne6&mm=31&ipbits=0&ms=au&dur=2028.704&mv=m&mt=1466654539&ip=2602%3A302%3Ad19e%3A6430%3Af8b5%3Ab945%3A6b76%3A2d9b'
[download] Destination: Captive Minecraft IV - Rules That Matter #5 - Bottom.mp4
[download] 1.9% of 171.28MiB at 1.23MiB/s ETA 02:16^C
ERROR: Interrupted by user
keybounceMBP:Zisteau michael$
So what am I doing wrong?
Issue Analytics
- State:
- Created 7 years ago
- Comments:15
Top Results From Across the Web
How To FIX Youtube 480p Issue, Enable PIP Mode And More ...
Your browser can't play this video. ... watch videos in 4k and more Please do join our Telegram Group for some exclusive wallpapers...
Read more >How to Disable Auto Video Quality 480p on Youtube and Set ...
Copy link. Info. Shopping. Tap to unmute. If playback doesn't begin shortly, try restarting your device. Your browser can't play this video.
Read more >YOUTUBE VIDEO Only Shows 480p 360p or 240p in YouTube
YOUTUBE VIDEO Only Shows 480p 360p or 240p in YouTube - How to FIX ITSupport channel with PAYPAL ... Your browser can't play...
Read more >How To Fix It & Get 1080p & 4K Video Quality Back - YouTube
How to fix it and get your 1080p and 4K video quality back.Link To Our Amazon Page to ... View products. Your browser...
Read more >Youtube auto quality disable/turn off 480p - YouTube
How to fix/disable/turn off Youtube auto 480p [problem]quality video settings and set your own preferred resolution.Please watch the whole ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s downloading the format
18
instead, if you want the DASH format you must use-f 'bestvideo[height<=480]+bestaudio/best[height<=480]'
.Well, that almost works.
It now downloads the video, and the audio, and merges them. The ffmpeg to merge them returns almost immediately.
BUT: It will download the video, then fail to download the audio (with the timeout message mentioned earlier). A second invocation will download the audio, merge them together, then download the next video on the playlist, and then fail when the audio of that next video times out.
Details: