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_aq_auto
Section titled “q_auto”Sets optimal video settings, preserving quality while reducing file size.
?q_aCreates a video with the specified width while maintaining the correct aspect ratio.
min 0, max 5000height
Section titled “height”Creates a video with the specified height while maintaining the correct aspect ratio.
min 0, max 5000format
Section titled “format”Changes the video format.
Supported formatsMP4, MOV, WEBM, AVI, default is mp4vertical
Section titled “vertical”Creates a video in a 9x16 format by cropping the center.
?vtthumbnail
Section titled “thumbnail”Creates a thumbnail image from the video.
?thumbnailBy default, a frame from the first 100ms of the video is used.duration
Section titled “duration”Specifies the moment in the video to create the thumbnail.
1 = 100msWorks only with the thumbnail property.