Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-ALICE-Lab-Audio-Tools > Video First / Last Frame

ComfyUI Node: Video First / Last Frame

Class Name

AliceLabVideoFirstLastFrame

Category
ALICE_Lab/Video
Author
alice-lab-dev (Account age: 0days)
Extension
ComfyUI-ALICE-Lab-Audio-Tools
Latest Updated
2026-11-03
Github Stars
0.0K

How to Install ComfyUI-ALICE-Lab-Audio-Tools

Install this extension via the ComfyUI Manager by searching for ComfyUI-ALICE-Lab-Audio-Tools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-ALICE-Lab-Audio-Tools in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Video First / Last Frame Description

Extracts the first and last frames of a ComfyUI video as images for use as workflow references.

Video First / Last Frame:

Extracts the opening and closing images from a ComfyUI video so you can use them as visual references elsewhere in your workflow. For videos backed by a file or stream, the node reads short sections near the beginning and end rather than loading the entire video into memory. It also checks the video frame timestamps to identify the final image, which helps when an audio track continues after the video images stop.

Video First / Last Frame Input Parameters:

video

The required ComfyUI VIDEO to examine. The node uses its available frames or video stream to find the first and last images within the active video range. Connect a video with at least one frame; an empty video cannot produce either result. There is no numeric minimum, maximum, default value, or selectable option for this input.

Video First / Last Frame Output Parameters:

first_frame

An IMAGE containing the first frame of the video. It is returned as a single-image batch, ready to connect to nodes that accept ComfyUI images. You can use it as a reference for how a clip begins.

last_frame

An IMAGE containing the last video frame, also returned as a single-image batch. For a stream-backed video, the node locates the final video image rather than treating a longer audio or container duration as evidence of additional frames. You can use this image as a reference for how the clip ends.

Video First / Last Frame Usage Tips:

  • Connect a valid ComfyUI VIDEO and send each image output to the part of your workflow that needs an opening or closing reference.
  • If you are working with a long file-backed video, use this node when you only need its boundary images: it decodes short sections near each end instead of materializing every frame.
  • There are no adjustable settings on this node. To change which images count as the beginning and end, prepare or trim the video upstream before connecting it.

Video First / Last Frame Common Errors and Solutions:

Input is not a valid ComfyUI VIDEO.

  • Explanation: The connected value does not provide usable video duration or frame-rate information.
  • Solution: Check that the connection comes from a node producing a ComfyUI VIDEO. Recreate or reload the video if its metadata is unavailable.

Input is not a stream-backed ComfyUI VIDEO.

  • Explanation: For a video that is not backed by in-memory frames, the node could not access the stream information needed to locate its final frame.
  • Solution: Use a supported ComfyUI VIDEO source and make sure its underlying video file or stream remains accessible.

Video contains no frames.

  • Explanation: The video is empty, has a non-positive duration or frame rate, or contains no usable frames in the active range.
  • Solution: Verify that the source plays and contains visible frames. If you trimmed it upstream, check that the selected range includes at least one frame.

VIDEO frames must use ComfyUI IMAGE layout [B, H, W, C].

  • Explanation: The extracted frames are not a four-dimensional ComfyUI image batch.
  • Solution: Supply a ComfyUI-compatible VIDEO rather than a differently formatted frame tensor, and check the node that created the video.

Could not locate the final VIDEO frame.

  • Explanation: An unexpected problem occurred while reading the stream to find its final frame.
  • Solution: Confirm that the video source is accessible and can be decoded. If the problem persists, try re-encoding the video or loading it through another compatible ComfyUI video source.

Video First / Last Frame Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-ALICE-Lab-Audio-Tools
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Video First / Last Frame