全部产品
云市场

GetVideo

更新时间:2019-02-25 14:45:22

描述

获取一个视频的信息。

请求参数

Parameter Type Required Comment
Project string Project
Action String GetVideo
SetId string SetId
VideoUri string 视频 Uri
OSS 地址规则为:oss://bucket/object,其中 bucket和当前 Project 在同一区域的 OSS 桶名, object 为文件路径。

返回参数

名称 类型 描述
RequestId String 用户发送的每次接口调用请求,无论成功与否,系统都会返回一个唯一识别码 RequestId 给用户
VideoUri String 视频 Uri
SetId String 媒体集 Set 的唯一标识。

其他字段参考 Video

示例

请求示例

  1. POST https://imm.cn-shanghai.aliyuncs.com
  2. ?Action= GetVideo
  3. &Project=test
  4. &SetId=test-set
  5. &VideoUri=oss://xxx/test/1.mp4

此处的示例,目的是展示关键参数,还需要其他的公共参数才能正常调用,推荐使用 SDK 来发送

成功返回示例

  1. {
  2. "ProcessStatus": Success”,
  3. "ProcessFailReason": "",
  4. "CelebrityFailReason": "",
  5. "VideoTagsFailReason": "",
  6. "VideoUri": "oss://xxx/test/1.mp4",
  7. "CelebrityStatus": "Success",
  8. "VideoTagsStatus": "Success",
  9. "VideoTags": [
  10. {
  11. "VideoTagEnName": "Association football",
  12. "VideoTagName": "\u82f1\u5f0f\u8db3\u7403",
  13. "VideoTagConfidence": 0.108429
  14. },
  15. {
  16. "VideoTagEnName": "Money",
  17. "VideoTagName": "\u94b1",
  18. "VideoTagConfidence": 0.0133626
  19. }
  20. ],
  21. "VideoTagsModifyTime": "2018-12-26T15:41:49.475Z",
  22. "CelebrityModifyTime": "2018-12-26T15:41:47.979Z",
  23. "SetId": "Set-fc2ff7fb-b3b6-43a3-941d-5adae620d2ae",
  24. "VideoFrames": 7807,
  25. "RemarksA": "",
  26. "RemarksB": "",
  27. "RemarksC": "",
  28. "RemarksD": "",
  29. "ExternalId": "",
  30. "Celebrity": [
  31. {
  32. "CelebrityLibraryName": "Stars",
  33. "CelebrityNum": 1,
  34. "CelebrityName": "\u82e5\u6cfd\u00b7\u963f\u5c14\u8d1d\u6258\u00b7\u963f\u6cfd\u96f7\u591a\u00b7\u6d1b\u4f69\u65af"
  35. },
  36. {
  37. "CelebrityLibraryName": "Stars",
  38. "CelebrityNum": 1,
  39. "CelebrityName": "\u8bb8\u52e4"
  40. }
  41. ],
  42. "RequestId": "E6AC93DC-35ED-40C0-BF23-15D6AFF7B786",
  43. "ModifyTime": "2018-12-26T15:38:51.278Z",
  44. "VideoWidth": 1280,
  45. "VideoFormat": "",
  46. "SourceType": "video",
  47. "SourceUri": "oss://xxx/test/1.mp4",
  48. "VideoDuration": 260.504667,
  49. "FileSize": 14166820,
  50. "CreateTime": "2018-12-26T15:38:51.278Z",
  51. "ProcessModifyTime": "2018-12-26T15:41:12.182Z",
  52. "VideoHeight": 720
  53. }