Skip to main content

Modify a Transcoding Template

Modify an existing transcoding template with transcoding or transmuxing presets for an ingest domain, an app, or a stream

Request

Request-Line

Put /lls/v1.0/template/transcoding/{templateName}

Request

Path Parameters

ParameterTypeRequiredDescription
templateNameStringMandatorytranscoding template name

Request Body

ParameterTypeRequiredDescription
domainStringMandatoryingest domain name
appStringOptionalapp name. if not specified, the transcoding template will be applied to all apps.
streamStringOptionalstream name. if not specified, the transcoding template will be applied to all streams.
deliveryProtocolArrayMandatorydelivery protocol. Valid values: http-flv, ll-hls, hls,dash.
transcodingPresetsArrayMandatorythe names of transcoding presets for delivery stream. the special preset named 'transmux' will package the ingest stream without any transcoding.
statusStringMandatoryStatus of transcoding template. Valid values: active, inactive.

Response

Response Body

ParameterTypeRequiredDescription
templateNameStringMandatorytranscoding template name.
createdTimestampMandatoryTimestamp of created time in UTC timezone. Default is now.
updatedTimestampMandatoryTimestamp of updated time in UTC timezone. Default is now.
statusStringMandatoryStatus of transcoding template. Valid values: active, inactive.
domainStringMandatoryingest domain name
appStringOptionalapp name. if not specified, the transcoding template will be applied to all apps.
streamStringOptionalstream name. if not specified, the transcoding template will be applied to all streams.
deliveryProtocolArrayMandatorydelivery protocol. Valid values: http-flv, ll-hls, hls,dash.
transcodingPresetsArrayMandatorythe names of transcoding presets for delivery stream. the special preset named 'transmux' will package the ingest stream without any transcoding.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400LLS.TranscodingTemplate.InvalidNameTranscoding template name is invalid.
400LLS.TranscodingTemplate.ConflictConflict transcoding emplate exists.

Examples

Modify a domain-level transcoding template with new protocols and presets

Request

PUT /lls/v1.0/template/transcoding/domainTemplate HTTP/1.1
{
"domain": "ingest.example.com",
"deliveryProtocol": ["ll-hls", "hls", "dash"],
"transcodingPresets": ["720p", "480p", "360p"],
"status": "active"
}

Successful Response Body

{
"templateName": "domainTemplate",
"created": "2025-07-15T08:47:10Z",
"updated": "2025-07-15T10:05:04Z",
"status": "active",
"domain": "ingest.example.com",
"deliveryProtocol": ["ll-hls", "hls", "dash"],
"transcodingPresets": ["720p", "480p", "360p"]
}

Modify a domain-level transcoding template with new status

Request

PUT /lls/v1.0/template/transcoding/domainTemplate HTTP/1.1
{
"domain": "ingest.example.com",
"app": "live",
"deliveryProtocol": ["http-flv", "ll-hls"],
"transcodingPresets": ["1080p", "720p", "480p"],
"status": "inactive"
}

Successful Response Body

{
"templateName": "appTemplate",
"created": "2025-07-15T08:48:30Z",
"updated": "2025-07-15T10:05:04Z",
"status": "active",
"domain": "ingest.example.com",
"app": "live",
"deliveryProtocol": ["http-flv", "ll-hls"],
"transcodingPresets": ["1080p", "720p", "480p"],
}

Best Practices

Rate Limiting

Rate Limits

Rate limiting is posed upon the API, please kindly check your API calls to ensure complying with the rate limit below:

  • 100 requests per minute
  • 1000 requests per hour