Closed tyler-rt closed 4 months ago
stream.rate = Fraction(1,60)
is deprecated, and is removed in 12.1.0, released today.
anyway, you shouldn't be able to set the stream frame rate? (How would you specify variable frame rates?)
You're looking for either:
VideoFrame
's pts@WyattBlue indeed I want to set the device frame rate of the webcam so it acquires at 15 or 60 fps. Is this supported by PyAV currently? In ffmpeg
this is done with -framerate 60
Overview
When using a webcam, pyav fails to set frame rate.
Expected behavior
Frame rate should be changeable, as in this ffmpeg script which on my computer works at 60fps:
Actual behavior
Frame rate is not set. cc https://github.com/PyAV-Org/PyAV/issues/1005
Investigation
I made a script with ffmpeg showing that I can change the FPS for my webcam from the default of 30fps to say 60fps or 15fps:
Reproduction
PyAV is unable to change frame rate:
Versions
Research
I have done the following:
Additional context