Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ffmpeg mp3 conversion failed [closed]

Tags:

ffmpeg

mp3

flv

using ffmpeg to convert from flv to mp3 gives the following result


] ffmpeg-0.6.1 >> ffmpeg -i name.flv name.mp3 FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Feb 14 2011 12:33:38 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [flv @ 0x10869420]Could not find codec parameters (Video: 0x0000) [flv @ 0x10869420]Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'name.flv': Metadata: audiocodecid : 5 duration : 10 videocodecid : -1 canSeekToEnd : true Duration: 00:00:10.17, start: 0.000000, bitrate: N/A Stream #0.0: Video: 0x0000, 1k tbr, 1k tbn, 1k tbc Stream #0.1: Audio: nellymoser, 8000 Hz, mono, s16 Output #0, mp3, to 'name.mp3': Stream #0.0: Audio: 0x0000, 8000 Hz, mono, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Encoder (codec id 86017) not found for output stream #0.0

you can see in last line it says codec id 86017 not found. when i run following command:

ffmpeg -formats > ffmpeg-format.txt

mp3 is listed in available formats as
DE mp3 MPEG audio layer 3
.What can be the error.is it that mp3 codec is not properly installed?Help will be appreciated
like image 525
user444757 Avatar asked Feb 16 '11 19:02

user444757


3 Answers

Try this, it worked for me.

sudo apt-get install ffmpeg libavcodec-extra-52

thanks to ffmpeg: convert audio-only flv to swf

like image 145
Vishnu Avatar answered Nov 08 '22 11:11

Vishnu


For ubuntu 11.10:

sudo apt-get install ffmpeg libavcodec-extra-53

For ubuntu 11.04, 10.10, 10.04:

sudo apt-get install ffmpeg libavcodec-extra-52
like image 33
pretzels1337 Avatar answered Nov 08 '22 09:11

pretzels1337


It looks like your FFMPEG wasn't compiled with libmp3lame. See this post:

https://superuser.com/questions/196857/how-to-install-libmp3lame-for-ffmpeg

If you can't compile it on your own you'll have to search for a binary that does support it.

like image 4
Chris Haas Avatar answered Nov 08 '22 09:11

Chris Haas