✂️ AI Clipping Pick Clip:
The AiClippingPickClip node is designed to allow you to select a specific clip from a set of clips generated by the AiClipping node. This node is particularly useful when you want to process clips individually, such as when you need to apply different processing steps or save each clip separately. By providing a simple interface to pick the Nth clip based on its ranking, this node helps you manage and utilize the clips effectively, ensuring that you can focus on the most relevant or highest-scoring clips for your project. The node automatically handles cases where the requested clip index is out of range, ensuring robustness and ease of use.
✂️ AI Clipping Pick Clip Input Parameters:
highlights_json
This parameter expects a JSON string containing the list of clips generated by the AiClipping node. It is crucial for the node to function as it provides the data from which a specific clip will be selected. The JSON should be well-formed and represent an array of clip objects. If the JSON is invalid or empty, the node will not be able to retrieve any clips, resulting in default outputs.
index
The index parameter specifies which clip to select from the list, based on its ranking. It is a 1-based integer, meaning that an index of 1 corresponds to the top-scoring clip. The parameter accepts values between 1 and 50, with a default value of 1. This allows you to easily select the highest-ranked clip or any other clip within the specified range.
load_first_frame
This optional boolean parameter determines whether the first frame of the selected clip should be loaded and returned as an image. By default, it is set to True, meaning the node will attempt to download and return the first frame. If set to False, the node will skip this step, which can be useful if you only need the clip's metadata and URL.
✂️ AI Clipping Pick Clip Output Parameters:
clip_url
This output provides the URL of the selected clip, allowing you to access or download the clip directly. It is essential for any further processing or sharing of the clip.
first_frame
The first_frame output is an image tensor representing the first frame of the selected clip. This is particularly useful for previewing the clip or using the frame in further image processing tasks. If load_first_frame is set to False, this will be a default black image.
title
This output contains the title of the selected clip, which can provide context or a brief description of the clip's content.
hook_sentence
The hook_sentence output provides a catchy or engaging sentence associated with the clip, often used to grab attention or summarize the clip's appeal.
start_time
This output indicates the start time of the selected clip within the original video, expressed in seconds. It helps in understanding the clip's position and duration.
end_time
Similar to start_time, this output provides the end time of the clip, allowing you to determine the clip's length and where it ends in the original video.
score
The score output represents the viral score of the clip, ranging from 0 to 100. This score helps you assess the potential impact or popularity of the clip.
✂️ AI Clipping Pick Clip Usage Tips:
- Ensure that the
highlights_jsoninput is correctly formatted and contains the necessary clip data from theAiClippingnode to avoid errors. - Use the
indexparameter to experiment with different clips and find the one that best suits your needs, especially if you are looking for specific content or quality. - Consider setting
load_first_frametoFalseif you are only interested in the clip's metadata and want to save processing time.
✂️ AI Clipping Pick Clip Common Errors and Solutions:
"highlights_json is not valid JSON"
- Explanation: This error occurs when the
highlights_jsoninput is not a properly formatted JSON string. - Solution: Verify that the JSON string is correctly formatted and represents an array of clip objects. Use a JSON validator if necessary.
"no clips in input"
- Explanation: This message indicates that the
highlights_jsoninput does not contain any clips. - Solution: Ensure that the
AiClippingnode has successfully generated clips and that the JSON string is correctly passed to theAiClippingPickClipnode.
"index out of range"
- Explanation: This occurs when the specified
indexis greater than the number of available clips. - Solution: Adjust the
indexto a value within the range of available clips, or ensure that thehighlights_jsoncontains enough clips.
