Fix for videos using ancient codecs
This commit is contained in:
parent
02498c779d
commit
506e5a6cc5
@ -206,6 +206,8 @@ def get_resolution(filename):
|
||||
output = output.splitlines()[-1]
|
||||
elif "Header missing" in output:
|
||||
output = output.splitlines()[-1]
|
||||
elif "SEI type" in output:
|
||||
output = output.splitlines()[-1]
|
||||
except subprocess.CalledProcessError:
|
||||
print(f"{bcolors.FAIL}There seams to be an error with {filename}{bcolors.ENDC}")
|
||||
return False
|
||||
@ -232,6 +234,8 @@ def get_codec(filename):
|
||||
output = output.splitlines()[-1]
|
||||
elif "Header missing" in output:
|
||||
output = output.splitlines()[-1]
|
||||
elif "SEI type" in output:
|
||||
output = output.splitlines()[-1]
|
||||
except subprocess.CalledProcessError:
|
||||
print(f"{bcolors.FAIL}There seams to be an error with {filename}{bcolors.ENDC}")
|
||||
return False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user