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

How to Prevent webm downloading #6584

Closed
MrPaulAR opened this issue Aug 16, 2015 · 4 comments
Closed

How to Prevent webm downloading #6584

MrPaulAR opened this issue Aug 16, 2015 · 4 comments

Comments

@MrPaulAR
Copy link

@MrPaulAR MrPaulAR commented Aug 16, 2015

I've tried using --prefer-free-formats and that doesn't work, at least not how I expect. From what I can tell after messing with it & googling the mp4 is only used IF there is a resolution tie and bitrate tie. I would like to never download a webm.

I've been doing this manually in the past with -f VIDEO+AUDIO (not using the numbers here as they vary) but would like something a bit more permanent.

Any suggestions?

@barsnick
Copy link

@barsnick barsnick commented Aug 17, 2015

Using --prefer-free-formats will not prevent webm, it will prefer webm over mp4.

Assuming these formats are offered (they are with YouTube), you would use this option to ensure mp4:
-f "bestvideo[ext=mp4]+bestaudio[ext=m4a]"

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 17, 2015

Use -f 'bestvideo[ext!=webm]+bestaudio[ext!=webm]/best[ext!=webm]'.

@dstftw dstftw closed this Aug 17, 2015
@jjgh
Copy link

@jjgh jjgh commented Sep 14, 2017

Hi @dstftw, just to make sure I understand your example, will using -f bestaudio[ext!=webm] alone download the second best audio, if best audio is webm?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 14, 2017

Depends on what is the second best audio.

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.