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-FunPack > FunPack StoryMem Last Frame Extractor

ComfyUI Node: FunPack StoryMem Last Frame Extractor

Class Name

FunPackStoryMemLastFrameExtractor

Category
FunPack
Author
olivv-cs (Account age: 1247days)
Extension
ComfyUI-FunPack
Latest Updated
2026-10-07
Github Stars
0.02K

How to Install ComfyUI-FunPack

Install this extension via the ComfyUI Manager by searching for ComfyUI-FunPack
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-FunPack 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

FunPack StoryMem Last Frame Extractor Description

Extracts last frame & specified frames from end of sequence for smooth transitions in video editing workflows.

FunPack StoryMem Last Frame Extractor:

The FunPackStoryMemLastFrameExtractor is a specialized node designed to enhance video editing workflows by extracting the last frame and a specified number of frames from the end of a sequence. This functionality is particularly useful for maintaining continuity in video projects, such as MI2V (Motion Image to Video) and MM2V (Motion Motion to Video) processes. By focusing on the final frames, this node helps ensure that transitions between scenes are smooth and coherent, which is crucial for storytelling and maintaining viewer engagement. The node's ability to extract these frames efficiently allows for seamless integration into larger video editing pipelines, making it an essential tool for AI artists looking to refine their video projects with precision and ease.

FunPack StoryMem Last Frame Extractor Input Parameters:

frames

The frames parameter is a required input that represents the sequence of images or frames from which the last frame and the last N frames will be extracted. This parameter is crucial as it provides the raw data that the node processes to achieve its goal of maintaining video continuity. The frames should be provided in a format that the node can interpret as a sequence of images, typically in a multi-dimensional array format where each frame is represented by its pixel data.

n_frames

The n_frames parameter specifies the number of frames to extract from the end of the sequence. It is an integer value that allows you to control how many of the final frames are included in the output, which can be particularly useful for creating smooth transitions in video editing. The default value is 5, with a minimum of 1 and a maximum of 20. This range provides flexibility, enabling you to tailor the extraction process to the specific needs of your project, whether you require just a few frames for a subtle transition or a larger number for more complex continuity tasks.

FunPack StoryMem Last Frame Extractor Output Parameters:

last_frame

The last_frame output is a single image representing the final frame of the input sequence. This output is crucial for scenarios where the very last frame needs to be isolated for further processing or analysis, such as creating a freeze-frame effect or ensuring the final scene of a video is consistent with the preceding content. The last_frame is returned as a multi-dimensional array with dimensions [1, H, W, C], where H, W, and C represent the height, width, and color channels of the image, respectively.

motion_frames

The motion_frames output consists of the last N frames extracted from the input sequence, providing a series of images that capture the motion leading up to the final frame. This output is essential for maintaining continuity in video projects, as it allows for the creation of smooth transitions between scenes. The motion_frames are returned as a multi-dimensional array with dimensions [N, H, W, C], where N is the number of frames specified by the n_frames parameter, and H, W, and C represent the height, width, and color channels of each image.

FunPack StoryMem Last Frame Extractor Usage Tips:

  • To ensure smooth transitions in your video projects, adjust the n_frames parameter based on the complexity of the motion you wish to capture. For subtle transitions, a smaller number of frames may suffice, while more dynamic scenes may benefit from extracting the maximum number of frames.
  • When working with high-resolution video content, ensure that your system has sufficient memory resources to handle the extraction process, especially if you are working with the maximum number of frames.

FunPack StoryMem Last Frame Extractor Common Errors and Solutions:

"IndexError: list index out of range"

  • Explanation: This error occurs when the n_frames parameter is set to a value greater than the number of frames available in the input sequence.
  • Solution: Ensure that the n_frames parameter does not exceed the total number of frames in the input sequence. Adjust the parameter accordingly to match the available data.

"TypeError: unsupported operand type(s)"

  • Explanation: This error may arise if the input frames are not provided in the expected format, such as a list or array of images.
  • Solution: Verify that the frames input is correctly formatted as a sequence of images, ensuring compatibility with the node's processing requirements.

FunPack StoryMem Last Frame Extractor Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-FunPack
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.

FunPack StoryMem Last Frame Extractor