ComfyUI > Nodes > ComfyUI Fictiverse Nodes > Get Last Output Video Path

ComfyUI Node: Get Last Output Video Path

Class Name

Get Last Output Video Path

Category
Fictiverse
Author
Fictiverse (Account age: 1343days)
Extension
ComfyUI Fictiverse Nodes
Latest Updated
2026-04-26
Github Stars
0.02K

How to Install ComfyUI Fictiverse Nodes

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

Get Last Output Video Path Description

Efficiently locates the latest video file in a specified subfolder for streamlined access.

Get Last Output Video Path:

The Get Last Output Video Path node is designed to help you efficiently locate the most recent video file generated by ComfyUI within a specified subfolder. This node is particularly useful for AI artists who frequently work with video outputs and need a quick way to access the latest file without manually searching through directories. By leveraging this node, you can streamline your workflow, ensuring that you always have easy access to your most recent video creations. The node operates by searching for video files in the specified subfolder and sorting them based on either the date of modification or the file name, allowing you to customize the retrieval process according to your preferences.

Get Last Output Video Path Input Parameters:

subfolder

The subfolder parameter allows you to specify a particular subdirectory within the main output directory of ComfyUI where the node should search for video files. This parameter is crucial for organizing your video outputs into different categories or projects, making it easier to locate specific files. The default value is an empty string, which means the node will look in the main output directory if no subfolder is specified. There are no minimum or maximum values for this parameter, as it is a string representing the folder path.

sort_by

The sort_by parameter determines the criteria used to sort the video files found in the specified subfolder. You can choose between two options: "Date" or "Name". Selecting "Date" will sort the files by their last modified time, with the newest files appearing first, which is useful when you want to access the most recently created video. Choosing "Name" will sort the files alphabetically in reverse order, which can be helpful if you organize your files with a naming convention that reflects their content or creation order. The default value for this parameter is "Date".

Get Last Output Video Path Output Parameters:

video_path

The video_path output parameter provides the file path of the most recent video file found in the specified subfolder, based on the sorting criteria you selected. This output is essential for quickly accessing the latest video output without manually navigating through directories. If no video files are found, the node will return an empty string, indicating that there are no available files in the specified location. This output helps streamline your workflow by providing direct access to your most recent video creations.

Get Last Output Video Path Usage Tips:

  • To ensure you always access the latest video output, use the sort_by parameter set to "Date", which will sort files by their last modified time.
  • Organize your video outputs into different subfolders based on projects or categories, and specify the subfolder parameter accordingly to quickly locate specific files.

Get Last Output Video Path Common Errors and Solutions:

Folder does not exist

  • Explanation: This error occurs when the specified subfolder does not exist within the main output directory.
  • Solution: Verify that the subfolder name is correct and that it exists in the output directory. Create the subfolder if it does not exist.

No matching files found

  • Explanation: This error indicates that no video files with the extensions .webp or .mp4 were found in the specified subfolder.
  • Solution: Ensure that the subfolder contains video files with the correct extensions. Check if the files are saved in the correct location.

Invalid sort_by option

  • Explanation: This error occurs if an invalid value is provided for the sort_by parameter.
  • Solution: Use only the allowed options "Date" or "Name" for the sort_by parameter to ensure proper sorting of files.

Get Last Output Video Path Related Nodes

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