[Libav-user] AAC to ADTS

lyncher at sapo.pt lyncher at sapo.pt
Thu Mar 1 20:17:13 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? 

It seems that I've fill to fill extradata with some info to get MPEG-TS 
muxer to internally create an ADTS muxer.
Now I'm getting the error:
> MPEG-4 AOT 0 is not allowed in ADTS
How do I have to initialize extradata in order to have adtsenc.c to be 
correctly configured?

Thanks


More information about the Libav-user mailing list