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

Priority over qualities? #11804

Closed
aidinzolghadr opened this issue Jan 22, 2017 · 5 comments
Closed

Priority over qualities? #11804

aidinzolghadr opened this issue Jan 22, 2017 · 5 comments

Comments

@aidinzolghadr
Copy link

@aidinzolghadr aidinzolghadr commented Jan 22, 2017

Hi,

Is it possible to set several qualities in order of importance so if youtube-dl cannot find first specified quality for that file, would fall back to other ones like 720p->480p->360p ?

Thanks

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 22, 2017

Provide concrete examples.

@aidinzolghadr
Copy link
Author

@aidinzolghadr aidinzolghadr commented Jan 22, 2017

For example when you want to download a file, instead of passing one quality setting via -f switch, add several in order of importance like -f 720p,480p,240p so when youtube-dl wants to download the file with 720p, if it encounters with error that such quality is not available for that file, it would got for the next requested quality which is 480p in this case.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jan 22, 2017

This is already supported. Bother to read FAQ.

@aidinzolghadr
Copy link
Author

@aidinzolghadr aidinzolghadr commented Jan 27, 2017

I can't find it in the FAQ.

@r13s
Copy link

@r13s r13s commented Jan 28, 2017

It's here.

Try something like this:
-f "best[height=720]/best[height=480]/best[height=240]"

Or for any available quality up to 720p:
-f "best[height<=?720]"

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