Skip to content

Commit 196570c

Browse files
committed
added automatic checking for the maximum keyframe number
1 parent 3baf71e commit 196570c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

assemble_video.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from PIL import Image
99

1010
frames_between_keyframes = 60
11-
maximum_keyframe_number = 47
1211
zoom_scale = 2.0
1312

1413
# log1.1 of 2 is 7.27
@@ -35,6 +34,8 @@
3534
files = glob.glob("output/*.png")
3635
files.sort()
3736

37+
maximum_keyframe_number = len(files) - 1
38+
3839
# We start with the previous image, this is modified
3940
previous_keyframe = Image.open(files[0])
4041

0 commit comments

Comments
 (0)