MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _resolve_ffprobe_bin

Function _resolve_ffprobe_bin

IntelOSINT.py:19793–19801  ·  view source on GitHub ↗
(ffmpeg_bin=None)

Source from the content-addressed store, hash-verified

19791 return None
19792
19793 def _resolve_ffprobe_bin(ffmpeg_bin=None):
19794 sys_ffprobe = shutil.which("ffprobe")
19795 if sys_ffprobe:
19796 return sys_ffprobe
19797 if ffmpeg_bin:
19798 candidate = Path(ffmpeg_bin).with_name("ffprobe.exe" if os.name == "nt" else "ffprobe")
19799 if candidate.exists():
19800 return str(candidate)
19801 return None
19802
19803 def _compute_hashes(video_path: Path, chunk_size: int = 1024 * 1024):
19804 md5_h = hashlib.md5()

Callers 1

probe_metadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected