Skip to content
Account

Video

Video transformation is a resource-intensive operation, so it takes a significant amount of time and heavily depends on the size of the original file. It is recommended to use asynchronous transformation for video processing.

If the video file has not yet been transformed, a response with a 423 status code will be sent, indicating that the file is not yet ready.

Example:

// optimize video size ?q_a
https://api.defaultuploader.com/v1/video/upload/token/sample.mp4?q_a

q_auto

alias: q_a

Sets optimal video settings, preserving quality while reducing file size.

?q_a
q_a

width

alias: w

Creates a video with the specified width while maintaining the correct aspect ratio.

min 0, max 5000
w=300

height

alias: h

Creates a video with the specified height while maintaining the correct aspect ratio.

min 0, max 5000
h=300

format

alias: f

Changes the video format.

Supported formats
MP4, MOV, WEBM, AVI, default is mp4

vertical

alias: vt

Creates a video in a 9x16 format by cropping the center.

?vt
vt

thumbnail

Creates a thumbnail image from the video.

?thumbnail
By default, a frame from the first 100ms of the video is used.
thumbnail

duration

Specifies the moment in the video to create the thumbnail.

1 = 100ms
Works only with the thumbnail property.
thumbnail&duration=311