Create an Encoding Job
Through encoding process, your video files can be encoded to streamable DASH and HLS VOD assets.
To create and edit a VOD, using the following APIs:
Create:
POST /bv/cms/v1/vods
Update:
PUT /bv/cms/v1/vods/:id
Query Parameters | Required | Description |
---|---|---|
name | Required | Name of the VOD |
profile_set_id | Required | Specify the ID of ProfileSet to apply to the VOD |
source | Required | Refer to the steps to define the type of source file and create associate object |
queue | Required | Define the processing speed for the encoding job: QUEUE_STANDARD : Standard processing speedQUEUE_PRIORITY : Faster processing speed |
security | Required | Content protection settings for the live streaming |
schedule | Required | Define the availability schedule for the VOD |
pte | Optional | Set to PTE_PROFILE_HIGH if you would like to enable the per-title encoding |
Create Source Object
Based on the source type, create the source object accordingly:
SOURCE_TYPE_LIBRARY
, which is uploaded from your local
"source":{
"type":"SOURCE_TYPE_LIBRARY",
"library":{
"video":{
"id":"your_video_id_in_library"
}
}
}
SOURCE_TYPE_CLOUD_STORAGE
, which is copied from your cloud
"source":{
"type":"SOURCE_TYPE_CLOUD_STORAGE",
"cloud_storage":{
"id":"your_cloud_storage_id",
"file_path":"/path/to/cloud/storage/file.mp4"
}
}