Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-f "best[height <= 500]" picking 360 over 480? #5609

Closed
truth1ness opened this issue May 4, 2015 · 2 comments
Closed

-f "best[height <= 500]" picking 360 over 480? #5609

truth1ness opened this issue May 4, 2015 · 2 comments

Comments

@truth1ness
Copy link

@truth1ness truth1ness commented May 4, 2015

I seem to be getting the 360 height video instead of the 480 when I use

youtube-dl --no-check-certificate -f "best[height <= 500]" -v https://www.youtube.com/watch?v=Cgm3r-G0cMQ

Here is the -F list (see the 135 mp4 854x480 option that isn't being downloaded)

[info] Available formats for Cgm3r-G0cMQ:
format code  extension  resolution note
171          webm       audio only DASH audio  103k , audio@128k (44100Hz), 711.89KiB
140          m4a        audio only DASH audio  127k , m4a_dash container, aac  @128k (44100Hz), 902.77KiB
141          m4a        audio only DASH audio  255k , m4a_dash container, aac  @256k (44100Hz), 1.77MiB
278          webm       256x144    DASH video   71k , webm container, VP9, 1fps, video only, 301.84KiB
160          mp4        256x144    DASH video  115k , 15fps, video only, 802.81KiB
242          webm       426x240    DASH video  130k , 1fps, video only, 729.35KiB
243          webm       640x360    DASH video  233k , 1fps, video only, 1.31MiB
133          mp4        426x240    DASH video  246k , 30fps, video only, 1.69MiB
134          mp4        640x360    DASH video  309k , 30fps, video only, 1.90MiB
244          webm       854x480    DASH video  416k , 1fps, video only, 2.32MiB
135          mp4        854x480    DASH video  679k , 30fps, video only, 4.12MiB
247          webm       1280x720   DASH video  700k , 1fps, video only, 4.17MiB
248          webm       1920x1080  DASH video 1321k , 1fps, video only, 8.07MiB
136          mp4        1280x720   DASH video 1410k , 30fps, video only, 8.48MiB
137          mp4        1920x1080  DASH video 2286k , 30fps, video only, 14.79MiB
17           3gp        176x144    
36           3gp        320x240    
5            flv        400x240    
43           webm       640x360    
18           mp4        640x360    
22           mp4        1280x720   (best)

and the -v output

(testenv3)testenv3 > youtube-dl --no-check-certificate -f "[height <= 500]" -v https://www.youtube.com/watch?v=Cgm3r-G0cMQ
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--no-check-certificate', '-f', '[height <= 500]', '-v', 'https://www.youtube.com/watch?v=Cgm3r-G0cMQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.04.26
[debug] Python version 3.4.3 - Darwin-14.3.0-x86_64-i386-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] Cgm3r-G0cMQ: Downloading webpage
[youtube] Cgm3r-G0cMQ: Extracting video information
[youtube] Cgm3r-G0cMQ: Downloading DASH manifest
[debug] Invoking downloader on 'https://r9---sn-o097znl7.googlevideo.com/videoplayback?mm=31&source=youtube&pl=22&requiressl=yes&mime=video%2Fmp4&ip=169.53.156.194&expire=1430804749&id=o-AB-yzwIprSPUXR1bhK4CJO_XEyZep1WKQzUzvW-4iAkQ&ms=au&mt=1430783120&mv=m&ratebypass=yes&ipbits=0&upn=_h3uK5N51vA&key=yt5&fexp=900720%2C907263%2C934954%2C937407%2C938028%2C9408142%2C9408705%2C9409227%2C9409252%2C9412494%2C9413010%2C9413150%2C948124%2C952612%2C952637%2C952640%2C952642%2C957201&itag=18&dur=58.165&signature=7D68B8F3409399E74B9545C7FB2A2B5869042BCE.51E75D7847FF10B36D90FEED97E5B3DC59085DE7&initcwndbps=1193750&sver=3&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmime%2Cmm%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire'
[download] Destination: Introduction to Data Science - Intro to Data Science-Cgm3r-G0cMQ.mp4
[download] 100% of 2.51MiB in 00:01
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 5, 2015

best now only matches non-dash formats (see #5554), you can use -f bestvideo[height <= 500], but you will only get the video (no audio).

@jaimeMF jaimeMF closed this May 5, 2015
@truth1ness
Copy link
Author

@truth1ness truth1ness commented May 5, 2015

Ah perfect thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.