Nix Seymour commited on
Commit
4283596
·
1 Parent(s): 980b51d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -40,7 +40,9 @@ def convert(file: _TemporaryFileWrapper, options: str):
40
  def chk_cod(a):
41
  command = f"ffprobe {a} 2>&1 >/dev/null"
42
  output = subprocess.check_output(command, shell=True).decode("utf-8")
 
43
  match = re.search(r"Stream.*Video.*", output)
 
44
  if match:
45
  video_info = match.group()
46
  codec = re.sub(r".*Video: ([^, ]+).*", r"\1", video_info)
 
40
  def chk_cod(a):
41
  command = f"ffprobe {a} 2>&1 >/dev/null"
42
  output = subprocess.check_output(command, shell=True).decode("utf-8")
43
+ print(output)
44
  match = re.search(r"Stream.*Video.*", output)
45
+ print(match)
46
  if match:
47
  video_info = match.group()
48
  codec = re.sub(r".*Video: ([^, ]+).*", r"\1", video_info)