Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl ignores --audio-format entirely #7882
Comments
|
(my config file is empty, consisting of a single # line, in case it matters.) |
|
Post the full output of youtube-dl when run with |
|
|
|
How can one force youtube-dl to avoid a certain audio codec, then? |
|
Bug is present even when a single, non-comma-separated format is present. |
|
Use format selection. |
|
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". |
|
It covers this scenario and much more flexible in general. |
|
And yes, it works fine with config file like any other option. |
|
So it does. Thanks! |
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/.config/youtube-dl$[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:
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.