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_ahttps://api.defaultuploader.com/v1/video/upload/token/sample.mp4?q_a
q_auto
alias: q_aSets optimal video settings, preserving quality while reducing file size.
?q_a
width
alias: wCreates a video with the specified width while maintaining the correct aspect ratio.
min 0, max 5000
height
alias: hCreates a video with the specified height while maintaining the correct aspect ratio.
min 0, max 5000
format
alias: fChanges the video format.
Supported formatsMP4, MOV, WEBM, AVI, default is mp4
vertical
alias: vtCreates a video in a 9x16 format by cropping the center.
?vt
thumbnail
Creates a thumbnail image from the video.
?thumbnailBy default, a frame from the first 100ms of the video is used.
duration
Specifies the moment in the video to create the thumbnail.
1 = 100msWorks only with the thumbnail property.