fix cuts for multipart videos

This commit is contained in:
j 2015-12-01 19:40:15 +01:00
parent d42f6646a5
commit d23a6eb317

View file

@ -117,7 +117,9 @@ def join_tiles(source_paths, target_path):
mode = info['mode'] mode = info['mode']
source_files[mode].append(path + info['file']) source_files[mode].append(path + info['file'])
modes = [m for m in modes if source_files[m]] modes = [m for m in modes if source_files[m]]
for i, path in enumerate(source_paths):
for f in source_files[modes[0]]: for f in source_files[modes[0]]:
if f.startswith(path):
width = Image.open(f).size[0] width = Image.open(f).size[0]
durations[i] += width / fps durations[i] += width / fps
frame_n += width frame_n += width