Skip to main content

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:
Clipping only runs on a single video at a time.

Setting Number of Results

To set the number of results from clipping:

Setting Clip Duration

The duration of the clip can also be set with length, 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:
object
JSON object (returned as a string) that maps clip identifiers (e.g., clip_1, clip_2) to their metadata
Where a clip object contains:
string
Video ID (file name) for the individual clip
Example:

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.
string
required
Name/ID of the parent index of the video being processed.
string
required
ID of the video being processed.
string
required
Prompt for clips in the video to find.
number
Max number of clips to find.
number
Soft target for the length of each clip in seconds.
number
Hard minimum length of each clip in seconds.
number
Hard maximum length of each clip in seconds.