Trim - URL
POST {{video-api-server}}/trim/url
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
crop | string | width,height,x,y |
-
width, height: Size of the crop 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
{"0"=>{"url"=>"http://sample.li/demo.mp4", "time_data"=>"[('00:00:00','00:00:10')]"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Filerobot-Token | string | Filerobot project identifier, aka token | |
Filerobot-Key | string | Filerobot API key |
RESPONSES
status: OK
{"status":"ok","version":2.11,"result":[{"uuid":"6f80ca81-c585-4df0-9576-b40d6546e2f2","url":"http://sample.li/demo.mp4","trimmed":"https://fbmjmuoeb.filerobot.com/https://filerobot.s3.eu-west-3.amazonaws.com/fbmjmuoeb/trimmed_videos/Egczb_demo/demo_trimmed.mp4","sha1":"3354b0dff8e02eadaa26d3b5a413de087853c621","progress":"https://api.filerobot.com/fbmjmuoeb/v4/video-status/ZXUtb3YtNzA2LWdyYTIuZWxhc3RpYy11cGxvYWRlci5haXJzdG9yZS5zY2FsM2ZsM3guY29tOjg3MzI__6f80ca81-c585-4df0-9576-b40d6546e2f2"}]}