ff
This commit is contained in:
@@ -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:
|
||||||
|
if '=' in cropTokens[0]:
|
||||||
cropString = cropTokens[0].split('=')[1]
|
cropString = cropTokens[0].split('=')[1]
|
||||||
cropStart, cropLength = cropString.split(',')
|
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])
|
||||||
|
|||||||
Reference in New Issue
Block a user