Fix frame number display in verbose output.
This commit is contained in:
parent
56498f6154
commit
cc5cdde995
@ -1053,7 +1053,7 @@ class AFPRenderer(VerboseOutput):
|
|||||||
# Create a new image to render into.
|
# Create a new image to render into.
|
||||||
time = spf * frameno
|
time = spf * frameno
|
||||||
color = swf.color or Color(0.0, 0.0, 0.0, 0.0)
|
color = swf.color or Color(0.0, 0.0, 0.0, 0.0)
|
||||||
self.vprint(f"Rendering frame {frameno}/{len(root_clip.source.frames)} ({round(time, 2)}s)")
|
self.vprint(f"Rendering frame {frameno + 1}/{len(root_clip.source.frames)} ({round(time, 2)}s)")
|
||||||
|
|
||||||
# Go through all registered clips, place all needed tags.
|
# Go through all registered clips, place all needed tags.
|
||||||
changed = self.__process_tags(root_clip)
|
changed = self.__process_tags(root_clip)
|
||||||
@ -1072,7 +1072,7 @@ class AFPRenderer(VerboseOutput):
|
|||||||
frameno += 1
|
frameno += 1
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
# Allow ctrl-c to end early and render a partial animation.
|
# Allow ctrl-c to end early and render a partial animation.
|
||||||
print(f"WARNING: Interrupted early, will render only {len(frames)}/{len(root_clip.source.frames)} frames of animation!")
|
print(f"WARNING: Interrupted early, will render only {len(frames) + 1}/{len(root_clip.source.frames)} frames of animation!")
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
self.movie = None
|
self.movie = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user