necrosato
necrosato

Reputation: 109

How to get the GOP size of a video with ffmpeg (C)?

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

Answers (1)

the kamilz
the kamilz

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

Related Questions