tencent cloud

Video on Demand

RebuildMedia

Download
Focus Mode
Font Size
Last updated: 2026-05-19 15:02:30

1. API Description

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

Initiate rebuild media

A maximum of 20 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: RebuildMedia.
Version Yes String Common Params. The value used for this API: 2018-07-17.
Region No String Common Params. This parameter is not required.
FileId Yes String Media File ID.
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).
StartTimeOffset No Float Start offset time, in seconds. Not filled indicates cutting from the beginning of the video.
EndTimeOffset No Float End Offset Time, in seconds. Not filled indicates cutting to the end of the video.
RepairInfo No RepairInfo Image quality restoration control parameters.
VideoFrameInterpolationInfo No VideoFrameInterpolationInfo Intelligent Frame Interpolation Control Parameters.
SuperResolutionInfo No SuperResolutionInfo Image super-resolution control parameters.
HDRInfo No HDRInfo High dynamic range type control parameter.
VideoDenoiseInfo No VideoDenoiseInfo Video noise reduction control parameters.
AudioDenoiseInfo No AudioDenoiseInfo Audio noise reduction control parameters.
ColorInfo No ColorEnhanceInfo Color enhancement control parameters.
SharpInfo No SharpEnhanceInfo Detail enhancement control parameters.
FaceInfo No FaceEnhanceInfo Face enhancement control parameters.
LowLightInfo No LowLightEnhanceInfo Low-light control parameters.
ScratchRepairInfo No ScratchRepairInfo Scratch removal control parameter.
ArtifactRepairInfo No ArtifactRepairInfo Deburring control parameter.
TargetInfo No RebuildMediaTargetInfo Audio-Visual Quality Rebirth Output Target Parameters.
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.
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.
TasksPriority No Integer Priority of the task. The higher the value, the higher the priority. The value ranges from -10 to 10. If left blank, it represents 0.
ExtInfo No String Reserved field, used when special purpose.

3. Output Parameters

Parameter Name Type Description
TaskId String Task ID for Audio and Video Quality Regeneration. The state of the audio and video quality regeneration task can be queried through this 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 Audio and Video Quality Revival

Initiate audio and video quality revival

Input Example

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

{
    "SuperResolutionInfo": {
        "Switch": "ON"
    },
    "VideoFrameInterpolationInfo": {
        "Switch": "ON",
        "Fps": 25
    },
    "FileId": "8312960950918954859",
    "RepairInfo": {
        "Switch": "ON"
    },
    "TargetInfo": {
        "Container": "mp4",
        "MediaName": "string",
        "Description": "string"
    }
}

Output Example

{
    "Response": {
        "TaskId": "125xxx-RebuildMedia-75e45d323ffad76987112fafe2eb87dxxx",
        "RequestId": "ef5aae86-6eab-4cb3-9ebc-0979010b3f22"
    }
}

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.
InvalidParameterValue.SessionId The deduplication ID already exists. The request is removed due to duplication.

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback