This commit is contained in:
j 2017-06-01 09:59:55 +02:00
parent d35b9d2ac9
commit db05557ae7

View file

@ -16,7 +16,7 @@ import ox
class AspectRatio(fractions.Fraction):
def __new__(cls, numerator, denominator=None):
if not denominator:
ratio = map(int, numerator.split(':'))
ratio = list(map(int, numerator.split(':')))
if len(ratio) == 1:
ratio.append(1)
numerator = ratio[0]
@ -68,7 +68,7 @@ def run_command(cmd, timeout=25):
def video_frame_positions(duration):
pos = duration / 2
# return [pos/4, pos/2, pos/2+pos/4, pos, pos+pos/2, pos+pos/2+pos/4]
return map(int, [pos/2, pos, pos+pos/2])
return list(map(int, [pos/2, pos, pos+pos/2]))
def cleanup_tree(root):
again = False