[Libav-user] Conversion from mp3 to aac/mp4 container problem

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jun 21 12:06:36 CEST 2013


Taha Ansari <mtaha.ansari at ...> writes:

> I have run this application with existing mp4 
> files as input, and it properly extracts audio, 
> and encodes to mp4 (audio only:AAC), or even 
> directly in AAC format (i.e. test.aac also 
> works). But when I tried running it on mp3 
> files, output clip plays faster than it should 
> be (a clip of 1:12 seconds plays back till 
> 1:05 seconds only, and is also noisy).

I did not look at your code but did you consider 
that the AAC decoder outputs AV_SAMPLE_FMT_FLTP 
and the MP3 decoder signed 16 bit values (I 
believe you can request planar or not)?

Carl Eugen



More information about the Libav-user mailing list