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?
Asked
Active
Viewed 1,170 times
1 Answers
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
-
2Nope, not valid for **decoding**. – necrosato Oct 04 '18 at 15:13
-
2I looked at that variable and it claimed my 15 gop size vid was 12. – necrosato Oct 04 '18 at 15:15
-
For me too always 12 while decoding – Olga Pshenichnikova Dec 04 '19 at 14:59