(ffmpeg_bin=None)
| 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() |