Convert - Multipart

POST {{video-api-server}}/convert/upload?output_format=webm

This endpoint allows users to upload local video files and convert them to WebM or MP4 format.

Request Params

KeyDatatypeRequiredDescription
output_formatstringFormat of the output file
cropstringwidth,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

KeyDatatypeRequiredDescription
Filerobot-TokenstringFilerobot project identifier, aka token
Filerobot-KeystringFilerobot API key

RESPONSES

status: OK

{"status":"ok","version":2.11,"result":[{"uuid":"f1032041-764d-4d7a-8995-ac2f6fcf12ac","file":"pexels_videos_2795402 (720p)","converted":"https://fbmjmuoeb.filerobot.com/https://filerobot.s3.eu-west-3.amazonaws.com/fbmjmuoeb/converted_videos/KaaRL_pexels_videos_2795402%20%28720p%29/pexels_videos_2795402%20%28720p%29_converted.webm","sha1":"2006fbd8ace6e11b6c0b44659def73ee3d120cc4","progress":"https://api.filerobot.com/fbmjmuoeb/v4/video-status/ZXUtb3YtNzA2LWdyYTIuZWxhc3RpYy11cGxvYWRlci5haXJzdG9yZS5zY2FsM2ZsM3guY29tOjg3MzI__f1032041-764d-4d7a-8995-ac2f6fcf12ac"}]}