Domain name for API request: vod.intl.tencentcloudapi.com.
This API is no longer maintained. Please use the new version of APIs audio and video quality revival.
This API is used to initiate audio and video quality revival.
A maximum of 20 requests can be initiated per second for this API.
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 | VOD application ID. For customers who activate VOD after December 25, 2023, this field must be set to the app ID when accessing resources in VOD applications (whether the default application or a newly created application). |
| StartTimeOffset | No | Float | Start offset time, in seconds. If not filled, the segment is cut 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 | Artifact (burr) removal control parameter. |
| TargetInfo | No | RebuildMediaTargetInfo | Output target parameters for audio-visual quality rebirth. |
| SessionId | No | String | An identifier for deduplication. If there has been a request with the same identifier within the past 3 days, an error will be returned for the current request. The maximum length is 50 characters. Leaving it blank or using a null string indicates no deduplication is required. |
| 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 | Task priority. The higher the value, the higher the priority. The value range is from -10 to 10. If this is not specified, the default value is 0. |
| ExtInfo | No | String | Reserved field, used for special purposes. |
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Task ID for Audio and Video Quality Regeneration. You can query the status of the audio and video quality regeneration task 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. |
Trigger audio and video quality revival
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"
}
}
{
"Response": {
"TaskId": "125xxx-RebuildMedia-75e45d323ffad76987112fafe2eb87dxxx",
"RequestId": "ef5aae86-6eab-4cb3-9ebc-0979010b3f22"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
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 | Duplicate recognition code. Request deduplicated. |
フィードバック