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

youtube-dl ignores --audio-format entirely #7882

Closed
TheKorn2 opened this issue Dec 16, 2015 · 10 comments
Closed

youtube-dl ignores --audio-format entirely #7882

TheKorn2 opened this issue Dec 16, 2015 · 10 comments

Comments

@TheKorn2
Copy link

@TheKorn2 TheKorn2 commented Dec 16, 2015

youtube-dl ignores audio-format entirely when it's the only flag passed and instead downloads whatever it damn well feels like.

example:

/.config/youtube-dl$ youtube-dl https://www.youtube.com/watch?v=-Hp4QhUX858 --audio-format aac,mp3,mp4a,wav --ignore-config
[youtube] -Hp4QhUX858: Downloading webpage
[youtube] -Hp4QhUX858: Downloading video info webpage
[youtube] -Hp4QhUX858: Extracting video information
[youtube] -Hp4QhUX858: Downloading DASH manifest
[youtube] -Hp4QhUX858: Downloading DASH manifest
WARNING: Requested formats are incompatible for merge and will be merged into mkv.
[download] The Muppets Are Pod People!--Hp4QhUX858.f137.mp4 has already been downloaded
[download] 100% of 76.00MiB
[download] Destination: The Muppets Are Pod People!--Hp4QhUX858.f251.webm
[download] 100% of 5.08MiB in 00:01
[ffmpeg] Merging formats into "The Muppets Are Pod People!--Hp4QhUX858.mkv"
Deleting original file The Muppets Are Pod People!--Hp4QhUX858.f137.mp4 (pass -k to keep)
Deleting original file The Muppets Are Pod People!--Hp4QhUX858.f251.webm (pass -k to keep)
vince@Mythtery:
/.config/youtube-dl$

There youtube-dl downloaded webm audio instead of pretty much any other format. Doesn't matter if you hit audio-format with aac, mp4, wav, mp3 singly, it ALWAYS downloads the webm. That wouldn't be so bad if it downloaded the webm and then converted it to whatever was asked for (not optimal but workable), but that doesn't happen, either.

@TheKorn2
Copy link
Author

@TheKorn2 TheKorn2 commented Dec 16, 2015

(my config file is empty, consisting of a single # line, in case it matters.)

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 16, 2015

Post the full output of youtube-dl when run with --verbose option.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 16, 2015

--audio-format must be used with --extract-audio. It does not support comma separated list of formats.

@dstftw dstftw closed this Dec 16, 2015
@TheKorn2
Copy link
Author

@TheKorn2 TheKorn2 commented Dec 16, 2015

How can one force youtube-dl to avoid a certain audio codec, then?

@TheKorn2
Copy link
Author

@TheKorn2 TheKorn2 commented Dec 16, 2015

Bug is present even when a single, non-comma-separated format is present.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 16, 2015

@TheKorn2
Copy link
Author

@TheKorn2 TheKorn2 commented Dec 16, 2015

That's an ugly hack that doesn't work for putting in a global config file, you realize. It would work a lot better if one could say "yeah, whatever except x,y,z" or "yeah, whatever of x, y, z".

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 16, 2015

It covers this scenario and much more flexible in general.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 16, 2015

And yes, it works fine with config file like any other option.

@TheKorn2
Copy link
Author

@TheKorn2 TheKorn2 commented Dec 16, 2015

So it does. 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.