diff --git a/bin/ffx.py b/bin/ffx.py index 79b94c7..8075c55 100755 --- a/bin/ffx.py +++ b/bin/ffx.py @@ -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])