eternalBlissard commited on
Commit
f28c7ff
·
verified ·
1 Parent(s): 3c6856c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -13,6 +13,12 @@ import re
13
  from math import floor
14
  import subprocess
15
 
 
 
 
 
 
 
16
  # Command to find the location of ffmpeg.exe
17
  try:
18
  ffmpeg_location = subprocess.check_output(["which", "ffmpeg"], shell=True, text=True)
 
13
  from math import floor
14
  import subprocess
15
 
16
+ try:
17
+ ffmpeg_location = subprocess.check_output(["ffmpeg"], shell=True, text=True)
18
+ print(f"Location of ffmpeg.exe: {ffmpeg_location.strip()}")
19
+ except subprocess.CalledProcessError:
20
+ print("ffmpeg.exe not found in the system PATH.")
21
+
22
  # Command to find the location of ffmpeg.exe
23
  try:
24
  ffmpeg_location = subprocess.check_output(["which", "ffmpeg"], shell=True, text=True)