What is Clipping?
Clipping is a feature that allows you to extract specific parts of a video. This can be useful for creating shorter clips or for extracting specific moments from a longer video. The path to use clipping:Running Clipping
To run clipping:Setting Number of Results
To set the number of results from clipping:Setting Clip Duration
The duration of the clip can also be set withlength
, which is the soft target duration of the clip in seconds, and min_length
and max_length
, which are the hard minimum and maximum duration of the clip in seconds.
Clipping Response Format
Clipping response contains:JSON object (returned as a string) that maps clip identifiers (e.g.,
clip_1
, clip_2
) to their metadata Video ID (file name) for the individual clip
Clipping Complete Example
A complete example over an entire index:Clipping JSON
Workflows are in a private beta. Please contact us at team@usemoonshine.com to request access..run(flow='core/clipping', ...) params
.run(flow='core/clipping', ...) params
Name/ID of the parent index of the video being processed.
ID of the video being processed.
Prompt for clips in the video to find.
Max number of clips to find.
Soft target for the length of each clip in seconds.
Hard minimum length of each clip in seconds.
Hard maximum length of each clip in seconds.