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.
Avoid conversion between lossy audio codecs when target codec is available #16746
Comments
|
43 is video+audio format. Downloading video for an audio extraction request is an overkill. Instead youtube-dl downloads audio-only format. If there is a vorbis audio-only format it will be download with no conversion. In this case there is no vorbis audio-only format thus a conversion happens. |
How is it any more of an overkill than converting between lossy audio formats? The latter certainly takes more time and much more CPU cycles.
... with the loss of audio quality. |
|
Cause it will download video part that is useless in such scenario. |
|
OK, |
Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add the
-vflag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
The goal is to get an Ogg/Vorbis audio file. In the example above one of the formats (43) already contains Vorbis audio, so I expect
youtube-dl -x --audio-format vorbisto use that format and extract Vorbis audio track out of it. Insteadyoutube-dldownloads m4a/AAC audio and converts it to Ogg/Vorbis withffmpeg. Conversions between lossy audio formats could lead to a loss of quality and are much longer than audio track extraction from video file.Expected behavior:
youtube-dldownloads format 43 because it contains requested Vorbis formatyoutube-dlinvokesffmpeg -i track.webm -c:a copy -vn track.oggand removes track.webm.Please tell me if I missed some setting to achieve this.