fix joining audio only timelines
This commit is contained in:
parent
d96f98e4cf
commit
4bdce55364
1 changed files with 5 additions and 4 deletions
|
@ -116,10 +116,11 @@ 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]]:
|
||||||
durations[i] += width / fps
|
width = Image.open(f).size[0]
|
||||||
frame_n += width
|
durations[i] += width / fps
|
||||||
|
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))
|
||||||
large_tile_last_w = frame_n % large_tile_w or 60
|
large_tile_last_w = frame_n % large_tile_w or 60
|
||||||
small_tile_n = int(math.ceil(frame_n / fps / small_tile_w))
|
small_tile_n = int(math.ceil(frame_n / fps / small_tile_w))
|
||||||
|
|
Loading…
Reference in a new issue