调用QueryMediaInfoJobList查询媒体作业信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 否 | QueryMediaInfoJobList |
系统规定参数,取值:QueryMediaInfoJobList。 |
MediaInfoJobIds | String | 是 | 88c6ca184c0e424d5w5b665e2a12**** |
媒体信息作业ID列表。英文逗号(,)分隔,一次最多查询10个。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
MediaInfoJobList | Array of MediaInfoJob |
媒体信息作业列表。 |
|
MediaInfoJob | |||
Async | Boolean | true |
是否为异步作业。 |
Code | String | xxx |
元信息分析失败时错误码。 |
CreationTime | String | 2014-01-10T12:00:00Z |
作业添加时间。 |
Input | Struct |
作业输入。 |
|
Bucket | String | example-bucket |
OSS Bucket。 |
Location | String | oss-cn-hangzhou |
OSS Location。 |
Object | String | example.mp4 |
OSS Object。 |
JobId | String | 88c6ca184c0e4*****5b665e2a126797 |
元信息分析作业ID。 |
MNSMessageResult | Struct |
MNS通知用户作业完成的消息结果。 |
|
ErrorCode | String | xxx |
失败时错误码。 |
ErrorMessage | String | xxx |
失败时错误信息。 |
MessageId | String | 123 |
成功时消息ID。 |
Message | String | xxx |
元信息分析失败时错误信息。 |
PipelineId | String | 88c6ca184c0e4*****5b665e2a126797 |
管道ID。 |
Properties | Struct |
媒体属性。 |
|
Bitrate | String | 1630.045 |
码率。 |
Duration | String | 17.226000 |
时长。 |
FileFormat | String | QuickTime / MOV |
文件格式。 |
FileSize | String | 3509895 |
文件大小。 |
Format | Struct |
格式信息。 |
|
Bitrate | String | 1630.045 |
总码率。 |
Duration | String | 17.226000 |
总时长。 |
FormatLongName | String | QuickTime / MOV |
容器、封装格式长述名。 |
FormatName | String | mov,mp4,m4a,3gp,3g2,mj2 |
容器、封装格式简述名。 |
NumPrograms | String | 2 |
节目流总数。 |
NumStreams | String | 1 |
媒体流总数。 |
Size | String | 3509895 |
文件大小。 |
StartTime | String | 0.042000 |
起始时间。 |
Fps | String | 25 |
帧率。 |
Height | String | 720 |
视频像素长。 |
Streams | Struct |
流信息。 |
|
AudioStreamList | Array of AudioStream |
音频流信息列表。 |
|
AudioStream | |||
Bitrate | String | 1536000 |
码率。 |
ChannelLayout | String | 5.1(side) |
声道数。 |
Channels | String | 2 |
声道输出样式。 |
CodecLongName | String | DCA (DTS Coherent Acoustics) |
编码格式长述名。 |
CodecName | String | dca |
编码格式简述名。 |
CodecTag | String | 0x0000 |
编码格式标记。 |
CodecTagString | String | [0][0][0][0] |
编码格式标记文本。 |
CodecTimeBase | String | 1/48000 |
编码时基。 |
Duration | String | 123 |
时长。 |
Index | String | 1 |
音频流序号,标识音频流在整个媒体流中的位置。 |
Lang | String | eng |
语言。请参见FFmpeg语言定义。 |
NumFrames | String | 123 |
总帧数。 |
SampleFmt | String | fltp |
采样格式。 |
Samplerate | String | 48000 |
采样率。 |
StartTime | String | 0.042000 |
起始时间。 |
Timebase | String | 1/1000 |
时基。 |
SubtitleStreamList | Array of SubtitleStream |
字幕流信息列表。 |
|
SubtitleStream | |||
CodecLongName | String | ASS (Advanced SSA) subtitle |
编码格式长述名。 |
CodecName | String | ass |
编码格式简述名。 |
CodecTag | String | 0x0000 |
编码格式标记。 |
CodecTagString | String | [0][0][0][0] |
编码格式标记文本。 |
CodecTimeBase | String | 0/1 |
编码时基。 |
Duration | String | 1370.116000 |
时长。 |
Index | String | 3 |
字幕流序号,标识字幕流在整个媒体流中的位置。 |
Lang | String | eng |
语言。 |
StartTime | String | 0.000000 |
起始时间。 |
Timebase | String | 1/1000 |
时基。 |
VideoStreamList | Array of VideoStream |
视频流信息列表。 |
|
VideoStream | |||
AvgFPS | String | 24000/1001 |
平均帧率。 |
Bitrate | String | 30541090 |
码率。 |
CodecLongName | String | H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 |
编码格式长述名。 |
CodecName | String | h264 |
编码格式简述名。 |
CodecTag | String | 0x0000 |
编码格式标记。 |
CodecTagString | String | [0][0][0][0] |
编码格式标记文本。 |
CodecTimeBase | String | 1001/48000 |
编码时基。 |
Dar | String | 16:9 |
编码显示分辨率比。 |
Duration | String | 100 |
时长。 |
Fps | String | 25 |
帧率。 |
HasBFrames | String | 1 |
是否有B帧。 |
Height | String | 1080 |
视频分辨率长。 |
Index | String | 1 |
视频流序号,标识视频流在整个媒体流中的位置。 |
Lang | String | eng |
语言。 |
Level | String | 41 |
编码等级。 |
NetworkCost | Struct |
网络带宽消耗。 |
|
AvgBitrate | String | 300.34 |
平均码率。 |
CostBandwidth | String | 10 |
最大消耗带宽。 |
PreloadTime | String | 8 |
预加载时间。 |
NumFrames | String | 100 |
总帧数。 |
PixFmt | String | yuv420p |
像素格式。 |
Profile | String | High |
编码预置。 |
Rotate | String | 180 |
视频旋转角度。 |
Sar | String | 1:1 |
编码信号分辨率比。 |
StartTime | String | 0.042000 |
起始时间。 |
Timebase | String | 1/1000 |
时基。 |
Width | String | 1920 |
视频分辨率宽。 |
Width | String | 1280 |
视频像素宽。 |
State | String | Success |
作业状态。取值:
|
UserData | String | testid-001 |
用户自定义数据。 |
NonExistMediaInfoJobIds | List | [123,456] |
不存在的媒体信息作业ID列表,无数据时该结构不返回。 |
RequestId | String | 25818875-5F78-4A*****F6-D7393642CA58 |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=QueryMediaInfoJobList
&MediaInfoJobIds=88c6ca184c0e4*****5b665e2a126797
&<公共请求参数>
正常返回示例
XML
格式
<NonExistMediaInfoJobIds>
<String>[123,456]</String>
</NonExistMediaInfoJobIds>
<RequestId>25818875-5F78-4A*****F6-D7393642CA58</RequestId>
<MediaInfoJobList>
<MediaInfoJob>
<Message>xxx</Message>
<UserData>testid-001</UserData>
<State>Success</State>
<Async>true</Async>
<CreationTime>2014-01-10T12:00:00Z</CreationTime>
<PipelineId>88c6ca184c0e4*****5b665e2a126797</PipelineId>
<Code>xxx</Code>
<JobId>88c6ca184c0e4*****5b665e2a126797</JobId>
<Input>
<Bucket>example-bucket</Bucket>
<Object>example.mp4</Object>
<Location>oss-cn-hangzhou</Location>
</Input>
<Properties>
<Fps>25</Fps>
<Duration>17.226000</Duration>
<Height>720</Height>
<FileFormat>QuickTime / MOV</FileFormat>
<Bitrate>1630.045</Bitrate>
<Width>1280</Width>
<FileSize>3509895</FileSize>
<Streams>
<VideoStreamList>
<VideoStream>
<CodecTag>0x0000</CodecTag>
<CodecTimeBase>1001/48000</CodecTimeBase>
<Rotate>180</Rotate>
<Sar>1:1</Sar>
<StartTime>0.042000</StartTime>
<Fps>25</Fps>
<Lang>eng</Lang>
<Duration>100</Duration>
<Index>1</Index>
<PixFmt>yuv420p</PixFmt>
<Bitrate>30541090</Bitrate>
<CodecName>h264</CodecName>
<AvgFPS>24000/1001</AvgFPS>
<Profile>High</Profile>
<Timebase>1/1000</Timebase>
<HasBFrames>1</HasBFrames>
<CodecTagString>[0][0][0][0]</CodecTagString>
<Dar>16:9</Dar>
<CodecLongName>H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10</CodecLongName>
<Level>41</Level>
<Height>1080</Height>
<NumFrames>100</NumFrames>
<Width>1920</Width>
<NetworkCost>
<AvgBitrate>300.34</AvgBitrate>
<PreloadTime>8</PreloadTime>
<CostBandwidth>10</CostBandwidth>
</NetworkCost>
</VideoStream>
</VideoStreamList>
<SubtitleStreamList>
<SubtitleStream>
<Timebase>1/1000</Timebase>
<CodecTag>0x0000</CodecTag>
<CodecTagString>[0][0][0][0]</CodecTagString>
<CodecTimeBase>0/1</CodecTimeBase>
<CodecLongName>ASS (Advanced SSA) subtitle</CodecLongName>
<StartTime>0.000000</StartTime>
<Lang>eng</Lang>
<Duration>1370.116000</Duration>
<Index>3</Index>
<CodecName>ass</CodecName>
</SubtitleStream>
</SubtitleStreamList>
<AudioStreamList>
<AudioStream>
<CodecTag>0x0000</CodecTag>
<CodecTimeBase>1/48000</CodecTimeBase>
<ChannelLayout>5.1(side)</ChannelLayout>
<StartTime>0.042000</StartTime>
<Lang>eng</Lang>
<Duration>123</Duration>
<Index>1</Index>
<SampleFmt>fltp</SampleFmt>
<Bitrate>1536000</Bitrate>
<Samplerate>48000</Samplerate>
<CodecName>dca</CodecName>
<Channels>2</Channels>
<Timebase>1/1000</Timebase>
<CodecTagString>[0][0][0][0]</CodecTagString>
<CodecLongName>DCA (DTS Coherent Acoustics)</CodecLongName>
<NumFrames>123</NumFrames>
</AudioStream>
</AudioStreamList>
</Streams>
<Format>
<NumPrograms>2</NumPrograms>
<Size>3509895</Size>
<FormatLongName>QuickTime / MOV</FormatLongName>
<StartTime>0.042000</StartTime>
<FormatName>mov,mp4,m4a,3gp,3g2,mj2</FormatName>
<NumStreams>1</NumStreams>
<Duration>17.226000</Duration>
<Bitrate>1630.045</Bitrate>
</Format>
</Properties>
<MNSMessageResult>
<ErrorCode>xxx</ErrorCode>
<ErrorMessage>xxx</ErrorMessage>
<MessageId>123</MessageId>
</MNSMessageResult>
</MediaInfoJob>
</MediaInfoJobList>
JSON
格式
{
"NonExistMediaInfoJobIds": {
"String": "[123,456]"
},
"RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
"MediaInfoJobList": {
"MediaInfoJob": {
"Message": "xxx",
"UserData": "testid-001",
"State": "Success",
"Async": true,
"CreationTime": "2014-01-10T12:00:00Z",
"PipelineId": "88c6ca184c0e4*****5b665e2a126797",
"Code": "xxx",
"JobId": "88c6ca184c0e4*****5b665e2a126797",
"Input": {
"Bucket": "example-bucket",
"Object": "example.mp4",
"Location": "oss-cn-hangzhou"
},
"Properties": {
"Fps": 25,
"Duration": 17.226,
"Height": 720,
"FileFormat": "QuickTime / MOV",
"Bitrate": 1630.045,
"Width": 1280,
"FileSize": 3509895,
"Streams": {
"VideoStreamList": {
"VideoStream": {
"CodecTag": 0,
"CodecTimeBase": "1001/48000",
"Rotate": 180,
"Sar": "1:1",
"StartTime": 0.042,
"Fps": 25,
"Lang": "eng",
"Duration": 100,
"Index": 1,
"PixFmt": "yuv420p",
"Bitrate": 30541090,
"CodecName": "h264",
"AvgFPS": "24000/1001",
"Profile": "High",
"Timebase": "1/1000",
"HasBFrames": 1,
"CodecTagString": "[0][0][0][0]",
"Dar": "16:9",
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"Level": 41,
"Height": 1080,
"NumFrames": 100,
"Width": 1920,
"NetworkCost": {
"AvgBitrate": 300.34,
"PreloadTime": 8,
"CostBandwidth": 10
}
}
},
"SubtitleStreamList": {
"SubtitleStream": {
"Timebase": "1/1000",
"CodecTag": 0,
"CodecTagString": "[0][0][0][0]",
"CodecTimeBase": "0/1",
"CodecLongName": "ASS (Advanced SSA) subtitle",
"StartTime": 0,
"Lang": "eng",
"Duration": 1370.116,
"Index": 3,
"CodecName": "ass"
}
},
"AudioStreamList": {
"AudioStream": {
"CodecTag": 0,
"CodecTimeBase": "1/48000",
"ChannelLayout": "5.1(side)",
"StartTime": 0.042,
"Lang": "eng",
"Duration": 123,
"Index": 1,
"SampleFmt": "fltp",
"Bitrate": 1536000,
"Samplerate": 48000,
"CodecName": "dca",
"Channels": 2,
"Timebase": "1/1000",
"CodecTagString": "[0][0][0][0]",
"CodecLongName": "DCA (DTS Coherent Acoustics)",
"NumFrames": 123
}
}
},
"Format": {
"NumPrograms": 2,
"Size": 3509895,
"FormatLongName": "QuickTime / MOV",
"StartTime": 0.042,
"FormatName": "mov,mp4,m4a,3gp,3g2,mj2",
"NumStreams": 1,
"Duration": 17.226,
"Bitrate": 1630.045
}
},
"MNSMessageResult": {
"ErrorCode": "xxx",
"ErrorMessage": "xxx",
"MessageId": 123
}
}
}
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交