Trim - Multipart
POST {{video-api-server}}/trim/upload
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
crop | string | width,height,x,y |
-
width, height: Sides in pixels of the cropped window
-
x, y: Top-left coordinates to align the crop window's top-left corner (optional, default = 0, 0) | |
resize
| string | | width,height -
Target size of the converted video. If only one value is specified, it is interpreted as height and the aspect ratio is kept. | |
rotate
| number | | Degrees to rotate to: -
Positive values rotate clockwise
-
Negative - counterclockwise |
Request Body
[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"time_data", "value"=>"[(\"00:00:00\",\"00:00:02\")]", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Filerobot-Token | string | Filerobot project identifier, aka token | |
Filerobot-Key | string | Filerobot API key |
RESPONSES
status: OK
{"status":"ok","version":2.11,"result":[{"uuid":"a331598b-b7de-4c85-91f5-f493064c6561","file":"pexels_videos_2231485 (720p)","trimmed":"https://fbmjmuoeb.filerobot.com/https://filerobot.s3.eu-west-3.amazonaws.com/fbmjmuoeb/trimmed_videos/VfnEV_pexels_videos_2231485%20%28720p%29/pexels_videos_2231485%20%28720p%29_trimmed.mp4","sha1":"91aaadd5f7c0f5dc279ab33bc3df4f031b5d1e9c","progress":"https://api.filerobot.com/fbmjmuoeb/v4/video-status/ZXUtb3YtNzA2LWdyYTIuZWxhc3RpYy11cGxvYWRlci5haXJzdG9yZS5zY2FsM2ZsM3guY29tOjg3MzI__a331598b-b7de-4c85-91f5-f493064c6561"}]}