Reputation: 109
Is there any way to get the gop size of a video I'm decoding using the ffmpeg C API, that isn't demuxing until I find an iframe?
Upvotes: 0
Views: 1686
Reputation: 1988
AVCodecContext has an element for this but I'm not sure if it always work: int AVCodecContext::gop_size
Here is the link: https://www.ffmpeg.org/doxygen/trunk/structAVCodecContext.html
Upvotes: 2