Javanaut 2 years ago
parent 2e08b8f421
commit 832b1d3444

@ -94,10 +94,14 @@ if not dtsBandwidth.endswith('k'):
cropStart = '' cropStart = ''
cropLength = '' 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: if cropTokens:
cropString = cropTokens[0].split('=')[1] if '=' in cropTokens[0]:
cropStart, cropLength = cropString.split(',') cropString = cropTokens[0].split('=')[1]
cropStart, cropLength = cropString.split(',')
else:
cropStart = 60
cropLength = 180
output = executeProcess(["ffprobe", "-show_streams", "-of", "json" ,inputFilename]) output = executeProcess(["ffprobe", "-show_streams", "-of", "json" ,inputFilename])

Loading…
Cancel
Save