I rebuilt lame and ffmpeg from newer source and this worked. However, I did not get usable video files in my original try.
On Sat, 2009-10-10 at 17:59 +0000, Patrick Geltinger wrote: > I can confirm this. > Obviously downgrading to lame 3.97 solves this problem as well as rebuilding lame and ffmpeg from source. > However, you will get a playable MP3 file at the end, but the error is really annoying. > > -- > [Karmic] libmp3lame fails in converting audio > https://bugs.launchpad.net/bugs/401406 > You received this bug notification because you are a direct subscriber > of a duplicate bug. > > Status in “lame” package in Ubuntu: Confirmed > > Bug description: > Binary package hint: libmp3lame0 > > When extracting audio from FLV files using ffmpeg with libmp3lame, or when resampling audio (using libmp3lame), action fails because of a libmp3lame error. > I tried with a youtube-downloaded file (which is not illegal, because of file quality loss due to FLV conversion and audio resampling) > ========================================================== > claudio@Mycroft:~/Scrivania$ apt-cache policy libmp3lame0 > libmp3lame0: > Installato: 3.98.2+debian-0ubuntu1 > Candidato: 3.98.2+debian-0ubuntu1 > Tabella versione: > *** 3.98.2+debian-0ubuntu1 0 > 500 http://archive.ubuntu.com karmic/multiverse Packages > 100 /var/lib/dpkg/status > ========================================================== > claudio@Mycroft:~/Scrivania$ ffmpeg -i source.flv -acodec libmp3lame -ac 2 -ab 128K -vn -y destination.mp3 > FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al. > configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --enable-shared --disable-static > 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 10 2009 23:20:33, gcc: 4.3.3 > > Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) > Input #0, flv, from 'source.flv': > Duration: 00:03:52.52, start: 0.000000, bitrate: 326 kb/s > Stream #0.0: Video: flv, yuv420p, 320x220, 262 kb/s, 25 tbr, 1k tbn, 1k tbc > Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s > Output #0, mp3, to 'destination.mp3': > Stream #0.0: Audio: libmp3lame, 22050 Hz, stereo, s16, 128 kb/s > Stream mapping: > Stream #0.1 -> #0.0 > Press [q] to stop encoding > [libmp3lame @ 0x21109d0]lame: output buffer too small (buffer index: 8359, free bytes: 1433) > Audio encoding failed > ========================================================== > claudio@Mycroft:~/Scrivania$ ffmpeg -i source.mp3 -acodec libmp3lame -ab 64K -ar 44100 destination.mp3 > FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al. > configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --enable-shared --disable-static > 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 10 2009 23:20:33, gcc: 4.3.3 > Input #0, mp3, from 'source.mp3': > Duration: 00:03:52.64, start: 0.000000, bitrate: 128 kb/s > Stream #0.0: Audio: mp3, 22050 Hz, stereo, s16, 128 kb/s > Output #0, mp3, to 'destination.mp3': > Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s > Stream mapping: > Stream #0.0 -> #0.0 > Press [q] to stop encoding > [libmp3lame @ 0xf0d7a0]lame: output buffer too small (buffer index: 9404, free bytes: 388) > Audio encoding failed
I rebuilt lame and ffmpeg from newer source and this worked. However, I
did not get usable video files in my original try.
On Sat, 2009-10-10 at 17:59 +0000, Patrick Geltinger wrote: /bugs.launchpad .net/bugs/ 401406 ======= ======= ======= ======= ======= ======= ======= == Mycroft: ~/Scrivania$ apt-cache policy libmp3lame0 debian- 0ubuntu1 debian- 0ubuntu1 debian- 0ubuntu1 0 archive. ubuntu. com karmic/multiverse Packages dpkg/status ======= ======= ======= ======= ======= ======= ======= == Mycroft: ~/Scrivania$ ffmpeg -i source.flv -acodec libmp3lame -ac 2 -ab 128K -vn -y destination.mp3 3:0.svn20090303 -1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al. version= svn17737+ 3:0.svn20090303 -1ubuntu6 --prefix=/usr --enable-avfilter --enable- avfilter- lavf --enable-libgsm --enable- libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --enable-shared --disable-static ======= ======= ======= ======= ======= ======= ======= == Mycroft: ~/Scrivania$ ffmpeg -i source.mp3 -acodec libmp3lame -ab 64K -ar 44100 destination.mp3 3:0.svn20090303 -1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al. version= svn17737+ 3:0.svn20090303 -1ubuntu6 --prefix=/usr --enable-avfilter --enable- avfilter- lavf --enable-libgsm --enable- libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --enable-shared --disable-static
> I can confirm this.
> Obviously downgrading to lame 3.97 solves this problem as well as rebuilding lame and ffmpeg from source.
> However, you will get a playable MP3 file at the end, but the error is really annoying.
>
> --
> [Karmic] libmp3lame fails in converting audio
> https:/
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “lame” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: libmp3lame0
>
> When extracting audio from FLV files using ffmpeg with libmp3lame, or when resampling audio (using libmp3lame), action fails because of a libmp3lame error.
> I tried with a youtube-downloaded file (which is not illegal, because of file quality loss due to FLV conversion and audio resampling)
> =======
> claudio@
> libmp3lame0:
> Installato: 3.98.2+
> Candidato: 3.98.2+
> Tabella versione:
> *** 3.98.2+
> 500 http://
> 100 /var/lib/
> =======
> claudio@
> FFmpeg version 0.5-svn17737+
> configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-
> 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 10 2009 23:20:33, gcc: 4.3.3
>
> Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
> Input #0, flv, from 'source.flv':
> Duration: 00:03:52.52, start: 0.000000, bitrate: 326 kb/s
> Stream #0.0: Video: flv, yuv420p, 320x220, 262 kb/s, 25 tbr, 1k tbn, 1k tbc
> Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
> Output #0, mp3, to 'destination.mp3':
> Stream #0.0: Audio: libmp3lame, 22050 Hz, stereo, s16, 128 kb/s
> Stream mapping:
> Stream #0.1 -> #0.0
> Press [q] to stop encoding
> [libmp3lame @ 0x21109d0]lame: output buffer too small (buffer index: 8359, free bytes: 1433)
> Audio encoding failed
> =======
> claudio@
> FFmpeg version 0.5-svn17737+
> configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-
> 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 10 2009 23:20:33, gcc: 4.3.3
> Input #0, mp3, from 'source.mp3':
> Duration: 00:03:52.64, start: 0.000000, bitrate: 128 kb/s
> Stream #0.0: Audio: mp3, 22050 Hz, stereo, s16, 128 kb/s
> Output #0, mp3, to 'destination.mp3':
> Stream #0.0: Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
> Stream mapping:
> Stream #0.0 -> #0.0
> Press [q] to stop encoding
> [libmp3lame @ 0xf0d7a0]lame: output buffer too small (buffer index: 9404, free bytes: 388)
> Audio encoding failed