[Libav-user] Transcoding audio to MP3 in mp4 container

Valeriy Shtoma shtomavaleriy at gmail.com
Wed Feb 21 17:22:20 EET 2018

Hi to all,

I'm using example(transcoding.c). After transcoding I get spoiled
sound and sometimes error: "more samples than frame size
(avcodec_encode_audio2)”. In this example, I have a filter graph,
that convert audio sample fmts, channel layout and sample rate.

What am I doing wrong? How to change packet size, if there is 

Thanks ;) Have a nice evening!

Kind Regards,
Valeriy V Shtoma

More information about the Libav-user mailing list