[FFmpeg-devel] lame: output buffer too small issue

Dennis Volodomanov dennis.volodomanov
Fri Jan 30 02:16:27 CET 2009


> could you try to increase it and tell us at what value (if any) the
> issue goes away

I've done a few tests and nothing seems to work, but the behavior is
strange. The more I increase the buffer, the longer it takes at the end
of transcoding for ffmpeg to come back to me, but in each case the
buffer is reported as still too small (the index grows though). It feels
like the actual buffer size is not the problem here.

Some outputs (I'm using -t 00:00:05 to keep things short):

1) #define BUFFER_SIZE (7200 + 2*MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

[libmp3lame @ 0x21b4620]lame: output buffer too small (buffer index:
9195, free bytes: 597)
Audio encoding failed

2) #define BUFFER_SIZE (2*7200 + 2*MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

[libmp3lame @ 0x644620]lame: output buffer too small (buffer index:
16301, free bytes: 691)
Audio encoding failed

3) #define BUFFER_SIZE (20*7200 + 2*MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

[libmp3lame @ 0x2584660]lame: output buffer too small (buffer index:
145868, free bytes: 724)
Audio encoding failed

4) #define BUFFER_SIZE (200*7200 + 2*MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

[libmp3lame @ 0x2494660]lame: output buffer too small (buffer index:
1441959, free bytes: 633)
Audio encoding failed

5) #define BUFFER_SIZE (2000*7200 + 2*MPA_FRAME_SIZE + MPA_FRAME_SIZE/4)

[libmp3lame @ 0x2664620]lame: output buffer too small (buffer index:
14402038, free bytes: 554)
Audio encoding failed


   Dennis






More information about the ffmpeg-devel mailing list