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

Function get_mkvmerge_path

scenedetect/platform.py:294–301  ·  view source on GitHub ↗

Get path to mkvmerge if available on the current system by checking PATH. Returns None if mkvmerge couldn't be found.

()

Source from the content-addressed store, hash-verified

292
293
294def get_mkvmerge_path() -> str | None:
295 """Get path to mkvmerge if available on the current system by checking PATH. Returns None if
296 mkvmerge couldn't be found."""
297 try:
298 subprocess.call(["mkvmerge", "--quiet"])
299 return "mkvmerge"
300 except OSError:
301 return None
302
303
304def get_mkvmerge_version() -> str | None:

Callers 1

is_mkvmerge_availableFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected