Skip to content

Commit 0c32f82

Browse files
Fix missing frames in SaveWEBM node.
1 parent 189da37 commit 0c32f82

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

comfy_extras/nodes_video.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def save_images(self, images, codec, fps, filename_prefix, crf, prompt=None, ext
5959
frame = av.VideoFrame.from_ndarray(torch.clamp(frame[..., :3] * 255, min=0, max=255).to(device=torch.device("cpu"), dtype=torch.uint8).numpy(), format="rgb24")
6060
for packet in stream.encode(frame):
6161
container.mux(packet)
62+
container.mux(stream.encode())
6263
container.close()
6364

6465
results = [{

0 commit comments

Comments
 (0)