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.
Specify default audio format #7058
Comments
AFAIK currently it's impossible with the CLI only, while I guess it's possible with this approach. Also, I think such a feature will be never implemented as a CLI option because it's highly customized and rather complicated.
If there are audio-only files (for example videos on YouTube), youtube-dl will just download the audio-only file and do no conversion. Otherwise, conversion occurs. |
|
@yan12125 I understand that conversion doesn't occur if it can download the audio directly but is there any way of knowing what format it will convert to if it can't download just the audio? |
|
This code segment determines the output codec from the input file codec and the preferred codec option ( |
Hello,
When I try to --extract-audio how can I also specify a number of --audio-formats so that if it is .m4a or .mp3 or .webm it doesn't convert but if it's something else it converts to .mp3?
Additionally, with --extract-audio which formats are kept and which are converted?
Thanks,
Daniel