+ Reply to Thread
Results 31 to 33 of 33
I am searching with google for answers/commands about that, but I can't find any to check easily.
For each I-frame in the sequence, search packets after it and note AVPacket.pos and AVPacket.pts. If B(pos) > I(pos) but B(pts) < I(pts), you have open GOP, else closed GOP.
If you want to be more precise, find some way to export the POC from the h264 parser, which is directly proportional to the timestamp.
The official way to confirm that is parse the reference list from the headers and make sure the I is in the reflist for the B.
Last edited by Sotee; 20th Feb 2020 at 12:08.