check for ffprobe

This commit is contained in:
rany 2022-03-10 15:26:04 +02:00
parent e08b94c6ac
commit 843e6b4b38

View File

@ -13,6 +13,10 @@ if shutil.which("ffmpeg") is None:
print("ffmpeg is not installed") print("ffmpeg is not installed")
exit(1) exit(1)
if shutil.which("ffprobe") is None:
print("ffprobe (part of ffmpeg) is not installed")
exit(1)
def parse_srt(srt_file): def parse_srt(srt_file):
with open(srt_file, "r", encoding="utf-8") as f: with open(srt_file, "r", encoding="utf-8") as f: