[Libav-user] AVCodecContext frame_size

Gonzalo Garramuno ggarra13 at gmail.com
Mon Jun 2 22:18:54 CEST 2014


I am trying to mux audio into a movie file using mp3 and one of the 
conditions is that for that codec CODEC_CAP_VARIABLE_FRAME_SIZE is not 
set.  Currently I receive a frame_size of 1152 samples.
However, the audio frames I want to transcode have 1839 samples. I am 
wondering whether I can use swresample for transforming the 1839 samples 
into 1152 or if I can somehow increase the frame size.
Can someone shed some light into this?


More information about the Libav-user mailing list