Add mp4ff verification and OUTPUT_DIR support

This commit is contained in:
√(noham)²
2025-12-20 12:07:27 +01:00
parent 3fb0349143
commit 86d73b149c
4 changed files with 18 additions and 5 deletions

View File

@@ -2,6 +2,17 @@ import os
import sys
import logging
import subprocess
import shutil
def verify_mp4ff():
"""Verify if mp4ff-decrypt is installed and available in PATH."""
if shutil.which("mp4ff-decrypt") is None:
print("❌ Error: mp4ff-decrypt is not installed or not in PATH.")
print("Please install it using:")
print("go install github.com/Eyevinn/mp4ff/cmd/mp4ff-decrypt@latest")
sys.exit(1)
return True
def verify_cmd(path: str) -> bool: