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

prioritze opus over other codecs, especially or at least if, no video is requested #6637

Closed
Farfie opened this issue Aug 22, 2015 · 6 comments
Closed

Comments

@Farfie
Copy link

@Farfie Farfie commented Aug 22, 2015

I realize the final muxing is probably while you're careful about getting opus. You could start by grabbing it, if at similar bitrate, when no video is requested, or at the very least, when -x is passed.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 22, 2015

How about: -f bestaudio[ext=opus]/best[ext=opus]?

@Farfie
Copy link
Author

@Farfie Farfie commented Aug 22, 2015

That's great, but youtube-dl like a lot of programs, strives to have the "best quality defaults" as it even says in the readme of course. I'm more arguing for fullness here, rather than reporting a problem.

However, in messing around with some conditional passes, I can't seem to get youtube-dl to grab anything with opus without specifically -f x where x is the format code. For example, I tried even what yan12125 stated above, but it did nothing. If I added a "best" failsafe, then it would give me vorbis, but, it wasn't until I put -f 251 that I could get the program to grab an opus file.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Aug 22, 2015

Which URL are you testing?

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Aug 22, 2015

You have to use acodec instead of ext: bestaudio[acodec=opus] seems to work for me.

@Farfie
Copy link
Author

@Farfie Farfie commented Aug 22, 2015

Ah, now why didn't I think of that? Good call. I still think the other way not working is a problem, and the original intention of the "issue" stands, but I don't intend these to be super important or anything...

Still, that works for me, for brevity.

@dstftw dstftw closed this Aug 23, 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
4 participants
You can’t perform that action at this time.