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

Function _edl

tests/release/test_cli_permutations.py:233–252  ·  view source on GitHub ↗
(form: str, out_dir)

Source from the content-addressed store, hash-verified

231 repo_cwd = os.path.abspath(os.path.dirname(test_video_file) + "/../..")
232
233 def _edl(form: str, out_dir):
234 result = _run(
235 [
236 "-i",
237 os.path.abspath(test_video_file),
238 "-o",
239 str(out_dir),
240 "detect-content",
241 "save-edl",
242 "--start-timecode",
243 form,
244 ],
245 cwd=repo_cwd,
246 )
247 assert result.returncode == 0, (
248 f"start-timecode {form!r} failed:\nstderr:\n{result.stderr}\nstdout:\n{result.stdout}"
249 )
250 edls = [p for p in out_dir.iterdir() if p.suffix == ".edl"]
251 assert edls, f"save-edl --start-timecode {form!r} produced no .edl file"
252 return edls[0].read_text()
253
254 # SMPTE form.
255 smpte_dir = tmp_path / "smpte"

Calls 1

_runFunction · 0.85

Tested by

no test coverage detected