For CFR video, frame_num should be exact (not approximate).
(test_movie_clip: str)
| 216 | |
| 217 | |
| 218 | def test_cfr_frame_num_exact(test_movie_clip: str): |
| 219 | """For CFR video, frame_num should be exact (not approximate).""" |
| 220 | video = open_video(test_movie_clip, backend="pyav") |
| 221 | for expected_frame in range(1, 11): |
| 222 | assert video.read() is not False |
| 223 | assert video.position.frame_num == expected_frame - 1 |
| 224 | |
| 225 | |
| 226 | def test_vfr_save_images_opencv_matches_pyav(test_vfr_video: str, tmp_path): |
nothing calls this directly
no test coverage detected