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

Method time_base

scenedetect/common.py:302–308  ·  view source on GitHub ↗

The time base in which presentation time is calculated.

(self)

Source from the content-addressed store, hash-verified

300
301 @property
302 def time_base(self) -> Fraction:
303 """The time base in which presentation time is calculated."""
304 if isinstance(self._time, Timecode):
305 return self._time.time_base
306 # `_FrameNumber` / `_Seconds` are only assigned after `_rate` is set.
307 assert self._rate is not None
308 return 1 / self._rate
309
310 @property
311 def pts(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected