ffmpeg_trim
Trim a video to extract a specific segment by specifying a start time and either an end time or a duration. Returns the file path of the trimmed video.
Instructions
Trim a video to extract a specific segment.
Args:
file_path: Path to the input video file
start_time: Start time (e.g., "00:01:30" or "90" for 90 seconds)
end_time: End time (e.g., "00:02:00"). Mutually exclusive with duration.
duration: Duration of the clip (e.g., "30" for 30 seconds). Mutually exclusive with end_time.
Returns:
Path to the trimmed fileInput Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| start_time | Yes | ||
| end_time | No | ||
| duration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |