媒体处理 MPC-查询转动图任务:响应示例

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

响应示例

状态码:200

查询动图任务成功。

{
  "total" : 1,
  "tasks" : [ {
    "task_id" : 30647,
    "error_code" : "MPC.10218",
    "status" : "SUCCEED",
    "create_time" : 20201119103652,
    "start_time" : 20201119103653,
    "end_time" : 20201119103708,
    "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" : "file_001.gif"
    },
    "output_param" : {
      "format" : "gif",
      "width" : 100,
      "height" : 50,
      "start" : 0,
      "end" : 10000,
      "frame_rate" : 15
    }
  } ]
}

状态码:400

查询动图任务失败。

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