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

Function long_video

tests/release/conftest.py:57–71  ·  view source on GitHub ↗

Long synthetic video for memory/FD leak stress testing. Checked in under tests/resources/ on the resources branch; encode locally with ffmpeg if missing (see scripts/encode_stress_video.sh or the plan).

()

Source from the content-addressed store, hash-verified

55
56@pytest.fixture
57def long_video() -> str:
58 """Long synthetic video for memory/FD leak stress testing.
59
60 Checked in under tests/resources/ on the resources branch; encode locally
61 with ffmpeg if missing (see scripts/encode_stress_video.sh or the plan).
62 """
63 path = os.path.join(REPO_ROOT, "tests", "resources", "stress_15min.mp4")
64 if not os.path.exists(path):
65 pytest.skip(
66 "tests/resources/stress_15min.mp4 not present. Generate with: "
67 'ffmpeg -f lavfi -i "testsrc2=duration=900:size=640x480:rate=30" '
68 "-c:v libx264 -crf 30 -preset slow -pix_fmt yuv420p "
69 "tests/resources/stress_15min.mp4"
70 )
71 return path
72
73
74@pytest.fixture

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected