Demonstrate usage of the `detect()` function to process a complete video.
(test_video_file: str)
| 15 | |
| 16 | |
| 17 | def test_api_detect(test_video_file: str): |
| 18 | """Demonstrate usage of the `detect()` function to process a complete video.""" |
| 19 | from scenedetect import ContentDetector, detect |
| 20 | |
| 21 | scene_list = detect(test_video_file, ContentDetector()) |
| 22 | for i, scene in enumerate(scene_list): |
| 23 | print(f"Scene {i + 1}: {scene[0].get_timecode()} - {scene[1].get_timecode()}") |
| 24 | |
| 25 | |
| 26 | def test_api_detect_start_end_time(test_video_file: str): |
nothing calls this directly
no test coverage detected