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 can I invoke recode-video / audio-format *only* for non-free formats? #3321

Open
lofidevops opened this issue Jul 22, 2014 · 4 comments
Open

Comments

@lofidevops
Copy link

@lofidevops lofidevops commented Jul 22, 2014

This is what I'd like to achieve:

  • download with --prefer-free-formats (if one of the best formats is free, pick that one - see #2453 for confirmation that this is the expected behaviour)
  • if the picked option is non-free, convert it to a specific free format
  • if the picked option is free, do not convert it

In other words, I want to avoid converting vorbis to opus, or webm to ogg, or the other way around. But I always want to convert avi, mp4, etc to ogg.

If I use (for example) youtube-dl --prefer-free-formats --extract-audio --audio-format vorbis <URL> it always converts to vorbis.

@phihag
Copy link
Contributor

@phihag phihag commented Jul 22, 2014

There is no such option at the moment. Basically, youtube-dl would have to be given a map of how to convert formats.

@lofidevops
Copy link
Author

@lofidevops lofidevops commented Jul 22, 2014

Ok, so until --impose-free-formats is implemented ;) I should just use --audio-format vorbis rather than --prefer-free-formats --audio-format vorbis?

@phihag
Copy link
Contributor

@phihag phihag commented Jul 22, 2014

No, --prefer-free-formats --audio-format vorbis is strictly closer to what you want than --audio-format vorbis. Just keep it as is.

@lofidevops
Copy link
Author

@lofidevops lofidevops commented Jul 23, 2014

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.