forked from 0x2620/pandora
fix cuts for multipart videos
This commit is contained in:
parent
d42f6646a5
commit
d23a6eb317
1 changed files with 6 additions and 4 deletions
|
@ -117,7 +117,9 @@ def join_tiles(source_paths, target_path):
|
|||
mode = info['mode']
|
||||
source_files[mode].append(path + info['file'])
|
||||
modes = [m for m in modes if source_files[m]]
|
||||
for i, path in enumerate(source_paths):
|
||||
for f in source_files[modes[0]]:
|
||||
if f.startswith(path):
|
||||
width = Image.open(f).size[0]
|
||||
durations[i] += width / fps
|
||||
frame_n += width
|
||||
|
|
Loading…
Reference in a new issue