Transcode - Multipart
POST {{video-api-server}}/transcode/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"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Filerobot-Token | string | Filerobot project identifier, aka token | |
Filerobot-Key | string | Filerobot API key | |
Video-Resolutions | string | Resolutions to transcode to | |
Video-Protocols | string | Protocols to transcode to |
RESPONSES
status: OK
{"status":"ok","version":2.11,"result":[{"uuid":"191ca631-1dda-463b-8a9c-1a5a30ad97c7","file":"pexels_videos_2231485 (720p)","sha1":"91aaadd5f7c0f5dc279ab33bc3df4f031b5d1e9c","transcoded":[{"resolution":"desktop","playlists":["https://fbmjmuoeb.filerobot.com/YccmI_pexels_videos_2231485%20%28720p%29/hls/video.m3u8"]},{"resolution":"mobile","playlists":["https://fbmjmuoeb.filerobot.com/YccmI_pexels_videos_2231485%20%28720p%29/hls/video.m3u8"]}],"progress":"https://api.filerobot.com/fbmjmuoeb/v4/video-status/ZXUtb3YtNzA2LWdyYTIuZWxhc3RpYy11cGxvYWRlci5haXJzdG9yZS5zY2FsM2ZsM3guY29tOjg3MzI__191ca631-1dda-463b-8a9c-1a5a30ad97c7"}]}