Closed (fixed)
Project:
Blue Droplet Video
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2009 at 00:33 UTC
Updated:
23 Nov 2011 at 04:41 UTC
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
Comment #1
Passer commentedSame problem here
Comment #2
jwilson3i 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.
Comment #3
beanjammin commentedI'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
Comment #4
beanjammin commentedI 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
Comment #5
jbrown commentedGreat work guys!
Comment #6
greg.harveyTwo 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/
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! =)
Comment #8
barbietunnie commentedDowngrading to lame v3.97 sure worked. Thanks
Comment #9
shunting commentedAs 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.
Comment #10
jbrown commentedInterestingly 3.98.2+debian-0ubuntu2 from Ubuntu 9.10 works great, but compiling 3.98.2 by hand produces this error.
Comment #11
josephj147 commentedStream #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...
Comment #12
lexesv commentedSOLVED - this problem for centos 5.4 x86_64
http://phpmaster.su/php-faq/28-ffmpeg-v-php-oshibka-libmp3lamelame-outpu...
Comment #13
Fa-sum commentedSolved upgrading to lame 3.98.4
Greetings.
Comment #14
asusi commentedWith 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.