-
import av
from fractions import Fraction
container = av.open("output.mp4", 'w')
stream = container.add_stream("libx264", rate=15.0)
Works fine in 13.0.0 and older. |
Beta Was this translation helpful? Give feedback.
Answered by
WyattBlue
Oct 11, 2024
Replies: 1 comment 3 replies
-
This is a consequence of
because they both use the same utility function. While I think it's okay for PyAV to raise this error (framerate is AVRational, not float64), documentation should have been changed and mypy should be flagging this. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
nagadomi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a consequence of
because they both use the same utility function. While I think it's okay for PyAV to raise this error (framerate is AVRational, not float64), documentation should have been changed and mypy should be flagging this.