[FFmpeg-user] MP4 -> ADTS Headers

Ronak ronak2121 at yahoo.com
Thu Oct 3 07:48:44 EEST 2019


I’m writing a C++ program to validate the integrity of a Fragmented MP4 file containing AAC audio.
This program would parse the FMP4 file, read each audio packet, attachment ADTS headers, and then try to decode the AAC using libfdk_aac.

I am using libavformat, and I am able to parse the MP4 atoms correctly, however I’m having issues figuring out the best way to attach the ADTS headers.

The best sample I was able to find was:

https://patchwork.ffmpeg.org/patch/3184/ <https://patchwork.ffmpeg.org/patch/3184/>

Is there a better example for me to use?


More information about the ffmpeg-user mailing list