0

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?

necrosato
  • 109
  • 9

1 Answers1

2

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

the kamilz
  • 1,860
  • 1
  • 15
  • 19