Javanaut 2 years ago
parent 2e08b8f421
commit 832b1d3444

@ -94,10 +94,14 @@ if not dtsBandwidth.endswith('k'):
cropStart = ''
cropLength = ''
cropTokens = [c for c in sys.argv if c.startswith('crop=')]
cropTokens = [c for c in sys.argv if c.startswith('crop')]
if cropTokens:
cropString = cropTokens[0].split('=')[1]
cropStart, cropLength = cropString.split(',')
if '=' in cropTokens[0]:
cropString = cropTokens[0].split('=')[1]
cropStart, cropLength = cropString.split(',')
else:
cropStart = 60
cropLength = 180
output = executeProcess(["ffprobe", "-show_streams", "-of", "json" ,inputFilename])

Loading…
Cancel
Save