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
Field | Required | Default | Available Values | Description |
---|---|---|---|---|
subtitles | NO | false | true, false | If 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
Field | Required | Default | Available Values | Description |
---|---|---|---|---|
width | YES | - | integer | Output video width |
height | YES | - | integer | Output video height |
coordinate_x | NO | 1 | integer | Horizontal coordinate of input video |
coordinate_y | NO | 1 | integer | Vertical coordinate of input video |
clip
Field | Required | Default | Available Values | Description |
---|---|---|---|---|
from | NO | 0 | integer or null | Start time for clip (seconds) |
to | NO | Input file last second | integer or null | Start time for clip (seconds) |
duration | NO | Input file last duration | integer or null | Duration 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
Field | Required | Default | Available Values | Description |
---|---|---|---|---|
url | YES | Image URL | Valid URL | You can use jpg, png, webp, ico images |
width | NO | Original Image Size | integer or null | Overlay image width |
height | NO | Original Image Size | integer or null | Overlay image height |
between_seconds | NO | null | string or null | The range in which the image will be shown. Format must be: first_soconds-last_second, 35-250 |
variants Object
Field | Required | Default | Available Values | Description |
---|---|---|---|---|
scale | YES | - | 240p, 360p, 480p, 720p, 1080p, 1440p, 2160p | Resolution |
video_bitrate | NO | Default video bitrate for resolution | integer or null | Bitrate for video |
audio_bitrate | NO | Default audio bitrate for resolution | boolean or null | Bitrate for audio |
Response
tip
When you create a dash output, you will get a "Common Task Result Object". Please check it.