Actions3
Trim
AI-generatedSummary
Trim a section from a video binary by specifying start time and duration, producing a shortened video clip in a chosen format.
Inputs
- Input Binary Property (required) — Name of the binary property containing the input video to be trimmed
- Output Binary Property (required) — Name of the binary property set with the trimmed output video
- Output Format (required) — Format of the output video file; options are MP4, AVI, or MOV
- Start Time (required) — Start time of the trimmed section, specified in HH:MM:SS or seconds
- Duration (required) — Duration of the trimmed section, specified in HH:MM:SS or seconds
Output shape
a list of items, each containing the original item JSON and a binary property with the trimmed video
The output binary property contains the trimmed video data encoded in base64 with appropriate mimeType and fileExtension matching the chosen output format. Errors can be returned in the JSON part if 'Continue On Fail' is enabled.
Examples
Example 1: Trim a 10-second clip starting at 00:01:00 from input video binary in 'data' property, outputting an MP4 clip in 'output' property.
Set Input Binary Property to 'data', Output Binary Property to 'output', Start Time to '00:01:00', Duration to '00:00:10', and Output Format to 'mp4'.