[MacPorts] #22827: ffmpeg fails to transcode (libmp3lame fails with error : output buffer too small

MacPorts noreply at macports.org
Tue Dec 8 09:40:00 PST 2009


#22827: ffmpeg fails to transcode (libmp3lame fails with error : output buffer too
small
-----------------------------------+----------------------------------------
 Reporter:  nathanp@…              |       Owner:  devans@…           
     Type:  defect                 |      Status:  new                
 Priority:  Normal                 |   Milestone:                     
Component:  ports                  |     Version:  1.8.1              
 Keywords:                         |        Port:  ffmpeg             
-----------------------------------+----------------------------------------
Changes (by jmr@…):

  * keywords:  ffmpeg lame libmp3lame =>
  * owner:  macports-tickets@… => devans@…


Old description:

> Here is a transcript of what leads to the error.
>
>  "/opt/local/bin/ffmpeg -i
> /Users/nathan/miracle/trunk/www/public/assets/0000/0001/ShakeItOff.m4v -s
> 480x360 -vcodec flv -r 25 -qscale 8 -f flv -y
> /Users/nathan/miracle/trunk/www/public/assets/0000/0001/f.flv\n"
>
> Seems stream 1 codec frame rate differs from container frame rate:
> 3143106.00 (3143106/1) -> 24.00 (24/1)
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
> '/Users/nathan/miracle/trunk/www/public/assets/0000/0001/ShakeItOff.m4v':
>   Duration: 00:04:03.08, start: 0.000000, bitrate: 970 kb/s
>     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
>     Stream #0.1(und): Video: h264, yuv420p, 480x320, PAR 1:1 DAR 3:2, 24
> tbr, 1571553.00 tbn, 3143106.00 tbc
> Output #0, flv, to
> '/Users/nathan/miracle/trunk/www/public/assets/0000/0001/f.flv':
>     Stream #0.0(und): Video: flv, yuv420p, 480x360 [PAR 9:8 DAR 3:2],
> q=2-31, 200 kb/s, 90k tbn, 25 tbc
>     Stream #0.1(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
> Stream mapping:
>   Stream #0.1 -> #0.0
>   Stream #0.0 -> #0.1
> Press [q] to stop encoding
> [libmp3lame @ 0x10181e200]lame: output buffer too small (buffer index:
> 9404, free bytes: 388)
>

> This is a bug in the version of lame that was used when I built ffmpeg (I
> built it on Dec 4, and no updates have been posted to the port tree) See
> this Ubuntu bug detailing the same problem.
> https://bugs.launchpad.net/ubuntu/+source/lame/+bug/401406
>

> Since I'm not sure what relevant ports you'll need information about here
> is the list off all installed ports.
>
>   autoconf @2.65_0 (active)
>   automake @1.11_0 (active)
>   bzip2 @1.0.5_3+darwin (active)
>   cppunit @1.12.1_0 (active)
>   dirac @1.0.2_0 (active)
>   expat @2.0.1_0 (active)
>   faac @1.28_1 (active)
>   faad2 @2.7_0+darwin (active)
>   ffmpeg @0.5_5+darwin_10 (active)
>   gettext @0.17_4 (active)
>   glib2 @2.22.2_0+darwin
>   glib2 @2.22.3_0+darwin (active)
>   gmake @3.81_0 (active)
>   gperf @3.0.4_0 (active)
>   groff @1.20.1_1 (active)
>   help2man @1.36.4_1 (active)
>   lame @3.98.2_1 (active)
>   libiconv @1.13_0 (active)
>   libogg @1.1.4_0 (active)
>   liboil @0.3.16_1+darwin_10 (active)
>   libsdl @1.2.14_8 (active)
>   libtheora @1.1.1_0 (active)
>   libtool @2.2.6b_0 (active)
>   libvorbis @1.2.3_0 (active)
>   m4 @1.4.13_0 (active)
>   mp4v2 @1.9.1_1 (active)
>   mysql5 @5.1.41_0 (active)
>   mysql5-server @5.1.41_0 (active)
>   ncurses @5.7_0+darwin_10 (active)
>   ncursesw @5.7_0+darwin_10 (active)
>   openssl @0.9.8l_0+darwin (active)
>   p5-locale-gettext @1.05_0 (active)
>   perl5 @5.8.9_0 (active)
>   perl5.8 @5.8.9_3 (active)
>   pkgconfig @0.23_1 (active)
>   readline @6.0.000_2+darwin (active)
>   schroedinger @1.0.8_0 (active)
>   x264 @20090810_2 (active)
>   xorg-bigreqsproto @1.1.0_0 (active)
>   xorg-inputproto @2.0_0 (active)
>   xorg-kbproto @1.0.4_0 (active)
>   xorg-libX11 @1.3.2_0 (active)
>   xorg-libXau @1.0.5_0 (active)
>   xorg-libXdmcp @1.0.3_0 (active)
>   xorg-libXext @1.1.1_0 (active)
>   xorg-libXrandr @1.3.0_1 (active)
>   xorg-randrproto @1.3.1_0 (active)
>   xorg-renderproto @0.11_0 (active)
>   xorg-util-macros @1.3.0_0 (active)
>   xorg-xcmiscproto @1.2.0_0 (active)
>   xorg-xextproto @7.1.1_0 (active)
>   xorg-xf86bigfontproto @1.2.0_0 (active)
>   xorg-xproto @7.0.16_0 (active)
>   xorg-xtrans @1.2.5_0 (active)
>   xrender @0.9.5_0 (active)
>   XviD @1.2.2_0 (active)
>   yasm @0.8.0_0 (active)
>   zlib @1.2.3_3 (active)

