lame - using ffmpeg to create mp3 - error

Using Suse 11.1…

If I try to create an mp3 using ffmpeg, I get an error:

ffmpeg -i youtubefile.flv foo.mp3

FFmpeg version SVN-r17161, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --shlibdir=/usr/lib --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libfaad --enable-libfaac --enable-libxvid --enable-swscale --enable-postproc --enable-gpl --enable-vhook --enable-x11grab --enable-libschroedinger --enable-libdirac --enable-libgsm --enable-libx264 --enable-libamr-nb --enable-libamr-wb --enable-libdc1394 --enable-nonfree --enable-pthreads
libavutil 49.14. 0 / 49.14. 0
libavcodec 52.14. 0 / 52.14. 0
libavformat 52.27. 0 / 52.27. 0
libavdevice 52. 1. 0 / 52. 1. 0
libswscale 0. 6. 1 / 0. 6. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Feb 11 2009 21:28:02, gcc: 4.3.2 [gcc-4_3-branch revision 141291]

Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001)
Input #0, flv, from ‘x9Z1nRT3css.flv’:
Duration: 00:04:39.47, start: 0.000000, bitrate: 359 kb/s
Stream #0.0: Video: flv, yuv420p, 320x240, 295 kb/s, 29.97 tb(r)
Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
Output #0, mp3, to ‘foo.mp3’:
Stream #0.0: Audio: libmp3lame, 22050 Hz, mono, s16, 64 kb/s
Stream mapping:
Stream #0.1 -> #0.0
Press [q] to stop encoding
[libmp3lame @ 0x8083f60]lame: output buffer too small (buffer index: 9404, free bytes: 388)
Audio encoding failed

LAME 32bits version 3.98.2 (www.mp3dev.org - mp3devÂ)

I found a post somewhere indicating 3.98.2 was broke, and to ‘downgrade’ to 3.98 or 3.97. I couldn’t find any older RPMs.

Is this the right/best course of action? Or is there a patch?

other package info:

libmp3lame0-3.98.2-1.118
lame-3.98.2-1.119
libffmpeg0-0.4.9.17161svn-20090211.pm.2139
ffmpeg-0.4.9.17161svn-20090211.pm.2139

Thanks!

I don’t normally use ffmpeg to create mp3, so I can’t comment on the command used. But I can see that you have mixed application packaged versions between packagers and that often causes problems on openSUSE. For example, if you are going to use the Packman packaged libffmpeg0 and ffmpeg, you should IMHO use the Packman packaged lame and libmp3lame0. For example on my PC:oldcpu@athlon:~> rpm -qa | grep lame
twolame-0.3.12-0.pm.1
libmp3lame0-3.98.2-0.pm.3
libtwolame0-0.3.12-0.pm.1
lame-3.98.2-0.pm.3as you can see, there are packman packaged versions of lame. [Note the “pm” in the version # indicates it is packaged by Packman ]

The easiest way to do what you want is to install install audiokonverter from Packman from here:-

PackMan :: Package details for audiokonverter

Then if you click on the flv file - you can use the extract audio to mp3 option.

If you already have mplayer installed - you can open a c/l window, cd to the directory with the file and input the command below:-

mplayer -dumpaudio video.flv -dumpfile song.mp3

Replace ‘video’ and ‘song’ with the right names.