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

Option for --max-resolution #4584

Closed
Jasmine-Lognnes opened this issue Dec 27, 2014 · 2 comments
Closed

Option for --max-resolution #4584

Jasmine-Lognnes opened this issue Dec 27, 2014 · 2 comments
Labels

Comments

@Jasmine-Lognnes
Copy link

@Jasmine-Lognnes Jasmine-Lognnes commented Dec 27, 2014

Just like --max-quality, it would be great to have a --max-resolution, where I could do

--max-resolution=720,480

to indicate that I prefer 720p and 480p as fall back. Youtube-dl should decide with codec is the best for the given resolution.

Since format 35 is no longer supported, youtube-dl can't download a 480p video with audio with a single command like --max-quality=35 used to do. --max-resolution=480 would solve this problem.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 29, 2014

This is not always possible to extract resolution (in generic way for any hoster) as there may be no such metadata available.
You can always download DASH video and DASH audio and mux them with a single command as follows youtube-dl -f <videoformat>+<audioformat> URL. Use -F option to list all the formats available.

@dstftw dstftw added the request label Dec 29, 2014
@phihag phihag closed this in 083c9df Jan 22, 2015
@phihag
Copy link
Contributor

@phihag phihag commented Jan 22, 2015

Thank you for the report. youtube-dl 2015.01.23 and newer add the new experimental format filters. I believe -f "[height=720]/[height=480]" does precisely what you request, although -f "[height<=?720]" is probably what you want.

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
3 participants
You can’t perform that action at this time.