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 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.
Copy
Ask AI
resp = moonshine.run( flow="core/clipping", index="your-index", video_id="[file_id].mp4", prompt="Find me every dunk from the game", length=10, min_length=5, max_length=15)
Brief narrative description of what happens in the clip
Example:
Copy
Ask AI
{ "output": { "clip_1": { "video_id": "VLT1MOKLMOHD981.mp4", "start_time": "00:10", "end_time": "00:21", "overview": "A well-executed offensive play by San Antonio, culminating in a powerful dunk by Sohan." }, "clip_2": { "video_id": "VLT1MOKLMOHD981.mp4", "start_time": "01:47", "end_time": "02:04", "overview": "The moment where the Clippers secure their first official win at Intuit Dome, overcoming a large deficit." } }, "status": "complete", "video_id": "[file_id].mp4"}