小珠光视频加载器:
XiaozhuguangVideoLoader is a powerful node designed to decode video files into a sequence of frames using FFmpeg, a leading multimedia framework. This node allows you to upload video files or select videos from a specified input directory, making it versatile for various video processing tasks. It efficiently extracts frames from videos, providing you with the ability to manipulate and analyze video content frame by frame. The node is particularly beneficial for AI artists and developers who need to work with video data in a structured and accessible manner, offering a seamless integration into workflows that require video frame extraction and analysis.
小珠光视频加载器 Input Parameters:
视频
This parameter specifies the video file to be processed. It accepts a list of available video files from the input directory. The selected video will be decoded into frames for further processing.
强制帧率
This parameter allows you to set a specific frame rate for the video processing. It is a float value with a default of 0, which means the original frame rate is used. The range is from 0 to 240, allowing for precise control over the playback speed and frame extraction rate.
视频比例
This parameter determines the aspect ratio of the output frames. Options include "自定义比例", "原始比例", "竖屏9:16", "竖屏3:4", "横屏16:9", "横屏4:3", and "等比1:1". The default is "自定义比例", which allows for custom width and height settings.
自定义宽度
This integer parameter sets the custom width for the output frames when "自定义比例" is selected. It ranges from 0 to a maximum defined by DIMMAX, with a default of 0. This allows for flexible resizing of video frames.
自定义高度
Similar to 自定义宽度, this parameter sets the custom height for the output frames. It also ranges from 0 to DIMMAX, with a default of 0, providing additional control over the frame dimensions.
跳过帧数
This integer parameter specifies the number of frames to skip at the beginning of the video. It ranges from 0 to BIGMAX, with a default of 0, allowing you to start processing from a specific point in the video.
帧数上限
This parameter sets the maximum number of frames to load from the video. It is an integer ranging from 0 to BIGMAX, with a default of 0, which means no limit. This is useful for controlling the amount of data processed, especially for long videos.
小珠光视频加载器 Output Parameters:
图像
This output provides the extracted frames from the video as a tensor. The frames are processed and stored in a format suitable for further analysis or manipulation, allowing you to work with video content at the frame level.
音频
This output contains the audio waveform extracted from the video, if available. It includes the audio data and sample rate, enabling you to analyze or manipulate the audio component of the video.
视频信息
This output provides detailed information about the video, including the original and loaded frame rates, frame counts, duration, and dimensions, as well as the filename. This metadata is crucial for understanding the context and characteristics of the video being processed.
小珠光视频加载器 Usage Tips:
- To optimize performance, set the 帧数上限 parameter to limit the number of frames processed, especially for long videos.
- Use the 强制帧率 parameter to ensure consistent frame rates across different videos, which can be useful for synchronization tasks.
小珠光视频加载器 Common Errors and Solutions:
Invalid video file: <视频>
- Explanation: This error occurs when the specified video file is not found or is invalid.
- Solution: Ensure that the video file exists in the input directory and is correctly specified in the 视频 parameter.
No frames decoded from video
- Explanation: This error indicates that the video decoding process did not yield any frames.
- Solution: Check the video file for corruption or unsupported formats and verify that the parameters are set correctly to allow frame extraction.
