tencent cloud

APIs

ProcessMediaByUrl

Download
Mode fokus
Ukuran font
Terakhir diperbarui: 2026-05-19 15:02:30

1. API Description

Domain name for API request: vod.intl.tencentcloudapi.com.

This API is disused, please use ProcessMedia API of MPS, with the input parameter InputInfo.UrlInputInfo.Url set to a video URL.

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 Name Required Type Description
Action Yes String Common Params. The value used for this API: ProcessMediaByUrl.
Version Yes String Common Params. The value used for this API: 2018-07-17.
Region No String Common Params. This parameter is not required.
SubAppId No Integer On-demand application ID. Customers who activate on-demand services from December 25, 2023 must fill this field with the app ID when accessing resources in on-demand applications (whether default or newly created).
InputInfo No MediaInputInfo The API is no longer maintained. Refer to the API description for the recommended alternative API.
OutputInfo No MediaOutputInfo Output file COS path information.
AiContentReviewTask No AiContentReviewTaskInput Parameters for the video content review task.
AiAnalysisTask No AiAnalysisTaskInput Parameters for the video content analysis task.
AiRecognitionTask No AiRecognitionTaskInput Parameters for the video content recognition task.
TasksPriority No Integer Priority of the task flow. The higher the value, the higher the priority. The value ranges from -10 to 10. If left blank, it represents 0.
TasksNotifyMode No String Task flow status change notification mode. Valid values are Finish, Change, and None. If this is not specified, the default value is Finish.
SessionContext No String Source context, which is used to pass through the user request information. The callback for task flow status changes will return the value of this field. The maximum length is 1,000 characters.
SessionId No String Identifier for deduplication. If a request with the same identifier has been sent within the past three days, an error is returned for the current request. The maximum length is 50 characters. If this is not specified or left empty, deduplication is not performed.

3. Output Parameters

Parameter Name Type Description
TaskId String Task ID
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Initiating a Content Analysis Task

Initiate a content analysis task for the video with the URL


.

Input Example

POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ProcessMediaByUrl
<Common request parameters>

{
    "InputInfo": {
        "Url": "http://www.abc.com/abc.mp4",
"Name": "Great Power Diplomacy"
        "Id": "872988202"
    },
    "OutputInfo": {
        "Region": "ap-guangzhou",
        "Bucket": "myoutputbucket-1256244234",
        "Dir": "/output/test/"
    },
    "AiAnalysisTask": {
        "Definition": 10
    }
}

Output Example

{
    "Response": {
        "RequestId": "5ca61e3a-6b8e-4b4e-9256-fdc701190064ef0",
        "TaskId": "125xxxxxx07-procedurev2-813dc41e6fdc22dcf24aa6e9c61cp92"
    }
}

Example2 Initiating a Content Review Task

Trigger a content review task for the video with URL


.

Input Example

POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ProcessMediaByUrl
<Common request parameters>

{
    "InputInfo": {
        "Url": "http://www.abc.com/abc.mp4",
        "Name": "Great Power Diplomacy",
        "Id": "872988202"
    },
    "OutputInfo": {
        "Region": "ap-guangzhou",
        "Bucket": "myoutputbucket-1256244234",
        "Dir": "/output/test/"
    },
    "AiContentReviewTask": {
        "Definition": 10
    }
}

Output Example

{
    "Response": {
        "RequestId": "5ca61e3a-6b8e-4b4e-9256-fdc701190064ef0",
        "TaskId": "125xxxxxx07-procedurev2-893dc41e6fdc22dcf24aa6e9c61cp94"
    }
}

Example3 Initiate a content recognition task

Trigger a content recognition task for the video with the URL


.

Input Example

POST / HTTP/1.1
Host: vod.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ProcessMediaByUrl
<Common request parameters>

{
    "InputInfo": {
        "Url": "http://www.abc.com/abc.mp4",
"Name": "Great Power Diplomacy"
        "Id": "872988202"
    },
    "OutputInfo": {
        "Region": "ap-guangzhou",
        "Bucket": "myoutputbucket-1256244234",
        "Dir": "/output/test/"
    },
    "AiRecognitionTask": {
        "Definition": 10
    }
}

Output Example

{
    "Response": {
        "RequestId": "5ca61e3a-6b8e-4b4e-9256-fdc701190064fk3",
        "TaskId": "125xxxxxx07-procedurev2-813dc41e6fdc22dcf24aa6e9c61f3t0"
    }
}

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 Code Description
FailedOperation Operation failed.
FailedOperation.InvalidVodUser The VOD service is not activated.
FailedOperation.TaskDuplicate Operation failed: the task already exists.
InternalError Internal error.
InternalError.GetFileInfoError Internal error: an error occurred while getting media file information.
InvalidParameter Parameter error.
InvalidParameterValue.AiAnalysisTaskDefinition Incorrect parameter value: Definition for AI-based analysis.
InvalidParameterValue.AiContentReviewTaskDefinition Incorrect parameter value: Definition AI-based content audit.
InvalidParameterValue.AiRecognitionTaskDefinition Incorrect parameter value: Definition for AI-based recognition.
InvalidParameterValue.SessionContextTooLong SessionContext is too long.
InvalidParameterValue.SessionId The deduplication ID already exists. The request is removed due to duplication.
InvalidParameterValue.SessionIdTooLong SessionId is too long.
InvalidParameterValue.SubAppId Incorrect parameter value: application id.
UnauthorizedOperation Unauthorized operation.

Bantuan dan Dukungan

Apakah halaman ini membantu?

masukan