DescribeLiveUpVideoAudioInfo
Queries the audio and video parameters of upstream stream ingest for a stream within a specified period.
Operation description
The maximum query time span is 24 hours.
The minimum query time span is 1 minute.
The maximum query time range is 7 days.
QPS limit
The QPS limit per user for this API operation is 10 calls per minute. Exceeding this limit triggers throttling, which may affect your services. Make API calls at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveUpVideoAudioInfo |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| Stream |
string |
Yes |
The name of the stream to query. Specify the complete stream name in the following format: |
rtmp://example.com/AppName/StreamName |
| StartTime |
string |
No |
The start time. The time is in the yyyy-MM-ddTHH:mm:ssZ format and must be in UTC. |
2015-12-10T15:00:00Z |
| EndTime |
string |
No |
The end time. The time is in the yyyy-MM-ddTHH:mm:ssZ format and must be in UTC. |
2015-12-10T15:10:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The audio and video information. |
||
| RequestId |
string |
The request ID. |
BC858082-736F-4A25-867B-E5B67C85ACF7 |
| UpItems |
object |
||
| PublishItem |
array<object> |
The total number of aggregated stream ingest sessions in the response. |
|
|
array<object> |
The information. |
||
| AacHeaders |
object |
||
| AacHeaders |
array<object> |
The per-second audio AAC headers. Unit: count. |
|
|
object |
The per-second audio AAC headers. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
20 |
| AppName |
string |
The name of the stream ingest app. |
AppName |
| AudioBitRate |
object |
||
| AudioBitRate |
array<object> |
The per-second audio bitrate. Unit: bit/s. |
|
|
object |
The per-second audio bitrate. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
24552 |
| AudioFrames |
object |
||
| AudioFrames |
array<object> |
The per-second audio frame rate. Unit: frames. |
|
|
object |
The per-second audio frame rate. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
23 |
| AudioInterval |
object |
||
| AudioInterval |
array<object> |
The maximum per-second audio frame interval. Unit: milliseconds. |
|
|
object |
The maximum per-second audio frame interval. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
254 |
| AudioStamps |
object |
||
| AudioStamps |
array<object> |
The per-second audio timestamp. Unit: milliseconds. |
|
|
object |
The per-second audio timestamp. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
725053422 |
| AvcHeaders |
object |
||
| AvcHeaders |
array<object> |
The per-second audio AVC headers. Unit: count. |
|
|
object |
The per-second audio AVC headers. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
11 |
| CodecInfo |
string |
The audio and video codec information. |
H264/AAC |
| DomainName |
string |
The ingest domain. |
example.com |
| ErrorFlags |
object |
||
| ErrorFlags |
array<object> |
The error code for stream ingest disconnection. |
|
|
object |
The error code for stream ingest disconnection. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
0 |
| PublishInterval |
string |
The stream ingest duration, in seconds. A value of "-" indicates that stream ingest is in progress and the duration is unavailable. |
- |
| PublishIp |
string |
The IP address of the stream ingest client. |
cn397 |
| PublishStatus |
string |
The stream ingest status. Valid values: 1: Stream ingest in progress. 0: Past stream ingest. |
1 |
| PublishTime |
string |
The stream ingest start time, in UTC. |
2015-12-10T15:00:00Z |
| StopTime |
string |
The stream ingest end time, in UTC. |
2015-12-10T15:10:00Z |
| StreamName |
string |
The name of the stream. |
StreamName |
| UniqueId |
string |
The unique ID of each stream ingest session. |
2.-395_37261_9848098_1538080899396 |
| VideoAndAudioStamp |
object |
||
| V_AStamp |
array<object> |
The per-second audio and video timestamp difference. Unit: milliseconds. |
|
|
object |
The per-second audio and video timestamp difference. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
359 |
| VideoBitRate |
object |
||
| VideoBitRate |
array<object> |
The per-second video bitrate. Unit: bit/s. |
|
|
object |
The per-second video bitrate. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
3970160 |
| VideoFrames |
object |
||
| VideoFrames |
array<object> |
The per-second video frame rate. Unit: frames. |
|
|
object |
The per-second video frame rate. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
29 |
| VideoInterval |
object |
||
| VideoInterval |
array<object> |
The maximum per-second video keyframe interval. Unit: milliseconds. |
|
|
object |
The maximum per-second video keyframe interval. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
278 |
| VideoStamps |
object |
||
| VideoStamps |
array<object> |
The per-second video timestamp. Unit: milliseconds. |
|
|
object |
The per-second video timestamp. |
||
| Time |
integer |
The query time, represented by a UNIX timestamp in milliseconds. |
1538134750408 |
| Value |
integer |
The per-second metric value of the corresponding quality data at the query time. |
725053781 |
If some parameters do not exist, an empty string is returned.
Examples
Success response
JSON format
{
"RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7",
"UpItems": {
"PublishItem": [
{
"AacHeaders": {
"AacHeaders": [
{
"Time": 1538134750408,
"Value": 20
}
]
},
"AppName": "AppName",
"AudioBitRate": {
"AudioBitRate": [
{
"Time": 1538134750408,
"Value": 24552
}
]
},
"AudioFrames": {
"AudioFrames": [
{
"Time": 1538134750408,
"Value": 23
}
]
},
"AudioInterval": {
"AudioInterval": [
{
"Time": 1538134750408,
"Value": 254
}
]
},
"AudioStamps": {
"AudioStamps": [
{
"Time": 1538134750408,
"Value": 725053422
}
]
},
"AvcHeaders": {
"AvcHeaders": [
{
"Time": 1538134750408,
"Value": 11
}
]
},
"CodecInfo": "H264/AAC",
"DomainName": "example.com",
"ErrorFlags": {
"ErrorFlags": [
{
"Time": 1538134750408,
"Value": 0
}
]
},
"PublishInterval": "-",
"PublishIp": "cn397",
"PublishStatus": "1",
"PublishTime": "2015-12-10T15:00:00Z",
"StopTime": "2015-12-10T15:10:00Z",
"StreamName": "StreamName",
"UniqueId": "2.-395_37261_9848098_1538080899396",
"VideoAndAudioStamp": {
"V_AStamp": [
{
"Time": 1538134750408,
"Value": 359
}
]
},
"VideoBitRate": {
"VideoBitRate": [
{
"Time": 1538134750408,
"Value": 3970160
}
]
},
"VideoFrames": {
"VideoFrames": [
{
"Time": 1538134750408,
"Value": 29
}
]
},
"VideoInterval": {
"VideoInterval": [
{
"Time": 1538134750408,
"Value": 278
}
]
},
"VideoStamps": {
"VideoStamps": [
{
"Time": 1538134750408,
"Value": 725053781
}
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 200 | InvalidDuration.ExceedOneDay | StartTime and EndTime Duration Exceeds One Day | |
| 200 | InvalidDuration.StratTimeBiggerEndTime | StartTime Bigger Than EndTime | |
| 400 | InvalidParam | Parameter Stream invalid. | |
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 401 | IllegalOperation | %s, please check and try again later. | Operation not allowed, please check and try again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.