Slow motion - URL
POST {{video-api-server}}/slow-motion/url
This endpoint creates a slow-motion version of a video for the specified time range. The effect is applied between start_time
and end_time
, with the rest of the video playing at normal speed. Batch processing is supported.
Request Body
url
(string, required): The URL of the video. It should point to a publicly accessible video file.start_time
(string, required): Start time of the slow-motion effect (format: HH:MM:SS).end_time
(string, required): End time of the slow-motion effect (format: HH:MM:SS).
Response
status
(string): The status of the request. It will return values such asok
(request accepted) anderror
(initial request failed). In case of batch processing where one of the files fail, it may result inmulti-status
version
(integer): API version used.result
(array):uuid
(string): Serves as a unique identifier for tracking the slow-motion video creation process. It can be used to retrieve the status of the conversion or manage the task.url
(string): The URL of the slow-motion video.slow_motion
(string): The URL where the resulting file can be found.sha1
(string): Hash of the file for integrity checks.progress
(string): Contains a URL that can be polled to check the status of the conversion.
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/big_buck_bunny.mp4", "start_time"=>"00:00:05", "end_time"=>"00:00:15"}}
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.14,"result":[{"uuid":"5f7fa606-15d7-4420-9f1d-b45d4bfca722","url":"http://sample.li/big_buck_bunny.mp4","slow_motion":"https://fbmjmuoeb.filerobot.com/https://filerobot.s3.eu-west-3.amazonaws.com/fbmjmuoeb/slow_motion_videos/NoMoJ_big_buck_bunny/big_buck_bunny_slow_motion.mp4","sha1":"0181d7880acf0c443a57cd2510a5b81447fa577e","progress":"https://api.filerobot.com/fbmjmuoeb/v4/video-status/ZXUtb3YtNzA2LWdyYTIuZWxhc3RpYy11cGxvYWRlci5haXJzdG9yZS5zY2FsM2ZsM3guY29tOjg3MzI__5f7fa606-15d7-4420-9f1d-b45d4bfca722"}]}