[Libav-user] AAC to ADTS

lyncher at sapo.pt lyncher at sapo.pt
Thu Mar 1 03:15:11 EET 2018

I'm creating a MPEG-TS files which has an encoded AAC audio track 
(aacenc.c) but when the AAC packets are added to output container I get 
the error:

> AAC bitstream not in ADTS format and extradata missing

I've found adtsenc.c in the source (which is a muxer) but I don't knw 
how to add that muxer to my encoding pipeline.

I already put AV_CODEC_FLAG_GLOBAL_HEADER in output format context flags 
(MPEG-TS) and also in encoder context flags (AAC) but I always get the 
above error.

How can I add convert my AAC packets to ADTS?



More information about the Libav-user mailing list