Create a job
Description: create a new VOD job¶
POST https://vms-api.swiftfederation.com/v7.4.0/job¶
Request¶
-
Header
-
Body
Field | Required | Type | Description |
---|---|---|---|
input | M | Object | Input Object |
transcoding | M | Object | Transcoding Object |
outputs | M | Array | Output Object |
thumbnail_seeking | O | Boolen | whether or not to generate thumbnail, default false |
notification | O | String | notification url |
Response¶
-
Header
-
Body
Field | Type | Description |
---|---|---|
request_id | String | Unique id of current HTTP request. |
Examples¶
-
Common¶
-
Request
POST https://vms-api.swiftfederation.com/v7.4.0/job
Content-Type: application/json; charset=UTF-8
Authorization: ...
{
"input": {
"source": "ftp://taFtp:/s1.mp4"
},
"transcoding": {
"preset_groups": [
"360And540",
"new360p"
]
},
"outputs": [
{
"protocol": "hls",
"storage": "ftp://taFtp:/20211018",
"drm": [
{
"type": "none"
},
{
"type": "aes",
"resource_id": "123"
}
]
}
]
}
- Response
{
"request_id": "ef78eb18b59c4144a8c170aef1ba7d68.39.16318695552410049"
"id": 123456
}