I get the following encoding errors, when trying to process a video I've upload via the web, by hand. In the node, i just get the "Processing video... This may take a few minutes." message for a very short video clip.

$ /usr/local/bin/ffmpeg -v 0 -y -i 'files/videos/original/RomanticSleighRide.mpeg' -vcodec flv -b 320k -r 24 -g 48 -s 240x192 -acodec libmp3lame -ab 64k -ac 1 -ar 44100 -pass 1 -passlogfile files/videos/temp/2pass-1 files/videos/temp/1.flv
FFmpeg version SVN-r16716, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr/local --enable-static --enable-shared --enable-gpl --enable-postproc --enable-swscale --enable-pthreads --enable-libamr-nb --enable-libamr-wb --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libx264 --disable-ffserver --disable-ffplay --disable-debug --disable-network --enable-nonfree --enable-avfilter --enable-avfilter-lavf --disable-devices --disable-vhook
  libavutil     49.14. 0 / 49.14. 0
  libavcodec    52.11. 0 / 52.11. 0
  libavformat   52.25. 0 / 52.25. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 2. 0 /  0. 2. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jan 22 2009 01:36:34, gcc: 4.1.2 20080704 (Red Hat 4.1.2-44)
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg1video @ 0x1ce76330]invalid mb type in I Frame at 19 5
[mpeg1video @ 0x1ce76330]Warning MVs not available
[libmp3lame @ 0x1cf037c0]lame: output buffer too small (buffer index: 9404, free bytes: 388)
Audio encoding failed

My configuration for ffmpeg should be following exactly the config options offered on your site. But additionally in the admin panel it tells me that the png codec is not found.

I'm stuck, your help would be very appreciated.

Comments

Passer’s picture

Same problem here

jwilson3’s picture

i get the impression that the owner works better on these server configs if you hire him. I think that is my next step. If you see this, I'm looking to contact you for a quote on how much you'd charge to get ffmpeg + your module installed and configured on my server. Its beyond me right now to continue waiting on a reply and wasting time playing around with this when i have no experience with this software.

beanjammin’s picture

I'm working through the same issue. The problem is not particular to this module, running ffmpeg from the command line produces the same error message. Googling has turned up the following:

http://lists.mplayerhq.hu/pipermail/ffmpeg-user/2008-December/018125.html
http://ffmpeg.arrozcru.org/forum/viewtopic.php?f=1&t=935

I have not tried the buffer size change suggested in the first link as I've read elsewhere that it didn't help.

I am going to downgrade my lame version, recompile ffmpeg, and cross my fingers. I'll report back on how it goes.

- Ben

beanjammin’s picture

Title: ffmpeg lame output buffer too small » SOLVED - ffmpeg lame output buffer too small

I can report that downgrading lame to 3.97 solves the problem.

I built lame 3.97 from source and then ffmpeg 0.5 from source, using the config given here http://bluedroplet.com/documentation/ffmpeg, and all is now right in the world.

- Ben

jbrown’s picture

Project: OpenPackage Video » Blue Droplet Video
Version: 5.x-3.16 » 6.x-1.x-dev
Component: Code » Miscellaneous
Category: bug » support
Status: Active » Fixed

Great work guys!

greg.harvey’s picture

Two notes:

1. The error message doesn't actually matter. Audio encoding has NOT failed and you will have a watchable output video in your destination directory. Annoying that it reports a failure when it actually hasn't failed. Explanation is on this page: http://howto-pages.org/ffmpeg/

The error message about the output buffer being too small is nothing important. It's merely a result of the way data is passed between ffmpeg and the external codec, LAME.

2. The FFMpeg guys say this is fixed in the latest source, though I can't verify that: http://archives.free.net.ph/message/20081119.105257.374f3774.en.html

HTH! =)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

barbietunnie’s picture

Downgrading to lame v3.97 sure worked. Thanks

shunting’s picture

As of this version:

FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.

the error is not fixed, but this conversion:

ffmpeg -i foo.mov -ar 44100 foo.flv

gave me the above error message, but, indeed, a watchable video with audio.

jbrown’s picture

Interestingly 3.98.2+debian-0ubuntu2 from Ubuntu 9.10 works great, but compiling 3.98.2 by hand produces this error.

josephj147’s picture

Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
[libmp3lame @ 0x84315f0]lame: output buffer too small (buffer index: 9404, free bytes: 388)
Audio encoding failed

LAME 32bits version 3.97 (http://www.mp3dev.org/)

I downgraded lame still the same problem...

lexesv’s picture

Fa-sum’s picture

Solved upgrading to lame 3.98.4

Greetings.

asusi’s picture

With latest FFMPEG version 0.8.7, this error is coming again for me. I tried with all the versions of lame, all of them fails.
This is only for HD video.