Skip to content

why can't I access this attribute? #1606

Closed Answered by WyattBlue
dotysan asked this question in 1. Help
Discussion options

You must be logged in to vote

Because the gop_size value for a decoder would, at best, produce a nonsense answer, and at worst, be slightly wrong or coincidentally correct.

gop_size tells the encoder how many non-keyframes there should be between each keyframe. Of course, the encoder might use that as only a rough guideline or ignore it completely. If you want to know the "gop_size" for a decoder. You can decode the frames in a loop, then check frame.is_keyframe to calculate the value.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by WyattBlue
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants