Skip to main content

Mpeg DASH Output

You can apply the same filters for mpeg as for HLS videos. 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": "dash",
"reference_id" : "<your_reference_id>",
"target_path" : "/outputs/thumbnails/interval",
"type_specific_config" : {
"subtitles": true,
"filters" : {
"clip" : {
"from": 130,
"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
}
},
"variants": [
{
"scale":"240p"
},
{
"scale":"720p"
},
{
"scale":"1080p"
},
{
"scale":"1440p"
},
{
"scale":"2160p"
}
]
}
}
]
}
type_specific_config Object for Dash
FieldRequiredDefaultAvailable ValuesDescription
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
filters object
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
variants Object
FieldRequiredDefaultAvailable ValuesDescription
scaleYES-240p, 360p, 480p, 720p, 1080p, 1440p, 2160pResolution
video_bitrateNODefault video bitrate for resolutioninteger or nullBitrate for video
audio_bitrateNODefault audio bitrate for resolutionboolean or nullBitrate for audio

Response

tip

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