Overview
Menu

DescribeTaskDetail

1. API Description

Domain name for API request: mps.tencentcloudapi.com.

This API is used to query the details of execution status and result of a task submitted in the last 3 days by task ID.

A maximum of 100 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter NameRequiredTypeDescription
ActionYesStringCommon Params. The value used for this API: DescribeTaskDetail.
VersionYesStringCommon Params. The value used for this API: 2019-06-12.
RegionNoStringCommon Params. This parameter is not required for this API.
TaskIdYesStringVideo processing task ID.

3. Output Parameters

Parameter NameTypeDescription
TaskTypeStringThe task type. Valid values:
  • WorkflowTask
  • EditMediaTask
  • LiveStreamProcessTask
  • ScheduleTask (scheme)
  • StatusStringTask status. Valid values:
  • WAITING: Waiting;
  • PROCESSING: Processing;
  • FINISH: Completed.
  • CreateTimeStringCreation time of a task in ISO date format.
    BeginProcessTimeStringStart time of task execution in ISO date format.
    FinishTimeStringEnd time of task execution in ISO date format.
    EditMediaTaskEditMediaTaskVideo editing task information. This field has a value only when TaskType is EditMediaTask.
    WorkflowTaskWorkflowTaskInformation of a video processing task. This field has a value only when TaskType is WorkflowTask.
    Note: This field may return null, indicating that no valid values can be obtained.
    LiveStreamProcessTaskLiveStreamProcessTaskInformation of a live stream processing task. This field has a value only when TaskType is LiveStreamProcessTask.
    Note: This field may return null, indicating that no valid values can be obtained.
    TaskNotifyConfigTaskNotifyConfigEvent notification information of a task.
    Note: This field may return null, indicating that no valid values can be obtained.
    TasksPriorityIntegerTask flow priority. Value range: [-10, 10].
    SessionIdStringThe ID used for deduplication. If there was a request with the same ID in the last seven days, the current request will return an error. The ID can contain up to 50 characters. If this parameter is left empty or an empty string is entered, no deduplication will be performed.
    SessionContextStringThe source context which is used to pass through the user request information. The task flow status change callback will return the value of this field. It can contain up to 1,000 characters.
    ExtInfoStringExtended information field, used in specific scenarios.
    ScheduleTaskScheduleTaskThe information of a scheme. This parameter is valid only if TaskType is ScheduleTask.
    Note: This field may return null, indicating that no valid values can be obtained.
    LiveScheduleTaskLiveScheduleTaskThe information of a live scheme. This parameter is valid only if TaskType is LiveScheduleTask.
    Note: This field may returnĀ·null, indicating that no valid values can be obtained.
    RequestIdStringThe unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Example

    Example1 Querying the result of a task

    This example shows you how to query the result of a task.

    Input Example

    https://mps.tencentcloudapi.com/?Action=DescribeTaskDetail
    &TaskId=235303****-WorkflowTask-80108cc3380155d98b2e3573a48a******
    &<Common request parameters>
    

    Output Example

    {
        "Response": {
            "TaskType": "WorkflowTask",
            "Status": "FINISH",
            "CreateTime": "2019-07-16T06:21:27Z",
            "BeginProcessTime": "2019-07-16T06:21:28Z",
            "FinishTime": "2019-07-16T06:21:46Z",
            "WorkflowTask": {
                "TaskId": "235303****-WorkflowTask-80108cc3380155d98b2e3573a48a******",
                "Status": "FINISH",
                "ErrCode": 0,
                "Message": "",
                "InputInfo": {
                    "Type": "COS",
                    "CosInputInfo": {
                        "Bucket": "vodtestbj-235303****",
                        "Region": "ap-beijing",
                        "Object": "/input/videoplayback.mp4"
                    },
                    "S3InputInfo": null,
                    "UrlInputInfo": null
                },
                "MetaData": {
                    "AudioDuration": 380.9465637207031,
                    "AudioStreamSet": [
                        {
                            "Channel": 0,
                            "Bitrate": 95999,
                            "Codec": "aac",
                            "SamplingRate": 44100
                        }
                    ],
                    "Bitrate": 409657,
                    "Container": "mov,mp4,m4a,3gp,3g2,mj2",
                    "Duration": 380.9465637207031,
                    "Height": 360,
                    "Rotate": 0,
                    "Size": 19626862,
                    "VideoDuration": 380.8804931640625,
                    "VideoStreamSet": [
                        {
                            "Bitrate": 313658,
                            "Codec": "h264",
                            "Fps": 29,
                            "Height": 360,
                            "HdrType": "",
                            "ColorPrimaries": "",
                            "ColorSpace": "",
                            "ColorTransfer": "",
                            "Width": 480
                        }
                    ],
                    "Width": 480
                },
                "MediaProcessResultSet": [
                    {
                        "Type": "Transcode",
                        "TranscodeTask": {
                            "Status": "SUCCESS",
                            "ErrCode": 0,
                            "Message": "SUCCESS",
                            "ErrCodeExt": "SUCCESS",
                            "Progress": 100,
                            "Input": {
                                "Definition": 210,
                                "WatermarkSet": [],
                                "MosaicSet": [],
                                "RawParameter": null,
                                "EndTimeOffset": 0,
                                "OverrideParameter": null,
                                "HeadTailParameter": null,
                                "StartTimeOffset": 0,
                                "OutputStorage": {
                                    "Type": "COS",
                                    "CosOutputStorage": {
                                        "Bucket": "vodtestgz-235303****",
                                        "Region": "ap-guangzhou"
                                    },
                                    "S3OutputStorage": null
                                },
                                "OutputObjectPath": "/hello/world/what/ever/videoplayback_transcode111_210",
                                "SegmentObjectName": "/hello/world/what/ever/no/problem/videoplayback_transcode11_210_{number}",
                                "ObjectNumberFormat": {
                                    "InitialValue": 2,
                                    "Increment": 3,
                                    "MinLength": 1,
                                    "PlaceHolder": "0"
                                }
                            },
                            "Output": {
                                "OutputStorage": {
                                    "Type": "COS",
                                    "CosOutputStorage": {
                                        "Bucket": "vodtestgz-235303****",
                                        "Region": "ap-guangzhou"
                                    },
                                    "S3OutputStorage": null
                                },
                                "Path": "/hello/world/what/ever/videoplayback_transcode111_210.m3u8",
                                "Definition": 210,
                                "Bitrate": 353297,
                                "Height": 240,
                                "Width": 320,
                                "Size": 5692,
                                "Duration": 380.9580078125,
                                "Container": "hls,applehttp",
                                "Md5": "ae0dfe7c7336291d6243463b7bb14fea",
                                "VideoStreamSet": [
                                    {
                                        "Bitrate": 302307,
                                        "Codec": "h264",
                                        "Fps": 24,
                                        "Height": 240,
                                        "HdrType": "",
                                        "ColorPrimaries": "",
                                        "ColorSpace": "",
                                        "ColorTransfer": "",
                                        "Width": 320
                                    }
                                ],
                                "AudioStreamSet": [
                                    {
                                        "Channel": 0,
                                        "Bitrate": 50990,
                                        "Codec": "aac",
                                        "SamplingRate": 44100
                                    }
                                ]
                            }
                        },
                        "AnimatedGraphicTask": null,
                        "SnapshotByTimeOffsetTask": null,
                        "SampleSnapshotTask": null,
                        "ImageSpriteTask": null
                    }
                ],
                "AiAnalysisResultSet": [],
                "AiRecognitionResultSet": [],
                "AiContentReviewResultSet": [],
                "AiQualityControlTaskResult": null
            },
            "TaskNotifyConfig": null,
            "EditMediaTask": null,
            "LiveStreamProcessTask": null,
            "ScheduleTask": null,
            "LiveScheduleTask": null,
            "TasksPriority": 0,
            "SessionId": "",
            "SessionContext": "",
            "ExtInfo": "",
            "RequestId": "04db7d25-f590-414a-a341-8f1584f15f84"
        }
    }
    

    5. Developer Resources

    SDK

    TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

    Command Line Interface

    6. Error Code

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error CodeDescription
    FailedOperation.InvalidMpsUserOperation failed: unauthorized MPS user.
    InternalErrorInternal error.
    InvalidParameterValueIncorrect parameter value.
    ResourceNotFoundThe resource does not exist.
    UnauthorizedOperationUnauthorized operation.