Duration of the stream as a FrameTimecode, or None if non terminating.
(self)
| 469 | |
| 470 | @property |
| 471 | def duration(self) -> FrameTimecode | None: |
| 472 | """Duration of the stream as a FrameTimecode, or None if non terminating.""" |
| 473 | frame_count = math.trunc(self._cap.get(cv2.CAP_PROP_FRAME_COUNT)) |
| 474 | if frame_count > 0: |
| 475 | return self.base_timecode + frame_count |
| 476 | return None |
| 477 | |
| 478 | @property |
| 479 | def aspect_ratio(self) -> float: |
nothing calls this directly
no outgoing calls
no test coverage detected