Gary wrote:
> Using "-g 20" on ffmpeg happily gives me a constant keyframe spacing of
> 20 frames. However, I want to incorporate this in my own program and
> cannot for the life of me see where ffmpeg is using this value or, for
> that matter, even see where/how it extracts the argument from the
> command line!
int AVCodecContext::gop_size
/**
* the number of pictures in a group of pictures, or 0 for intra_only
* - encoding: Set by user.
* - decoding: unused
*/
int gop_size;
cf. also libavcodec/options.c
{"g", "set the group of picture size", OFFSET(gop_size),
FF_OPT_TYPE_INT, 12, INT_MIN, INT_MAX, V|E}
cf. also
http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/apiexample_8c-source.html#l00216
NB : variable GOP size (AKA adaptive GOP) is a feature (starting a new
GOP when a scene change has been detected)
--
Regards.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user