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

Víctor Paesa wzrlpy
Fri Jan 30 07:35:37 CET 2009


AUTHOR said Dennis Volodomanov
>> 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

The lame cvs log messages say they are deprecating the lame_encode API,
maybe they introduced too a bug there.

By the way, there is an entry (803) in our bug tracker for this.

Regards,
V?ctor






More information about the ffmpeg-devel mailing list