|
|
@ -230,15 +230,19 @@ class FileProperties():
|
|
|
|
|
|
|
|
|
|
|
|
errorLines = ffprobeError.split('\n')
|
|
|
|
errorLines = ffprobeError.split('\n')
|
|
|
|
|
|
|
|
|
|
|
|
cropHistogram = {}
|
|
|
|
crops = {}
|
|
|
|
for el in errorLines:
|
|
|
|
for el in errorLines:
|
|
|
|
|
|
|
|
|
|
|
|
cropdetect_match = re.search(FileProperties.CROPDETECT_PATTERN, el)
|
|
|
|
cropdetect_match = re.search(FileProperties.CROPDETECT_PATTERN, el)
|
|
|
|
|
|
|
|
|
|
|
|
if cropdetect_match is not None:
|
|
|
|
if cropdetect_match is not None:
|
|
|
|
print(cropdetect_match.group(0))
|
|
|
|
cropParam = str(cropdetect_match.group(0))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
crops[cropParam] = crops.get(cropParam, 0) + 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cropHistogram = sorted(crops)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
print(cropHistogram[0])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# return json.loads(ffprobeOutput)['streams']
|
|
|
|
# return json.loads(ffprobeOutput)['streams']
|
|
|
|