Log in

View Full Version : FFmpeg/libavformat muxing


Dan203
20th November 2010, 03:22
OK I've used FFmpeg/libavformat to create a MKV/MP4 reader for VideoReDo. However I'm having trouble with AAC audio. It appears that the samples don't have ADTS headers which we need internally to decode the audio properly. I see that there is an ADTS muxer built into FFmpeg but I can't figure out how exactly to use it. What I need to do is take the frame returned by av_read_frame, run it through the ADTS muxer, then get the sample back so that I can then pass it along internally. Is it possible to do that? I don't quite understand how to use the muxers yet, and even from what I've seen I don't see a way of grabbing a sample back once it's been muxed.

Any help would be greatly appreciated.

Dan