add messages for exceptions

pull/245/head
ZillaRU 2024-08-13 12:03:43 +08:00
parent a31e81fa66
commit 6824763a41
1 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,8 @@ def run_ffmpeg(args: List[str]) -> bool:
subprocess.check_output(commands, stderr=subprocess.STDOUT)
return True
except Exception:
pass
print(' '.join(commands), "failed, please check the ffmpeg installation!")
exit(-1)
return False
@ -38,7 +39,7 @@ def detect_fps(target_path: str) -> float:
numerator, denominator = map(int, output)
return numerator / denominator
except Exception:
pass
print(' '.join(commands), "failed, please check the ffprobe installation!")
return 30.0