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

Method frame_rate

scenedetect/common.py:277–285  ·  view source on GitHub ↗

The frame rate as an exact rational :class:`fractions.Fraction`. For CFR sources this equals ``1 / time_base``. For VFR sources the rate may be an approximation (e.g. the average framerate); prefer :attr:`time_base` for exact PTS arithmetic. Returns ``None`` for timecodes co

(self)

Source from the content-addressed store, hash-verified

275
276 @property
277 def frame_rate(self) -> Fraction | None:
278 """The frame rate as an exact rational :class:`fractions.Fraction`.
279
280 For CFR sources this equals ``1 / time_base``. For VFR sources the rate may be an
281 approximation (e.g. the average framerate); prefer :attr:`time_base` for exact PTS
282 arithmetic. Returns ``None`` for timecodes constructed without an associated rate
283 (i.e. pure :class:`Timecode` representations).
284 """
285 return self._rate
286
287 @property
288 def framerate(self) -> float | None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected