When trying to encode an avi file to flv and mp3 I got the following error: ffmpeg -i /home/graaff/Desktop/Todo/skitrip-feb-08/mvi_3898.avi -s 320x240 -ar 22050 -ab 32k -r 12 -f flv ~/Desktop/test.flv FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-debug --disable-ffplay --disable-network --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --disable-demuxer=v4l --disable-demuxer=v4l2 --disable-demuxer=oss --disable-muxer=oss --enable-x11grab --enable-libamr-nb --enable-libamr-wb --enable-nonfree --disable-altivec --cpu=k8 --disable-vhook --enable-gpl --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-swscale --disable-stripping --enable-hardcoded-tables libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 0 / 52.20. 0 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Apr 12 2009 10:06:54, gcc: 4.3.2 Input #0, avi, from '/home/graaff/Desktop/Todo/skitrip-feb-08/mvi_3898.avi': Duration: 00:00:08.06, start: 0.000000, bitrate: 12722 kb/s Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc Stream #0.1: Audio: pcm_u8, 11024 Hz, mono, s16, 88 kb/s File '/home/graaff/Desktop/test.flv' already exists. Overwrite ? [y/N] y Output #0, flv, to '/home/graaff/Desktop/test.flv': Stream #0.0: Video: flv, yuv420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 12 tbc Stream #0.1: Audio: libmp3lame, 22050 Hz, mono, s16, 32 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding Warning, using s16 intermediate sample format for resampling [libmp3lame @ 0x1e272c0]lame: output buffer too small (buffer index: 9509, free bytes: 283) Audio encoding failed Downgrading to lame 3.97-r1 solved this issue without the need to recompile ffmpeg itself and the encoded video works as expected. This solution was suggested here: http://drupal.org/node/376012 Someone also tried to increase the buffer size, but I have not tried this fix: http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2008-December/018072.html
I can confirm this one as well. We either need to mark lame-3.98 as unstable, update the ffmpeg dep, or both.
(In reply to comment #1) > I can confirm this one as well. We either need to mark lame-3.98 as unstable, > update the ffmpeg dep, or both. I don't think either of these actions will solve the issue, since ffmpeg 0.5-r1 (currently in testing) also doesn't work correctly with lame-3.98.
+*lame-3.98.2-r1 (03 May 2009) + + 03 May 2009; Peter Alfredsen <loki_val@gentoo.org> + +files/lame-3.98.2-ffmpeg-0.5.patch, +lame-3.98.2-r1.ebuild: + Backport fix from upstream so ffmpeg won't choke on libmp3lame. Bug + 265830. + Here's hoping this fixes it...
(In reply to comment #3) > +*lame-3.98.2-r1 (03 May 2009) > > Here's hoping this fixes it... Seems to fix it for me. Thanks!