MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / test_api_detect

Function test_api_detect

tests/test_api.py:17–23  ·  view source on GitHub ↗

Demonstrate usage of the `detect()` function to process a complete video.

(test_video_file: str)

Source from the content-addressed store, hash-verified

15
16
17def 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
26def test_api_detect_start_end_time(test_video_file: str):

Callers

nothing calls this directly

Calls 3

detectFunction · 0.90
ContentDetectorClass · 0.90
get_timecodeMethod · 0.80

Tested by

no test coverage detected