All Products
Search
Document Center

ApsaraVideo Live:AddTrancodeSEI

Last Updated:May 08, 2024

Inserts supplemental enhancement information (SEI) to transcoded streams.

Usage notes

Obtain the streaming domain, and then call this operation to insert SEI to the transcoded streams. Make sure that the stream name is the name of the source stream. This way, the SEI is inserted to all the transcoded streams.

QPS limit

You can call this operation up to 6,000 times per minute per account. Requests that exceed this limit are dropped and you will experience service interruptions. We recommend that you take note of this limit when you call this operation. For more information, see QPS limits.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action String Yes AddTrancodeSEI

The operation that you want to perform. Set the value to AddTrancodeSEI.

DomainName String Yes example.com

The streaming domain.

AppName String Yes liveApp****

The name of the application to which the live stream belongs.

StreamName String Yes liveStream****

The name of the live stream.

Note The value of this parameter must be the name of the source stream. This way, the SEI is inserted to all the transcoded streams.
Text String Yes liveSei****

The SEI text. The SEI text can be up to 4,000 bytes in length.

Pattern String Yes keyframe

Specifies whether to append the SEI to each keyframe or frame. Valid values:

  • keyframe
  • frame
Repeat Integer Yes -1

The number of times that the SEI is repeatedly inserted. A value of -1 specifies infinite times.

Delay Integer Yes 100

The time period after which the SEI is inserted after the request is received. Unit: milliseconds.

Response parameters

Parameter

Type

Example

Description

RequestId String 16A96B9A-F203-4E*****43-CB92E68F4CD8

The request ID.

Examples

Sample requests

http(s)://live.aliyuncs.com/?Action=AddTrancodeSEI
&AppName=liveApp****
&Delay=100
&DomainName=example.com
&Pattern=keyframe
&Repeat=-1
&StreamName=liveStream****
&Text=liveSei****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<AddTrancodeSEIResponse>
    <RequestId>16A96B9A-F203-4E*****43-CB92E68F4CD8</RequestId>
</AddTrancodeSEIResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "16A96B9A-F203-4E*****43-CB92E68F4CD8"
}

Error codes

For a list of error codes, see Service error codes.