MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / framerate

Method framerate

scenedetect/common.py:288–299  ·  view source on GitHub ↗

[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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected