trim
This commit is contained in:
parent
8257406e68
commit
c66f9bb251
1 changed files with 4 additions and 0 deletions
|
|
@ -811,6 +811,10 @@ def generate_clips(options):
|
|||
clip[type_] = target
|
||||
durations.append(e.files.filter(selected=True)[0].duration)
|
||||
clip["duration"] = min(durations)
|
||||
# trim to a multiple of the output fps
|
||||
d1 = int(clip["duration"] * 24) / 24
|
||||
if d1 != clip["duration"]:
|
||||
clip["duration"] = d1
|
||||
if not clip["duration"]:
|
||||
print('!!', durations, clip)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue