媒体处理 MPC-查询视频解析任务:响应示例

时间:2025-03-25 18:58:13

响应示例

状态码:200

查询视频解析任务成功。

{
  "total" : 1,
  "tasks" : [ {
    "task_id" : 7967,
    "status" : "SUCCEED",
    "create_time" : 20201119103821,
    "start_time" : 20201119103822,
    "end_time" : 20201119103827,
    "description" : "The task has completed.",
    "input" : {
      "bucket" : "example-bucket",
      "location" : "region01",
      "object" : "example-path/input.mp4"
    },
    "output" : {
      "bucket" : "example-bucket",
      "location" : "region01",
      "object" : "example-path/output",
      "file_name" : "video_001.txt"
    },
    "metadata" : {
      "size" : 43231240,
      "duration_ms" : 60.186,
      "duration" : 60,
      "format" : "MP4",
      "bitrate" : 5605,
      "video" : [ {
        "width" : 3824,
        "height" : 2152,
        "bitrate" : 5481,
        "bitrate_bps" : 5613152,
        "frame_rate" : 23,
        "codec" : "H.265"
      } ],
      "audio" : [ {
        "codec" : "AAC",
        "sample" : 48000,
        "channels" : 2,
        "bitrate" : 124,
        "bitrate_bps" : 127992
      } ]
    }
  } ]
}

状态码:400

查询视频解析任务失败。

{
  "error_code" : "MPC.10202",
  "error_msg" : "Invalid request parameter."
}
support.huaweicloud.com/api-mpc/mpc_04_0062_2.html
提示

您即将访问非华为云网站,请注意账号财产安全