[Libav-user] How to encode aac coded packets with priming samples and remainder samples to keep av sync
applemax82 at 163.com
Fri Oct 9 18:47:12 CEST 2015
I'm want to mux video and audio packets into one mp4 file, where aac is used as audio encoder.
As the above link shows, aac encoder has priming samples at the start and remainder samples in the end, which should be removed in player site to keep av sync. The above url link shows solution to avoid av desync, i.e. using edit list or sample group structure.
Generally, write_frame() is used to write video/audio packets. What we can do is set pts, dts, and duration. How to create edit list entry or sample group structure to mark priming and remainder samples in mp4 file? Does ffmpeg have examples for this kind of issue?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user