[Libav-user] Encode PCM16 to AAC

Michael IV explomaster at gmail.com
Tue Mar 13 18:16:20 EET 2018


Hi. I have a PCM 16 bit (signed) stream,which I want to encode using AAC
codec.

Now I am following the setup of audio encoding example and where  I check
for
SAMPLE FMT support by the codec,the check fails:

       while (*p != AV_SAMPLE_FMT_NONE)
{
if (*p == c->sample_fmt)
{
break;
}
p++;
}

Because AAC codec which I opened contains only AV_SAMPLE_FMT_FLTP

Does it mean I can't use audio data as PCM16 to encode with AAC?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180313/b00bb714/attachment.html>


More information about the Libav-user mailing list