Skip to main content

Video Output

There are some filters you can apply to the output video. You can use only filters, you can transcode only, or you can transcode and apply filters.

Request

POST https://vimqu.com/api/task
{
"input": {
"source_type": "storage",
"storage_id": "<your_ftp_storage_id>",
"path": "/itx_case_4k.webm"
},
"outputs": [
{
"storage_id": "820a-4c46-bfb9-698d32ec1388",
"type": "video",
"reference_id" : "<your_reference_id>",
"target_path" : "/outputs/thumbnails/interval",
"type_specific_config" : {
"container":"mp4",
"codec":"h264",
"subtitles":true,
"filters" : {
"resize" : {
"width": 300,
"height": 250,
"aspect_ratio" : true
},
"clip" : {
"from": 130,
"to": 160,
//"duration": 20
},
"overlay_image": {
"url": "https://<your_image_url>/overlay_1.png",
"coordinate_x": 16,
"coordinate_y": 16,
"between_seconds": "10-14"
},
"crop" : {
"width":300,
"height": 300,
"coordinate_x":500,
"coordinate_y":200
}
},
"audio": {
"codec":"aac",
"bitrate":128
}
}
}
]
}
type_specific_config Object for Video
FieldRequiredDefaultAvailable ValuesDescription
containerNOmp4mp4, webm, mov, mkvIf the codec and container you send are not compatible, we will automatically choose the compatible codec. The codec will be changed according to the container field you provided
codecNOh264h264, h265, vp8, vp9, proresOutput video codec
subtitlesNOfalsetrue, falseIf this field is true, VimQu will create ai generated subtitle files in target_path directory. The file names will be subtitle.vtt and subtitle.srt
filtersNOnullfilters objectPlease look filters object
filters object
resize
FieldRequiredDefaultAvailable ValuesDescription
widthNOInput video widthinteger or nullOutput video width.
heightNOInput video heightinteger or nullOutput video height.
aspect_ratioNOtrueboolean or nullIf you send true, the aspect ratio will not change and it will scale with the width height values you give. Black background will be used. @TODO
crop
FieldRequiredDefaultAvailable ValuesDescription
widthYES-integerOutput video width
heightYES-integerOutput video height
coordinate_xNO1integerHorizontal coordinate of input video
coordinate_yNO1integerVertical coordinate of input video
clip
FieldRequiredDefaultAvailable ValuesDescription
fromNO0integer or nullStart time for clip (seconds)
toNOInput file last secondinteger or nullStart time for clip (seconds)
durationNOInput file last durationinteger or nullDuration for clip. Only one of "to" or "duration" can be used. You should use "to" for the exact end time. With "duration" you can specify how many seconds to cut from the start
overlay_image
FieldRequiredDefaultAvailable ValuesDescription
urlYESImage URLValid URLYou can use jpg, png, webp, ico images
widthNOOriginal Image Sizeinteger or nullOverlay image width
heightNOOriginal Image Sizeinteger or nullOverlay image height
between_secondsNOnullstring or nullThe range in which the image will be shown. Format must be: first_soconds-last_second, 35-250

Response

tip

When you create a Video output, you will get a "Common Task Result Object". Please check it.