New description:

 Here is a transcript of what leads to the error.
 {{{
  "/opt/local/bin/ffmpeg -i
 /Users/nathan/miracle/trunk/www/public/assets/0000/0001/ShakeItOff.m4v -s
 480x360 -vcodec flv -r 25 -qscale 8 -f flv -y
 /Users/nathan/miracle/trunk/www/public/assets/0000/0001/f.flv\n"

 Seems stream 1 codec frame rate differs from container frame rate:
 3143106.00 (3143106/1) -> 24.00 (24/1)
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 '/Users/nathan/miracle/trunk/www/public/assets/0000/0001/ShakeItOff.m4v':
   Duration: 00:04:03.08, start: 0.000000, bitrate: 970 kb/s
     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16
     Stream #0.1(und): Video: h264, yuv420p, 480x320, PAR 1:1 DAR 3:2, 24
 tbr, 1571553.00 tbn, 3143106.00 tbc
 Output #0, flv, to
 '/Users/nathan/miracle/trunk/www/public/assets/0000/0001/f.flv':
     Stream #0.0(und): Video: flv, yuv420p, 480x360 [PAR 9:8 DAR 3:2],
 q=2-31, 200 kb/s, 90k tbn, 25 tbc
     Stream #0.1(und): Audio: libmp3lame, 44100 Hz, stereo, s16, 64 kb/s
 Stream mapping:
   Stream #0.1 -> #0.0
   Stream #0.0 -> #0.1
 Press [q] to stop encoding
 [libmp3lame @ 0x10181e200]lame: output buffer too small (buffer index:
 9404, free bytes: 388)
 }}}

 This is a bug in the version of lame that was used when I built ffmpeg (I
 built it on Dec 4, and no updates have been posted to the port tree) See
 this Ubuntu bug detailing the same problem.
 https://bugs.launchpad.net/ubuntu/+source/lame/+bug/401406


 Since I'm not sure what relevant ports you'll need information about here
 is the list off all installed ports.
 {{{
   autoconf @2.65_0 (active)
   automake @1.11_0 (active)
   bzip2 @1.0.5_3+darwin (active)
   cppunit @1.12.1_0 (active)
   dirac @1.0.2_0 (active)
   expat @2.0.1_0 (active)
   faac @1.28_1 (active)
   faad2 @2.7_0+darwin (active)
   ffmpeg @0.5_5+darwin_10 (active)
   gettext @0.17_4 (active)
   glib2 @2.22.2_0+darwin
   glib2 @2.22.3_0+darwin (active)
   gmake @3.81_0 (active)
   gperf @3.0.4_0 (active)
   groff @1.20.1_1 (active)
   help2man @1.36.4_1 (active)
   lame @3.98.2_1 (active)
   libiconv @1.13_0 (active)
   libogg @1.1.4_0 (active)
   liboil @0.3.16_1+darwin_10 (active)
   libsdl @1.2.14_8 (active)
   libtheora @1.1.1_0 (active)
   libtool @2.2.6b_0 (active)
   libvorbis @1.2.3_0 (active)
   m4 @1.4.13_0 (active)
   mp4v2 @1.9.1_1 (active)
   mysql5 @5.1.41_0 (active)
   mysql5-server @5.1.41_0 (active)
   ncurses @5.7_0+darwin_10 (active)
   ncursesw @5.7_0+darwin_10 (active)
   openssl @0.9.8l_0+darwin (active)
   p5-locale-gettext @1.05_0 (active)
   perl5 @5.8.9_0 (active)
   perl5.8 @5.8.9_3 (active)
   pkgconfig @0.23_1 (active)
   readline @6.0.000_2+darwin (active)
   schroedinger @1.0.8_0 (active)
   x264 @20090810_2 (active)
   xorg-bigreqsproto @1.1.0_0 (active)
   xorg-inputproto @2.0_0 (active)
   xorg-kbproto @1.0.4_0 (active)
   xorg-libX11 @1.3.2_0 (active)
   xorg-libXau @1.0.5_0 (active)
   xorg-libXdmcp @1.0.3_0 (active)
   xorg-libXext @1.1.1_0 (active)
   xorg-libXrandr @1.3.0_1 (active)
   xorg-randrproto @1.3.1_0 (active)
   xorg-renderproto @0.11_0 (active)
   xorg-util-macros @1.3.0_0 (active)
   xorg-xcmiscproto @1.2.0_0 (active)
   xorg-xextproto @7.1.1_0 (active)
   xorg-xf86bigfontproto @1.2.0_0 (active)
   xorg-xproto @7.0.16_0 (active)
   xorg-xtrans @1.2.5_0 (active)
   xrender @0.9.5_0 (active)
   XviD @1.2.2_0 (active)
   yasm @0.8.0_0 (active)
   zlib @1.2.3_3 (active)
 }}}

--

-- 
Ticket URL: <http://trac.macports.org/ticket/22827#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list