fix joining audio only timelines
This commit is contained in:
parent
d96f98e4cf
commit
4bdce55364
1 changed files with 5 additions and 4 deletions
|
@ -116,8 +116,9 @@ def join_tiles(source_paths, target_path):
|
||||||
for info in sorted(file_info, key=lambda x: x['index']):
|
for info in sorted(file_info, key=lambda x: x['index']):
|
||||||
mode = info['mode']
|
mode = info['mode']
|
||||||
source_files[mode].append(path + info['file'])
|
source_files[mode].append(path + info['file'])
|
||||||
if mode == modes[0]:
|
modes = [m for m in modes if source_files[m]]
|
||||||
width = Image.open(source_files[mode][-1]).size[0]
|
for f in source_files[modes[0]]:
|
||||||
|
width = Image.open(f).size[0]
|
||||||
durations[i] += width / fps
|
durations[i] += width / fps
|
||||||
frame_n += width
|
frame_n += width
|
||||||
large_tile_n = int(math.ceil(frame_n / large_tile_w))
|
large_tile_n = int(math.ceil(frame_n / large_tile_w))
|
||||||
|
|
Loading…
Reference in a new issue