[FFmpeg-devel] Decode basic data from an AAC stream before muxing into MOV family containers.

Leo Izen leo.izen at gmail.com
Thu Apr 28 22:07:12 CEST 2011


When using -acodec copy -f mov* (mov* meaning mov, mp4, ipod, 3gp, 3g2, or
mj2), libavformat will copy the AAC stream as is into the container without
looking at data such as frame duration. This leads to a mismatch in
container data and the AAC data, and any smart decoder/demuxer will take the
AAC values and not the container values. Unfortunately, iTunes isn't smart
enough and won't be able to play the file, even though QuickTime will. I
suggest that libavformat should decode the first small part of the AAC
bitstream (just the metadata, not the audio) and use that in the container
data, but unfortunately I don't have enough knowledge of how movenc.c works
to do this.


More information about the ffmpeg-devel mailing list