跳到主要内容

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:

Query ParametersRequiredDescription
nameRequiredName of the VOD
profile_set_idRequiredSpecify the ID of ProfileSet to apply to the VOD
sourceRequiredRefer to the steps to define the type of source file and create associate object
queueRequiredDefine the processing speed for the encoding job:
  • QUEUE_STANDARD: Standard processing speed
  • QUEUE_PRIORITY: Faster processing speed
  • securityRequiredContent protection settings for the live streaming
    scheduleRequiredDefine the availability schedule for the VOD
    pteOptionalSet 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":"SOURCE_TYPE_LIBRARY",
    "library":{
    "video":{
    "id":"your_video_id_in_library"
    }
    }
    }
    "source":{
    "type":"SOURCE_TYPE_CLOUD_STORAGE",
    "cloud_storage":{
    "id":"your_cloud_storage_id",
    "file_path":"/path/to/cloud/storage/file.mp4"
    }
    }