av.format.ContainerFormat object has no attribute 'variable_fps' in av>=14 #1742
Unanswered
bjudkewitz
asked this question in
1. Help
Replies: 2 comments 1 reply
-
Yes. The answer is detect it yourself. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What do you mean by detect it yourself? Read a few frames and inspect their pts? Why not use the flag provided by the library? Isn't variable_fps provided by libavformat? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After opening an mp4 file with
container = av.open(filename)
accessing
container.format.variable_fps
returned a boolean with av version <14With av version 14.* this line fails with
AttributeError: 'av.format.ContainerFormat' object has no attribute 'variable_fps'
Is this expected behavior? If so, it it documented somewhere and is there a suggested alternative to get the same functionality?
Beta Was this translation helpful? Give feedback.
All reactions