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.
Add WEBM to --audio-format. It's the original downloaded file when using -x [audio-only] #20076
Comments
|
webm is a container not a codec, it has nothing to do with |
|
Provide complete verbose log of what are you trying to execute. |
|
Screenshot of execute with detailed highlight and explanation .
@dstftw In addition, it's "--audio-format", not "--audio-codec". So literally, "webm", an audio file format, is still fit to that option, and it "host" only opus audio, so there will be no confused |

Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.02.18. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
Currently, to download the best quality audio from youtube video, we simply use
youtube-dl -x ULR
The application download the webm file, then quickly "get out" the opus file from webm container and immediately delete original webm file.
However, the opus file isn't widely supported, I want to keep the webm file.
Of course, the application suggest using "-k" to keep that file. But when we use -k, the whole video file (which is 8-10x bigger) would be downloaded.
Please add one more option for this purpose (download audio-only as Webm), or simply add webm to --audio-format
Thank you