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

Make the --max-quality option support human-readable quality identifiers #1245

Closed
romanrm opened this issue Aug 15, 2013 · 2 comments
Closed

Make the --max-quality option support human-readable quality identifiers #1245

romanrm opened this issue Aug 15, 2013 · 2 comments
Labels

Comments

@romanrm
Copy link

@romanrm romanrm commented Aug 15, 2013

Hello,

Can you please support using the actual quality settings in --max-quality, and not just codes for video formats?

The user-facing "quality of video" nomenclature in YouTube is: "1080p, 720p, 480p", and so on.

So I expected I could download a video with:

--max-quality 720p

I do not care at this point whether this will be webm or mp4.

But this seems to be not possible. I have to look up what is the code for the format I need, then specify something like "-f 22/45" instead. And if in the future YouTube migrates to some h265 format with some "code 99 = h265 @ [1280x720]", my script will break, or not download the best possible format anymore.

@romanrm
Copy link
Author

@romanrm romanrm commented Aug 15, 2013

And the current behavior of --max-quality is not even reliable in the first place, for example I want to include all 1280x720 videos (webm too), but I can not use --max-quality 45, because that will also match 1080p mp4, which is 37. DUH!!!

Available formats:
37 : mp4 [1080x1920]
46 : webm [1080x1920]
22 : mp4 [720x1280]
45 : webm [720x1280]
35 : flv [480x854]
44 : webm [480x854]
34 : flv [360x640]
18 : mp4 [360x640]
43 : webm [360x640]
5 : flv [240x400]
17 : mp4 [144x176]

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Jan 26, 2015

With the last versions you can use -f 'best[height<=720]'. Thanks for the report!

@jaimeMF jaimeMF closed this Jan 26, 2015
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.