Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 265830 - media-video/ffmpeg-0.5-r1 does not work with media-sound/lame-3.98*
Summary: media-video/ffmpeg-0.5-r1 does not work with media-sound/lame-3.98*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL: http://sourceforge.net/tracker/?func=...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-12 08:23 UTC by Hans de Graaff
Modified: 2009-05-10 19:03 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2009-04-12 08:23:29 UTC
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
Comment 1 Steve Dibb (RETIRED) gentoo-dev 2009-04-12 14:11:45 UTC
I can confirm this one as well.  We either need to mark lame-3.98 as unstable, update the ffmpeg dep, or both.
Comment 2 Hans de Graaff gentoo-dev Security 2009-04-13 13:36:23 UTC
(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.
Comment 3 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-03 13:38:23 UTC
+*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...
Comment 4 Hans de Graaff gentoo-dev Security 2009-05-10 19:03:21 UTC
(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!