How can I simulate the ffmpeg empty_moov parameter in code?

The ffmpeg command line has the ability to use the empty moov_atom at the beginning of the file.

Additional information: http://www.ffmpeg.org/ffmpeg-formats.html#Options-3

I would like to do the same except for the code. Does anyone know how?

+3
source share
1 answer

This is AVOptionfor mov mov .

Things in avcodec, avformat etc. can take AVOptionwhen setting them up. You can use av_opt_setto set these parameters. It will be something like:

// Prefixing it with '+' sets the flag
// Prefixing it with '-' unsets the flag
av_opt_set(formatContext, "movflags", "+empty_moov", 0);
+3
source

All Articles