[Libav-user] Give Audio Packets higher priority while mux m2ts

Ingo Foerster foerster at ifoerster.com
Sat Nov 7 15:40:04 CET 2015


Hi,

I  tried  to  optimized  the  m2ts output (muxing) because it hangs on
Samsung Player. I tried to use

int ret = av_opt_set_int(outFile[fileIdx], "audio_preload", 200000, 0);

to  do this, but the difference between audio and video are very high.
Analyzed with Elecard Stream Analyzer.

What  is  the  magic with ffmpeg to get a very harmonic muxing so that
the difference is -500ms/+500ms to video and audio?

Ingo



More information about the Libav-user mailing list