Trim
Specify a smaller subsect of a video to be rendered. For example, if you have a 3 minute video and only want to use the portion starting at 15.5 seconds through 20.1 seconds.
Request parameters
- Name
video
- Type
- file
- required
- Description
Video file to trim
- Name
start
- Type
- number
- required
- Description
Time position in seconds to start the new clip
- Name
duration
- Type
- number
- required
- Description
New duration in seconds starting from the specified start time
- Name
metadata
- Type
- object
- Description
Arbitrary metadata to associate with this process
HTTP Endpoint
POST
https://api.editframe.com/v2/videos/trim
Response
{
"id": "RNVqM4mQBX",
"timestamp": 1665085221,
"status": "processing"
}
Examples
curl --location -g --request POST 'https://api.editframe.com/v2/videos/trim' \
--header 'Authorization: Bearer YOUR_API_TOKEN' \
--form 'video=@"/Users/mac/Downloads/video.mp4"' \
--form 'start="1.5"' \
--form 'duration="10"'