mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 09:56:53 +00:00
check for ffprobe
This commit is contained in:
parent
e08b94c6ac
commit
843e6b4b38
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user