Convert `seconds` to the nearest number of frames using the current framerate. *NOTE*: This will not be correct for variable framerate videos.
(self, seconds: float)
| 464 | ) |
| 465 | |
| 466 | def _seconds_to_frames(self, seconds: float) -> int: |
| 467 | """Convert `seconds` to the nearest number of frames using the current framerate. |
| 468 | |
| 469 | *NOTE*: This will not be correct for variable framerate videos. |
| 470 | """ |
| 471 | assert self._rate is not None |
| 472 | return round(seconds * self._rate) |
| 473 | |
| 474 | def _timecode_to_seconds(self, input: str) -> float: |
| 475 | """Parses a string based on the three possible forms (in timecode format, as an integer |
no outgoing calls
no test coverage detected