MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / test_vfr_bframes_accuracy

Function test_vfr_bframes_accuracy

tests/release/test_vfr.py:63–71  ·  view source on GitHub ↗
(vfr_bframes_video, backend)

Source from the content-addressed store, hash-verified

61@pytest.mark.release
62@pytest.mark.parametrize("backend", ["opencv", "pyav"])
63def test_vfr_bframes_accuracy(vfr_bframes_video, backend):
64 video = open_video(vfr_bframes_video, backend=backend)
65 # Ensure B-frames don't cause issues with frame ordering or detection
66 scene_manager = SceneManager()
67 scene_manager.add_detector(ContentDetector())
68 scene_manager.detect_scenes(video)
69
70 assert video.duration is not None
71 assert video.duration.seconds > 0
72
73
74@pytest.mark.release

Callers

nothing calls this directly

Calls 5

add_detectorMethod · 0.95
detect_scenesMethod · 0.95
open_videoFunction · 0.90
SceneManagerClass · 0.90
ContentDetectorClass · 0.90

Tested by

no test coverage detected