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

Class Timecode

scenedetect/common.py:164–174  ·  view source on GitHub ↗

Timing information associated with a given frame.

Source from the content-addressed store, hash-verified

162
163@dataclass(frozen=True)
164class Timecode:
165 """Timing information associated with a given frame."""
166
167 pts: int
168 """Presentation timestamp of the frame in units of `time_base`."""
169 time_base: Fraction
170 """The base unit in which `pts` is measured."""
171
172 @property
173 def seconds(self) -> float:
174 return float(self.time_base * self.pts)
175
176
177@dataclass(frozen=True)

Callers 13

test_frame_rate_for_vfrFunction · 0.90
positionMethod · 0.90
positionMethod · 0.90
timecodeMethod · 0.90
positionMethod · 0.90
positionMethod · 0.90
__iadd__Method · 0.85

Calls

no outgoing calls