"Audio encoding failed" when converting flv to mp3

Bug #419374 reported by Bernhard on 2009-08-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lame (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: ffmpeg

I have ffmpeg 4:0.5+svn20090706-2ubuntu1 and libavcodec-unstripped-52 installed. Trying to convert flv to mp3, I get the following messages (note that the conversion actually works, I get a valid mp3 file but there is still those error messages):

FFmpeg version SVN-r19352-4:0.5+svn20090706-2ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5+svn20090706-2ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --extra-cflags=-I/build/buildd/ffmpeg-0.5+svn20090706/debian/include --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 Aug 26 2009 09:45:50, gcc: 4.4.1

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1)
Input #0, flv, from 'reincke.flv':
  Duration: 00:03:36.36, start: 0.000000, bitrate: 32 kb/s
    Stream #0.0: Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 32 kb/s, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 22050 Hz, stereo, s16
Output #0, mp3, to 'reincke.mp3':
    Stream #0.0: Audio: libmp3lame, 22050 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
Press [q] to stop encoding
[libmp3lame @ 0xa0474d0]lame: output buffer too small (buffer index: 9404, free bytes: 388)
Audio encoding failed

llogan (loul) wrote :

This is a known bug. Looks like it is fixed in LAME CVS and LAME 3.98 bug fix branch.

Issue 803: libmp3lame: output buffer too small
https://roundup.mplayerhq.hu/roundup/ffmpeg/issue803

2553863 - lame_encode_flush() returns -1
http://sourceforge.net/tracker/?func=detail&aid=2553863&group_id=290&atid=100290

affects: ffmpeg (Ubuntu) → lame (Ubuntu)
Changed in lame (Ubuntu):
importance: Undecided → Medium
status: New → Triaged

Another way to convert FLV to MP3 is to use iDealshare VideoGo which can batch convert video and audio files without quality loss.

Besides converting FLV to MP3, it also can convert FLV to WAV, M4A, Apple Lossless ALAC, AIFF, AAC, AC3, DTS, AU, WMA, AIFF, MP2, OPUS, RA, etc;

Step by step guide at http://www.idealshare.net/video-converter/flv-to-mp3-converter.html

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.