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-quality option when extracting certain songs to Vorbis (.ogg) at a high bitrate #16524
Comments
|
|
Wouldn't upconverting help minimize generation loss (lossy encoding on an already lossy source) when converting from the video though? Or do I have some horrible misunderstanding of how audio is extracted? No reason not to have it, I mean, by that logic, why even have audiophile options like FLAC or WAV as an available format? More importantly, why does it respect the option with some videos but not others if it's not beneficial / relevant / possible? And why does it always respect it when using MP3 as the format? It doesn't make sense to me. |
|
It does not convert from the video for Youtube in the first place. It downloads separate audio format and converting from it if necessary.
Cause there may be such formats for other extractors.
I've already pointed that out.
No, it does not. It won't convert if source is mp3. Again read my first post. |
|
So to make sure I got this straight. The audio portion of a YouTube video is a separate file / embedded stream with its own format that can vary from video to video; and if said format matches my preferred format, then it just copies it directly as that file without any additional encoding that would introduce any further loss? Meaning that when it "works" a conversion from whatever format it was, was necessary; and only in those cases I'm guessing further loss is introduced if I want my entire library in open (patent free) formats? Sorry for the headache, I'm just trying to wrap my mind around this. My original understanding was that it had to decode and re-encode regardless. |
|
Can you tell me if I understand you correctly now? |
Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2018.05.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?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to 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
When using youtube-dl to extract audio from certain YouTube videos, youtube-dl will ignore / not respect the
--audio-qualityoption when extracting to a Vorbis (.ogg) file at a high bitrate such as 320k. The video shown in the log extracts as 128k instead, forcing me to use other sites / utilities to extract at the desired bitrate. The issue does not impact extracting to .mp3youtube-dl should always respect / enforce the specified quality regardless of format.