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.
Please support avconv (from libav) for --extract-audio #344
Comments
|
avconv is a rename and slightly uncompatible evolution of ffmpeg Here are the differences And there I read that ffmpeg is indeed dead, also
I am for using a cross-compatible syntax and then checking first for avconv and then for ffmpeg as a fallback. |
|
I'm running Kubuntu 12.04 and hence encountered this problem of ffmpeg actually being a renaming of avconv with some incompatibilities. After seeing this issue, I thought the git version would work. So I uninstalled ffprobe and ffmpeg, installed avprobe (avconv was already installed), and cloned the repository. However, I still get:
Oddly, my git clone still reports its version of 2012.02.27 and my clone seems to include a binary so I'm not sure how to have a look at the code to see what is going on. |
|
Reagle, Did you try providing libmp3lame to the command line instead of mp3 alone? It used to work like this with ffmpeg. Regards, |
|
|
|
Actually it is liblamemp3. Did you try to launch avconv from the command line, and ask it to convert a video into an mp3 (to spot if the error comes from your avconv installation, or from an incorrect use of youtube-dl)? There you should supply liblamemp3 if it's like ffmpeg. If this works then you could use a pipe and feed avconv with youtube-dl's output (just an idea). |
|
Yes, here is a sequence of commands that show youtube-dl and avconf work fine, but not the audio option.
Downloading is successful.
Extracting to mp3 is easy enough.
No joy. |
|
A look at the source code shows that "mp3" should work:
help='"best", "aac", "vorbis", "mp3", "m4a", or "wav"; best by default') So what you could do is provide nothing for the --audio-format option. Then "best" will be selected which turns to be what you want:
MP3 otherwise.acodec = 'libmp3lame' If all of this works, then maybe you could try using "" instead of ''. ----- Mail original ----- Yes, here is a sequence of commands that show youtube-dl and avconf work fine, but not the audio option.
|
|
It doesn't for me, so can anyone at least confirm my bug? (What happens when you type |
|
I downloaded the 2012.09.27 binary off of github and still have this problem. Which format am I suppose to specify on Kubuntu 12.04 to get an mp3? ( |
|
Argh, sorry, should've seen it right away: Your output format is missing the extension. Therefore, ffmpeg detection fails. Try
|
|
On 10/01/2012 04:21 PM, Philipp Hagemeister wrote:
Works! Thanks! |
|
Don't. Solve by building ffmpeg from source with libmp3lame enabled (e.g. for Ubuntu: https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide). For anyone confused about avconv and ffmpeg, be sure to read this: http://stackoverflow.com/questions/9477115/who-can-tell-me-the-difference-and-relation-between-ffmpeg-libav-and-avconv/9477756#9477756 -- as well as the final link mentioned in that answer: http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html |
--extract-audio currently requires the ffmpeg command-line tool. Please consider supporting the equivalent avconv tool from the libav project. The command-line syntax of avconv has evolved a bit from ffmpeg, but still remains quite similar.