[FFmpeg-user] Audio encode: [mp2 @ 0x29c52410] Size 1792 invalid

Mike Scheutzow mike.scheutzow at alcatel-lucent.com
Thu Jun 21 14:30:56 CEST 2012

Unga wrote:
> I tried with CODEC_ID_FLAC, then I get following:
> Audio Time base: 0.000023
> Audio frame_size: 4608
> Audio data_size: 18432
> [flac @ 0x29c52410] Size 1310 invalid
> Encode frame failed -22
> Is it some thing not set right?
> Best regards
> Unga

A better approach to figuring this out is:

1. come up with the ffmpeg app command line which does what you want

2. use the gdb debugger to execute the ffmpeg_g app, put a breakpoint on 
avcodec_encode_audio2(), and see what values the ffmpeg app uses for 
AVPacket and for the audio-related fields in AVCodecContext.

Mike Scheutzow

More information about the ffmpeg-user mailing list