ComfyUI > Nodes > CRT-Nodes > Load Last Video (CRT)

ComfyUI Node: Load Last Video (CRT)

Class Name

CRTLoadLastVideo

Category
CRT/Load
Author
CRT (Account age: 1707days)
Extension
CRT-Nodes
Latest Updated
2026-03-16
Github Stars
0.1K

How to Install CRT-Nodes

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

Load Last Video (CRT) Description

Automatically loads the latest video from a directory, with options for frame selection and error handling.

Load Last Video (CRT):

The CRTLoadLastVideo node is designed to streamline the process of loading the most recent video file from a specified directory. This node is particularly useful for AI artists who frequently work with video data and need an efficient way to access the latest content without manually searching through files. By automatically identifying and loading the most recent video based on modification date or natural sorting, this node saves time and reduces the potential for errors. It processes video frames selectively, allowing you to skip initial frames, choose every nth frame, and limit the total number of frames loaded, which is beneficial for managing memory and processing resources. The node ensures that even if no valid video is found or an error occurs, a dummy image is returned, maintaining workflow continuity.

Load Last Video (CRT) Input Parameters:

folder_path

The folder_path parameter specifies the directory where the node will search for video files. It is crucial for determining the location from which the latest video will be loaded. If the path is invalid or does not exist, the node will return a dummy image. This parameter does not have a default value and must be provided by the user.

sort_by

The sort_by parameter determines the criteria used to identify the latest video file. You can choose to sort by "date" to select the most recently modified file or use natural sorting for other criteria. This parameter helps in accurately selecting the desired video file based on your workflow needs.

invert_order

The invert_order parameter is a boolean that, when set to true, reverses the sorting order. This can be useful if you want to load the oldest video instead of the newest one. The default value is false, meaning the node will load the most recent video by default.

frame_load_cap

The frame_load_cap parameter limits the number of frames loaded from the video. This is useful for controlling memory usage and processing time, especially when working with large video files. If set to a value greater than zero, the node will stop loading frames once this limit is reached.

skip_first_frames

The skip_first_frames parameter allows you to skip a specified number of initial frames in the video. This can be useful if the beginning of the video is not relevant to your analysis or processing. The default value is zero, meaning no frames are skipped unless specified.

select_every_nth

The select_every_nth parameter specifies that only every nth frame should be loaded from the video. This is beneficial for reducing the number of frames processed, which can save time and resources. The default value is one, meaning every frame is loaded unless otherwise specified.

Load Last Video (CRT) Output Parameters:

images

The images output parameter is a tensor containing the frames loaded from the video. Each frame is converted to RGB format and normalized, making it ready for further processing or analysis. This output is crucial for workflows that involve frame-by-frame video analysis or manipulation.

Load Last Video (CRT) Usage Tips:

  • Ensure the folder_path is correctly set to a directory containing video files to avoid errors and ensure smooth operation.
  • Use the frame_load_cap parameter to manage memory usage effectively, especially when dealing with high-resolution videos.
  • Adjust the select_every_nth parameter to reduce the number of frames processed, which can significantly speed up processing times for long videos.

Load Last Video (CRT) Common Errors and Solutions:

"Could not open video file: <video_path>"

  • Explanation: This error occurs when the node is unable to open the specified video file, possibly due to file corruption or unsupported format.
  • Solution: Verify that the video file is not corrupted and is in a supported format (e.g., webm, mp4, mkv, gi, mov). Ensure the file path is correct and accessible.

"No video files found in <folder_path>"

  • Explanation: This error indicates that the specified directory does not contain any video files with supported extensions.
  • Solution: Check that the directory contains video files with the correct extensions and that the folder_path is correctly specified.

"No frames loaded from <video_path>, possibly due to settings"

  • Explanation: This warning suggests that no frames were loaded from the video, potentially due to the settings for skipping frames or selecting every nth frame.
  • Solution: Review the skip_first_frames and select_every_nth parameters to ensure they are set appropriately for the video content. Adjust these settings to load the desired frames.

Load Last Video (CRT) Related Nodes

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

Load Last Video (CRT)