Inserts supplemental enhancement information (SEI) to a live stream when the live stream is transcoded.
Usage note
The live stream must be the source stream.
QPS limit
A single user can perform a maximum of 6000 queries per minute. Throttling is triggered when the number of calls per second exceeds the QPS limit. The throttling may affect your business. Thus, we recommend that you observe the QPS limit on this operation. For more information about what a single user means and the QPS details, see QPS limit on an API operation in ApsaraVideo Live.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | AddTrancodeSEI |
The operation that you want to perform. Set the value to AddTrancodeSEI. |
AppName | String | Yes | liveApp**** |
The name of the application to which the live stream belongs. |
Delay | Integer | Yes | 100 |
The time period after which the SEI is inserted after the request is received. Unit: milliseconds. |
DomainName | String | Yes | example.com |
The streaming domain. |
Pattern | String | Yes | keyframe |
Specifies whether to append the SEI to each keyframe or frame. Valid values:
|
Repeat | Integer | Yes | 1 |
The number of times that the SEI is repeatedly inserted. A value of -1 indicates that the SEI is repeatedly inserted for an unlimited number of times until the end of live streaming. |
StreamName | String | Yes | StreamName |
The name of the live stream. Note The value of this parameter must be the name of the source stream. The SEI is inserted
to the live stream when the live stream is transcoded.
|
Text | String | Yes | firsttxt |
The SEI text. The SEI text can be up to 4,000 bytes in length. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 16A96B9A-F203-4E*****43-CB92E68F4CD8 |
The ID of the request. |
Examples
Sample requests
http(s)://live.aliyuncs.com/?Action=AddTrancodeSEI
&AppName=liveApp****
&Delay=100
&DomainName=example.com
&Pattern=keyframe
&Repeat=1
&StreamName=StreamName
&Text=firsttxt
&<Common request parameters>
Sample success responses
XML
format
<AddTrancodeSEIResponse>
<RequestId>16A96B9A-F203-4E*****43-CB92E68F4CD8</RequestId>
</AddTrancodeSEIResponse>
JSON
format
{
"RequestId":"16A96B9A-F203-4E*****43-CB92E68F4CD8"
}
Error codes
For a list of error codes, visit the API Error Center.