调用GetVideo获取媒体集中一个视频的信息。
接口说明
此接口已不再维护,建议使用新版(2020-09-30 版本)接口 GetFileMeta 。关于新版与旧版 API 的对比,请参见新旧版本使用指引中的新版与旧版 API 对应关系说明章节。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
Project | string | 是 | 项目名称。 | immvideotest |
SetId | string | 是 | 媒体集的唯一标识。 | videoset |
VideoUri | string | 是 | 视频的 OSS URI。 OSS 地址规则为 | oss://imm-test/testcases/video.mp4 |
返回参数
示例
正常返回示例
JSON
格式
{
"ModifyTime": "2021-01-21T07:40:41.683Z",
"ProcessStatus": "Success",
"VideoWidth": 1080,
"SourceType": "video",
"SourceUri": "oss://imm-test/testcases/video.mp4",
"VideoInfo": "{\"MediaStreams\":{\"VideoStreams\":[{\"Index\":0,\"Language\":\"eng\",\"CodecName\":\"h264\",\"CodecLongName\":\"H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\",\"Profile\":\"Baseline\",\"CodecTimeBase\":\"1373627/83160000\",\"CodecTagString\":\"avc1\",\"CodecTag\":\"0x31637661\",\"Width\":1080,\"Height\":1920,\"SampleAspectRatio\":\"1:1\",\"DisplayAspectRatio\":\"9:16\",\"PixelFormat\":\"yuv420p\",\"Level\":40,\"FrameRrate\":\"90000/1\",\"AverageFrameRate\":\"41580000/1373627\",\"TimeBase\":\"1/90000\",\"StartTime\":\"0.000000\",\"Duration\":\"15.262522\",\"Bitrate\":\"13091201\",\"Frames\":\"462\"}],\"AudioStreams\":[],\"SubtitleStreams\":[]},\"MediaFormat\":{\"NumberStreams\":2,\"FormatName\":\"mov,mp4,m4a,3gp,3g2,mj2\",\"FormatLongName\":\"QuickTime / MOV\",\"Size\":\"25115517\",\"Duration\":\"15.263000\",\"StartTime\":\"0.000000\",\"Bitrate\":\"13164131\",\"CreationTime\":\"2020-10-25T09:16:09.000000Z\",\"Address\":{},\"Tag\":{}}}",
"VideoFrameTagsModifyTime": "1970-01-01T00:00:00Z",
"RemarksA": "AdminGroup/AdminUserA/",
"VideoFacesFailReason": "Timeout",
"RemarksB": "nas://path/to/file",
"VideoFacesStatus": "Success",
"RemarksC": "remarkc",
"VideoOCRModifyTime": "1970-01-01T00:00:00Z",
"RemarksD": "remarkd",
"VideoHeight": 1920,
"SourcePosition": "00000000.010",
"VideoOCRFailReason": "Timeout",
"VideoFrameTagsStatus": "Success",
"VideoTagsFailReason": "Timeout",
"VideoTagsModifyTime": "2021-01-21T07:40:53.95Z",
"VideoOCRStatus": "Success",
"VideoFrames": 462,
"RequestId": "5FC2B195-B43E-45ED-9BEC-169358550193",
"ProcessModifyTime": "2021-01-21T07:40:53.955Z",
"VideoSTTModifyTime": "2021-01-21T07:40:53.95Z",
"ProcessFailReason": "Timeout",
"CreateTime": "2021-01-21T07:40:41.683Z",
"ExternalId": "externalId001",
"VideoSTTFailReason": "Timeout",
"VideoUri": "oss://imm-test/testcases/video.mp4",
"VideoFrameTagsFailReason": "Timeout",
"VideoFormat": "mov,mp4,m4a,3gp,3g2,mj2",
"VideoSTTStatus": "Success",
"VideoFacesModifyTime": "1970-01-01T00:00:00Z",
"VideoTags": [
{
"TagName": "大型超市",
"TagConfidence": 0.8933850526809692,
"TagLevel": 2,
"ParentTagName": "内部场景"
}
],
"VideoDuration": 15.263,
"SetId": "videoset",
"VideoTagsStatus": "Success",
"FileSize": 25115517
}
错误码
访问错误中心查看更多错误码。