First Last Frame Pixaroma - pulls the very first and the very last frame out of a video and sends them on as two images.
The usual reason to want this: you have just rendered a video and you want to carry on from where it ended. Take the last frame, feed it in as the start image of the next video, and the two clips join up. Wire either output into Save Image to keep it as a picture.
There are two inputs because ComfyUI has two different kinds of video on the wire. Use video_frames for a batch of frames, such as the video_frames output of Load Video Pixaroma. Use video for ComfyUI's own video type, such as the output of its Load Video node. Connect whichever one you have; you never need both. If both are connected, video_frames is the one that is used.
Reading a video file only costs the two frames it needs, so pointing this at a long clip does not load the whole thing into memory.
By pixaroma·Created 5 months ago·Updated about 16 hours ago· 333
First Last Frame Pixaroma
video_frames
video
first_frame
last_frame
Category👑 Pixaroma/🖼️ Image
Inputs (2)
Name
Type
Default
Description
video_framesopt
IMAGE
A batch of video frames, such as the video_frames output of Load Video Pixaroma. Any image batch works. If a single image is wired in, the first and last frame are both that image. Used in preference to the video input when both are connected.
videoopt
VIDEO
ComfyUI's own video type, such as the output of its Load Video node. Use this input when the video has not been turned into frames yet. Only the two frames that are needed are read, so a long clip stays cheap.
Outputs (2)
Name
Type
Description
first_frame
IMAGE
The very first frame of the video, as an image.
last_frame
IMAGE
The very last frame of the video, as an image. This is the one to feed into the next video when you want the clips to join up.