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.
Audio bitrate never over 128K #3586
Comments
|
What makes you think that the audio file is available in the first place at 160 KBit/s? Can you name the URL you're downloading? |
|
The audio file I wanted to download I was pretty sure was at least 160kbps, but when I ran into the problem, I wanted to check it, so I went to this video: https://www.youtube.com/watch?v=C5r3uCKFAls It bills itself as a test audio file with a 320kbps bitrate, and I still can't download a version of it that is above 128kbps. Additionally, the video claims that the audio file used in it is 5.94 MB, but the audio file I download is 3.7 MB. |
|
These values refer to the original file, but YouTube is always reencoding them, so you can't expect to get 320 kbps back. However, you are right that apparently youtube-dl does not find all formats. We should enable DASH manifest download. As a workaround, try passing in the |
|
Thanks! It works now! |
|
Hello. I have the same problem. The difference is that I use Python. When I download audio from YouTube, it is downloaded at 128 kbps, although it is higher on YouTube. This is my code:
Of course I can add a line 'preferredquality': '320', but it will not be a real quality. How can I solve my problem? |
Hi. I'm a Windows user with ffmpeg installed, and I'd like to use youtube-dl to batch download a bunch of audio files at a bitrate of 160kbps and convert them to mp3's from time to time. I use:
"youtube-dl -x --audio-quality 160K [URL]"
but it only ever downloads a 128kbps file (and this is from YT videos on which I'm almost sure the bitrate is above 128kbps). I've also tried:
"youtube-dl -x --audio-format mp3 --audio-quality 160K [URL]"
and this outputs a 160kbps mp3 file, but it is simply upscaled -- using a spectrum analyzer (specifically, Spek), I see that the bitrate is actually 128kbps. Does anyone know why is this happening, and/or how I get around it?