ComfyUI > Nodes > ComfyUI Level Pixel > Get Iterator Data From Videos [LP]

ComfyUI Node: Get Iterator Data From Videos [LP]

Class Name

GetIteratorDataVideos|LP

Category
LevelPixel/Iterators
Author
LevelPixel (Account age: 647days)
Extension
ComfyUI Level Pixel
Latest Updated
2026-02-24
Github Stars
0.03K

How to Install ComfyUI Level Pixel

Install this extension via the ComfyUI Manager by searching for ComfyUI Level Pixel
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI Level Pixel 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 Iterator Data From Videos [LP] Description

Extracts and organizes video metadata for iterative processing, aiding batch editing and analysis.

Get Iterator Data From Videos [LP]| Get Iterator Data From Videos [LP]:

The GetIteratorDataVideos| Get Iterator Data From Videos [LP] node is designed to facilitate the extraction and organization of video data for iterative processing. Its primary function is to scan a specified directory for video files that match given patterns, and then compile detailed metadata about these videos, including their names and frame counts. This node is particularly beneficial for tasks that require processing multiple video files in a systematic manner, such as batch video editing or analysis. By providing a structured dataset of video information, it enables efficient iteration over video frames, which is crucial for applications in AI art and video processing. The node's ability to handle various video formats and its option to rescan directories ensures flexibility and adaptability to different workflows.

Get Iterator Data From Videos [LP]| Get Iterator Data From Videos [LP] Input Parameters:

directory_path

The directory_path parameter specifies the location of the directory where the node will search for video files. It is a string input that should contain the path to the directory. This parameter is crucial as it determines the source of the video files to be processed. The default value is an empty string, and it does not have a specified minimum or maximum value, but it must be a valid directory path for the node to function correctly.

patterns

The patterns parameter allows you to define the types of video files to be included in the search. It is a string input that accepts file patterns separated by a pipe (|) character, such as *.mp4|*.avi|*.mov|*.mkv. This parameter is essential for filtering the video files based on their extensions, ensuring that only the desired file types are processed. The default value includes common video formats, and there are no explicit minimum or maximum values, but the patterns must be valid file extensions.

rescan_each_queue

The rescan_each_queue parameter is a boolean input that determines whether the directory should be rescanned each time the node is executed. When set to True, the node will re-evaluate the directory contents for each execution, which is useful for dynamic environments where video files may change frequently. The default value is True, and it can be set to False if rescanning is not necessary, which can improve performance in static environments.

Get Iterator Data From Videos [LP]| Get Iterator Data From Videos [LP] Output Parameters:

iterator_data

The iterator_data output provides a list of dictionaries, each containing metadata about a video file, such as its index, name, and frame count. This structured data is essential for iterating over video files and frames, enabling detailed processing and analysis. It serves as the foundation for subsequent operations that require access to video-specific information.

video_count

The video_count output is an integer that represents the total number of video files found in the specified directory that match the given patterns. This output is important for understanding the scope of the data being processed and for managing workflows that depend on the number of available video files.

frame_count

The frame_count output is an integer indicating the total number of frames across all the video files identified. This output is crucial for tasks that involve frame-by-frame processing, as it provides a comprehensive view of the data volume and helps in planning resource allocation and processing time.

Get Iterator Data From Videos [LP]| Get Iterator Data From Videos [LP] Usage Tips:

  • Ensure that the directory_path is correctly set to the folder containing your video files to avoid errors related to missing files.
  • Use specific patterns to filter out unnecessary video formats, which can optimize processing time and resource usage.
  • Set rescan_each_queue to False if the video files in the directory do not change frequently, as this can improve performance by avoiding unnecessary rescans.

Get Iterator Data From Videos [LP]| Get Iterator Data From Videos [LP] Common Errors and Solutions:

Directory not found

  • Explanation: The specified directory_path does not exist or is incorrect.
  • Solution: Verify that the directory_path is correct and points to an existing directory.

No video files found

  • Explanation: No video files matching the specified patterns were found in the directory.
  • Solution: Check the patterns to ensure they match the file extensions of the videos you want to process, and confirm that the directory contains such files.

Frame count retrieval error

  • Explanation: An error occurred while attempting to retrieve the frame count from a video file.
  • Solution: Ensure that the video files are not corrupted and are in a supported format. Consider updating your video processing libraries if the issue persists.

Get Iterator Data From Videos [LP] Related Nodes

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

Get Iterator Data From Videos [LP]