A transcoding template is a collection of processing parameters. You can use a transcoding template to simplify the operations when you create a transcoding job or use a workflow. Each transcoding template is identified by a unique ID.
Template types
Transcoding templates can be classified into the following types: custom templates, customized templates, and preset templates.
Custom template: a transcoding template that is created in the ApsaraVideo Media Processing (MPS) console or by using the API. No parameters are customized at the backend.
Customized template: a transcoding template for which customized parameters are configured at the backend based on your personalized requirements. If you use a customized template, the parameters that you configure do not take effect. You cannot view or modify the customized parameters.
Preset template: a transcoding template that is predefined in MPS based on the resolutions and network. Preset templates include static preset templates and intelligent preset templates. Static preset templates support regular transcoding, audio transcoding, container format conversion, Narrowband HD™ 1.0, and Narrowband HD™ 2.0. For more information, go to the MPS console or see Preset template details.
If existing transcoding templates cannot meet your business requirements, you can specify the Outputs parameter when you call the SubmitJobs operation. For more information, see the Output section of the "Parameter details" topic. The parameters that you specify by calling the SubmitJobs operation take precedence over the parameters of a transcoding template. If you use a transcoding template when you call the SubmitJobs operation and the output is not as expected, check whether the parameters of the SubmitJobs operation are specified.
Limits
By default, up to 10 transcoding templates can be created in a region within an Alibaba Cloud account, including custom and customized transcoding templates. To create more custom transcoding templates, submit a ticket to contact Alibaba Cloud technical support.
Features comparison
The check mark (√) indicates that the operation is supported. The cross mark (×) indicates that the operation is not supported.
Operation | MPS Console | MPS SDKs | API |
Create a transcoding template | √ | √ | √ |
Query or search for a transcoding template | √ | √ | √ |
Modify a transcoding template | √ | √ | √ |
Copy a transcoding template | √ | × | × |
Delete a transcoding template | √ | √ | √ |
Use a transcoding template to submit a transcoding job | √ Note You cannot use an intelligent preset template to submit a transcoding job. | √ Note You can use an intelligent preset template to submit a transcoding job. | √ Note You can use an intelligent preset template to submit a transcoding job. |
Use a transcoding template to trigger a workflow | √ Note You cannot use an intelligent preset template to trigger a workflow. | √ Note You can use an intelligent preset template to trigger a workflow. | √ Note You can use an intelligent preset template to trigger a workflow. |