Fix missing video headers

This commit is contained in:
Fabrice Quenneville 2020-11-15 22:53:37 -05:00
parent a3028136af
commit 02498c779d

View File

@ -204,6 +204,8 @@ def get_resolution(filename):
output = output.splitlines()[-1]
elif "Error, header damaged or not MPEG-4 header" in output:
output = output.splitlines()[-1]
elif "Header missing" 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
@ -228,6 +230,8 @@ def get_codec(filename):
output = output.splitlines()[-1]
elif "Error, header damaged or not MPEG-4 header" in output:
output = output.splitlines()[-1]
elif "Header missing" 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