add messages for exceptions
parent
a31e81fa66
commit
6824763a41
|
@ -27,7 +27,8 @@ def run_ffmpeg(args: List[str]) -> bool:
|
||||||
subprocess.check_output(commands, stderr=subprocess.STDOUT)
|
subprocess.check_output(commands, stderr=subprocess.STDOUT)
|
||||||
return True
|
return True
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
print(' '.join(commands), "failed, please check the ffmpeg installation!")
|
||||||
|
exit(-1)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ def detect_fps(target_path: str) -> float:
|
||||||
numerator, denominator = map(int, output)
|
numerator, denominator = map(int, output)
|
||||||
return numerator / denominator
|
return numerator / denominator
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
print(' '.join(commands), "failed, please check the ffprobe installation!")
|
||||||
return 30.0
|
return 30.0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue