Segment Queue Runner 🎬:
The SegmentQueueRunner is a specialized node designed to facilitate the processing of video segments within a queue-based system. Its primary purpose is to manage and execute tasks related to video segment processing, ensuring that each segment is handled efficiently and in sequence. This node is particularly beneficial for workflows that require the segmentation of video content into manageable parts, allowing for more granular control over video processing tasks. By leveraging the SegmentQueueRunner, you can automate the execution of video segments, making it easier to handle large video files or complex video processing tasks. The node operates by executing a series of predefined functions that manage the segmentation, execution, and logging of video processing tasks, providing a streamlined approach to video content management.
Segment Queue Runner 🎬 Input Parameters:
start_from_segment
This parameter determines the starting point for processing video segments. It allows you to specify from which segment the processing should begin, providing flexibility in managing video workflows. The value must be between 1 and the total number of segments, with a default value of 1. This ensures that you can skip initial segments if needed, optimizing the processing sequence according to your requirements.
segments
The segments parameter defines the number of segments into which the video will be divided. This parameter is crucial for determining the granularity of the video processing task. By adjusting the number of segments, you can control the size and number of video parts that will be processed, allowing for more efficient handling of large video files.
total_frames
This parameter specifies the total number of frames in the video to be processed. It is essential for calculating the segment size and ensuring that the video is divided accurately. The total frames must be greater than 0, as this forms the basis for segment calculation and subsequent processing.
node_id
The node_id is a unique identifier for the video node being referenced. It is necessary for linking the processing task to the correct video node within the workflow. This ensures that the correct video content is processed and that the results are accurately associated with the intended video node.
Segment Queue Runner 🎬 Output Parameters:
The SegmentQueueRunner does not explicitly define output parameters in the provided context. However, it is designed to execute video processing tasks and log the results, which can be accessed through the system's logging mechanism. The outputs are typically related to the successful execution of video segments and any associated logs or status updates.
Segment Queue Runner 🎬 Usage Tips:
- Ensure that the
start_from_segmentparameter is set correctly to avoid unnecessary processing of initial segments that are not required for your task. - Adjust the
segmentsparameter based on the complexity and size of your video file to optimize processing efficiency and manageability. - Verify that the
node_idis correctly specified to ensure that the processing task is linked to the correct video node, preventing errors in the workflow.
Segment Queue Runner 🎬 Common Errors and Solutions:
"[SQR] ✗ 总帧数必须大于 0。"
- Explanation: This error occurs when the total number of frames specified is zero or negative, which is invalid for processing.
- Solution: Ensure that the
total_framesparameter is set to a positive integer greater than zero.
"[SQR] ✗ 参考视频节点ID 不能为空。"
- Explanation: This error indicates that the
node_idparameter is missing or empty, which is required for identifying the video node. - Solution: Provide a valid
node_idto link the processing task to the correct video node in the workflow.
"[SQR] ✗ 找不到节点 ID「{node_id}」(完整工作流中)。"
- Explanation: This error suggests that the specified
node_iddoes not exist within the current workflow, preventing the task from proceeding. - Solution: Double-check the
node_idto ensure it matches an existing node in the workflow, and correct any discrepancies.
