Video Folder Analyzer:
The VideoFolderAnalyzer is a powerful node designed to streamline the process of analyzing video files within a specified folder. Its primary purpose is to provide a comprehensive report on various video attributes such as size, frame rate, and file type. This node is particularly beneficial for AI artists and content creators who need to manage and understand large collections of video files efficiently. By automating the analysis of video files, it saves time and effort, allowing you to focus on creative tasks. The node can handle multiple video formats and can include subfolders in its analysis, making it versatile and adaptable to different organizational structures. It generates detailed reports in various formats, ensuring that the information is accessible and easy to interpret.
Video Folder Analyzer Input Parameters:
folder_path
The folder_path parameter specifies the directory containing the video files you wish to analyze. It is crucial for directing the node to the correct location of your video files. If the path is invalid or not provided, the node will not be able to perform the analysis. This parameter does not have a default value, and you must provide a valid path for the node to function correctly.
include_subfolders
The include_subfolders parameter is a boolean option that determines whether the node should include video files from subdirectories within the specified folder path. By default, this is set to False, meaning only the files in the top-level directory are analyzed. Setting this to True allows for a more comprehensive analysis by including all nested folders, which is useful for analyzing large collections organized in a hierarchical structure.
output_format
The output_format parameter allows you to choose the format in which the analysis report will be generated. The available options are text, json, and markdown, with markdown being the default. This flexibility enables you to select a format that best suits your needs, whether you require a human-readable report or a structured data format for further processing.
file_extensions
The file_extensions parameter is a string that specifies the video file types to be included in the analysis. By default, it includes common video formats such as mp4, avi, mov, mkv, wmv, flv, webm, m4v, mpg, and mpeg. You can customize this list by providing a comma-separated string of desired extensions, allowing the node to focus on specific file types relevant to your project.
Video Folder Analyzer Output Parameters:
report
The report output provides a detailed textual summary of the analysis conducted on the video files. It includes information such as the total size of the videos, frame rate statistics, and file type distribution. This report is designed to be easily readable and provides a quick overview of the video collection's characteristics.
json_data
The json_data output is a structured representation of the analysis results in JSON format. This output is particularly useful for further data processing or integration with other systems, as it allows for easy parsing and manipulation of the analysis data programmatically.
Video Folder Analyzer Usage Tips:
- Ensure that the
folder_pathis correctly specified and accessible to avoid errors related to invalid paths. - Use the
include_subfoldersoption to analyze entire video collections organized in nested directories, which can provide a more comprehensive overview. - Choose the
output_formatthat best suits your needs;markdownis great for documentation, whilejsonis ideal for data processing. - Customize the
file_extensionsparameter to focus the analysis on specific video formats relevant to your project, which can help in managing large datasets more effectively.
Video Folder Analyzer Common Errors and Solutions:
Error: Invalid folder path provided
- Explanation: This error occurs when the specified
folder_pathis either empty or does not exist. - Solution: Double-check the folder path to ensure it is correct and accessible. Make sure the path is not empty and points to a valid directory.
No video files found in <folder_path>
- Explanation: The node did not find any video files matching the specified extensions in the given folder path.
- Solution: Verify that the folder contains video files with the specified extensions. You may need to adjust the
file_extensionsparameter to include the correct file types.
