[DEPRECATED] Use :attr:`frame_rate` instead. Returns the rate as a ``float`` for legacy compatibility. The new :attr:`frame_rate` property returns an exact :class:`fractions.Fraction` and matches the naming used by :attr:`scenedetect.video_stream.VideoStream.frame_rate`.
(self)
| 286 | |
| 287 | @property |
| 288 | def framerate(self) -> float | None: |
| 289 | """[DEPRECATED] Use :attr:`frame_rate` instead. |
| 290 | |
| 291 | Returns the rate as a ``float`` for legacy compatibility. The new :attr:`frame_rate` |
| 292 | property returns an exact :class:`fractions.Fraction` and matches the naming used by |
| 293 | :attr:`scenedetect.video_stream.VideoStream.frame_rate`. |
| 294 | """ |
| 295 | # TODO(https://scenedetect.com/issue/548): emit DeprecationWarning here once internal |
| 296 | # callers and downstream users have had a release to migrate to `frame_rate`. |
| 297 | if self._rate is None: |
| 298 | return None |
| 299 | return float(self._rate) |
| 300 | |
| 301 | @property |
| 302 | def time_base(self) -> Fraction: |
nothing calls this directly
no outgoing calls
no test coverage detected