fix cuts for multipart videos
This commit is contained in:
parent
d42f6646a5
commit
d23a6eb317
1 changed files with 6 additions and 4 deletions
|
@ -117,10 +117,12 @@ 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 f in source_files[modes[0]]:
|
for i, path in enumerate(source_paths):
|
||||||
width = Image.open(f).size[0]
|
for f in source_files[modes[0]]:
|
||||||
durations[i] += width / fps
|
if f.startswith(path):
|
||||||
frame_n += width
|
width = Image.open(f).size[0]
|
||||||
|
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