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

Method position_ms

scenedetect/backends/pyav.py:207–212  ·  view source on GitHub ↗

Current position within stream as a float of the presentation time in milliseconds. The first frame has a PTS of 0.

(self)

Source from the content-addressed store, hash-verified

205
206 @property
207 def position_ms(self) -> float:
208 """Current position within stream as a float of the presentation time in
209 milliseconds. The first frame has a PTS of 0."""
210 if self._frame is None:
211 return 0.0
212 return self._frame.time * 1000.0
213
214 @property
215 def frame_number(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected