
zeke/trim-video
Trim frames off the beginning and end of your video file
Public
3
runs
Run zeke/trim-video with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
video |
string
|
Input video file to trim
|
|
trim_start |
integer
|
0
|
Number of frames to trim from the start
|
trim_end |
integer
|
0
|
Number of frames to trim from the end
|
{
"type": "object",
"title": "Input",
"required": [
"video"
],
"properties": {
"video": {
"type": "string",
"title": "Video",
"format": "uri",
"x-order": 0,
"description": "Input video file to trim"
},
"trim_end": {
"type": "integer",
"title": "Trim End",
"default": 0,
"minimum": 0,
"x-order": 2,
"description": "Number of frames to trim from the end"
},
"trim_start": {
"type": "integer",
"title": "Trim Start",
"default": 0,
"minimum": 0,
"x-order": 1,
"description": "Number of frames to trim from the start"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}
Example API response
View prediction
'https://replicate.delivery/xezq/jrWxJ3fqRdyRVCcH3uMYPzc3y1LbV1BTDxzRDjONulXfNHIVA/trimmed_video.mp4'