[Libav-user] Regarding AAC to PCM conversion

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Aug 9 23:16:19 EEST 2019


Am Fr., 9. Aug. 2019 um 17:19 Uhr schrieb Gitanshu Mehndiratta
<gitanshu39 at gmail.com>:

> My target is to convert AAC, fltp format to PCM, S16 format.

If you are using the native "aac" decoder, the output is AV_SAMPLE_FMT_FLTP,
you have to use either the aresample filter or the libswresample
library directly
to convert to AV_SAMPLE_FMT_S16.
There is also an "aac_fixed" decoder but is provides AV_SAMPLE_FMT_S32P
which you also have to convert.

Note that the format provided by a decoder is not part of the api, it has
changed in the past and may change in the future so it is a good idea
to use aresample even if the decoder and encoder (currently) use the
same sample format.

Carl Eugen


More information about the Libav-user mailing list