The ALIYUN::MPS::TranscodeJob resource is used to submit a transcoding job.
Syntax
{
"Type": "ALIYUN::MPS::TranscodeJob",
"Properties": {
"Input": Map,
"OutputBucket": String,
"Outputs": List,
"PipelineId": String,
"OutputLocation": String
}
}Properties
Property name | Type | Required | Update allowed | Description | Constraints |
Input | Map | Yes | No | The job input. | For more information, see Parameter details.
Note In the ApsaraVideo Media Processing API, the Object parameter must be URL-encoded based on UTF-8 before use. Example: |
OutputBucket | String | Yes | No | The OSS bucket where the output file is stored. |
|
Outputs | List | Yes | No | The job output configurations. | For more information, see Parameter details.
Example: |
PipelineId | String | Yes | No | The pipeline ID. | For more information, see Terms. |
OutputLocation | String | No | No | The region of the OSS bucket where the output file is stored. |
|
Return values
Fn::GetAtt
JobIds: A list of job IDs.
Examples
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
OutputBucket:
Type: String
Description:
en: The name of the OSS bucket where the output files are stored.
Required: true
Input:
Type: Json
Description:
en: The input configuration of the job. For more information, see Input details.
Required: true
Outputs:
AssociationPropertyMetadata: {}
AssociationProperty: List[Parameters]
Type: Json
Description:
en: The output configuration of the job. Consists of a list of Output objects, JSON array, with a maximum size of 30.
Required: true
PipelineId:
Type: String
Description:
en: The ID of the pipeline.
Required: true
Resources:
TranscodeJob:
Type: ALIYUN::MPS::TranscodeJob
Properties:
OutputBucket:
Ref: OutputBucket
Input:
Ref: Input
Outputs:
Ref: Outputs
PipelineId:
Ref: PipelineId
Outputs:
JobIds:
Description: The IDs of the jobs.
Value:
Fn::GetAtt:
- TranscodeJob
- JobIds
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"OutputBucket": {
"Type": "String",
"Description": {
"en": "The name of the OSS bucket where the output files are stored."
},
"Required": true
},
"Input": {
"Type": "Json",
"Description": {
"en": "The input configuration of the job. For more information, see Input details."
},
"Required": true
},
"Outputs": {
"AssociationPropertyMetadata": {},
"AssociationProperty": "List[Parameters]",
"Type": "Json",
"Description": {
"en": "The output configuration of the job. Consists of a list of Output objects, JSON array, with a maximum size of 30."
},
"Required": true
},
"PipelineId": {
"Type": "String",
"Description": {
"en": "The ID of the pipeline."
},
"Required": true
}
},
"Resources": {
"TranscodeJob": {
"Type": "ALIYUN::MPS::TranscodeJob",
"Properties": {
"OutputBucket": {
"Ref": "OutputBucket"
},
"Input": {
"Ref": "Input"
},
"Outputs": {
"Ref": "Outputs"
},
"PipelineId": {
"Ref": "PipelineId"
}
}
}
},
"Outputs": {
"JobIds": {
"Description": "The IDs of the jobs.",
"Value": {
"Fn::GetAtt": [
"TranscodeJob",
"JobIds"
]
}
}
}
}