Envia um job de transcodificação no ApsaraVideo Media Processing (MPS).
Sintaxe
{
"Type": "ALIYUN::MPS::TranscodeJob",
"Properties": {
"Input": Map,
"OutputBucket": String,
"Outputs": List,
"PipelineId": String,
"OutputLocation": String
}
}
Propriedades
|
Nome da propriedade |
Tipo |
Obrigatório |
Atualize permitida |
Descrição |
Restrições |
|
Input |
Map |
Sim |
Não |
Entrada do job de transcodificação. |
Para obter mais informações, consulte Detalhes dos parâmetros.
Nota
Na API do ApsaraVideo Media Processing, codifique o parâmetro Object em URL com base em UTF-8 antes de utilizá-lo. Exemplo:
|
|
OutputBucket |
String |
Sim |
Não |
Bucket do OSS que armazena o arquivo de saída. |
|
|
Outputs |
List |
Sim |
Não |
Configurações de saída do job de transcodificação. |
Para obter mais informações, consulte Detalhes dos parâmetros.
Exemplo:
|
|
PipelineId |
String |
Sim |
Não |
ID do pipeline do MPS. |
Para obter mais informações, consulte Termos. |
|
OutputLocation |
String |
Não |
Não |
Região do bucket do OSS onde o arquivo de saída está armazenado. |
|
Valores de retorno
Fn::GetAtt
JobIds: lista de IDs de jobs.
Exemplos
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"
]
}
}
}
}