Transcode - URL
POST {{video-api-server}}/transcode/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"=>"https://www.pexels.com/download/video/16343098", "video_protocols"=>"hls"}}
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":"4da6d22e-cdc1-4545-a180-1b10a44a6956","url":"https://www.pexels.com/download/video/16343098","sha1":"dfec29eb2d9d5234e4ed5b70cebd4da00f721d26","transcoded":[{"resolution":"desktop","playlists":["https://fbmjmuoeb.filerobot.com/xrjSj_16343098/hls/video.m3u8"]},{"resolution":"mobile","playlists":["https://fbmjmuoeb.filerobot.com/xrjSj_16343098/hls/video.m3u8"]}],"progress":"https://api.filerobot.com/fbmjmuoeb/v4/video-status/ZXUtb3YtNzA2LWdyYTIuZWxhc3RpYy11cGxvYWRlci5haXJzdG9yZS5zY2FsM2ZsM3guY29tOjg3MzI__4da6d22e-cdc1-4545-a180-1b10a44a6956"}]}