tencent cloud

Video on Demand

Audio and video Enhancement

다운로드
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-06-09 16:14:28
Audio and video enhancement functions rely on Tencent Cloud's audio and video AI processing models and extensive accumulation of business data to provide professional-grade audio and video enhancement solutions. This feature supports distributed real-time image quality enhancement, including video deblocking, noise reduction, color enhancement, detail enhancement, face enhancement, SDR2HDR, large model enhancement, etc. It can significantly improve audio and video quality and is widely used in scenarios such as OTT, e-commerce, and sports events, effectively achieving the dual-dimensional improvement of QoE and QoS and creating significant business value.

Console Usage

For console usage, please refer to Audio and Video Enhancement.

API Integration

Preset Enhancement Templates

Through extensive verification across numerous real-world customer use cases, we have accumulated a series of optimized preset enhancement templates. These templates are specifically tuned for different scenarios and can meet the needs of most users. Listed below are several commonly used preset templates with excellent video enhancement effects for your selection.

General Scenarios

Template Number
Template Name
Billing
101450
DiffusionEnhance-V2-2K-SourceResolutionFrameRate
The fees for "Large Model Video Enhancement" + "Top Speed Codec Transcoding" will be charged. For pricing details, please refer to Pay-as-You-Go (Post-paid).
101460
DiffusionEnhance-V1-2K-SourceResolutionFrameRate
101470
DiffusionEnhance-V2-4K-SourceResolutionFrameRate
101480
DiffusionEnhance-V1-4K-SourceResolutionFrameRate
101410
DiffusionEnhance-V2-720P-SourceResolutionFrameRate
101420
DiffusionEnhance-V1-720P-SourceResolutionFrameRate
101430
DiffusionEnhance-V2-1080P-SourceResolutionFrameRate
101440
DiffusionEnhance-V1-1080P-SourceResolutionFrameRate

AnimatedDrama / LiveAction Scenarios

Template Number
Template Name
Billing
101550
AnimatedDrama-DiffusionEnhance-2K-SourceResolutionFrameRate
The fees for "Large Model Video Enhancement" + "Top Speed Codec Transcoding" will be charged. For pricing, please refer to Pay-as-You-Go (Postpaid).
101560
LiveActionDrama-DiffusionEnhance-2K-SourceResolutionFrameRate
101570
AnimatedDrama-DiffusionEnhance-4K-SourceResolutionFrameRate
101580
LiveActionDrama-DiffusionEnhance-4K-SourceResolutionFrameRate
101510
AnimatedDrama-DiffusionEnhance-720P-SourceResolutionFrameRate
101520
LiveActionDrama-DiffusionEnhance-720P-SourceResolutionFrameRate
101530
AnimatedDrama-DiffusionEnhance-1080P-SourceResolutionFrameRate
101540
LiveActionDrama-DiffusionEnhance-1080P-SourceResolutionFrameRate

AnimatedDrama / LiveAction Scenarios - SmallFaceOpt

Template Number
Template Name
Billing
101650
AnimatedDrama-SmallFaceOpt-DiffusionEnhance-2K-SourceResolutionFrameRate
The fees for "Large Model Video Enhancement" + "Top Speed Codec Transcoding" will be charged. For pricing, please refer to Pay-as-You-Go (Postpaid).
101660
LiveActionDrama-SmallFaceOpt-DiffusionEnhance-2K-SourceResolutionFrameRate
101670
AnimatedDrama-SmallFaceOpt-DiffusionEnhance-4K-SourceResolutionFrameRate
101680
LiveActionDrama-SmallFaceOpt-DiffusionEnhance-4K-SourceResolutionFrameRate
101610
AnimatedDrama-SmallFaceOpt-DiffusionEnhance-720P-SourceResolutionFrameRate
101620
LiveActionDrama-SmallFaceOpt-DiffusionEnhance-720P-SourceResolutionFrameRate
101630
AnimatedDrama-SmallFaceOpt-DiffusionEnhance-1080P-SourceResolutionFrameRate
101640
LiveActionDrama-SmallFaceOpt-DiffusionEnhance-1080P-SourceResolutionFrameRate

Create Custom Enhancement Templates

Note:
Enhancement functions are implemented based on transcoding; enhancement parameters are overlaid on top of the transcoding process. When using enhancement features, both transcoding and enhancement parameters must be configured simultaneously. It is recommended to use them in conjunction with Top Speed Codec (TESC).
Configure enhancement parameters in transcoding templates: You can create and manage custom transcoding templates via the console (refer to Template Settings) or by calling Server-side APIs.
Configure enhancement parameters in adaptive bitrate templates: You can create and manage custom transcoding templates via the console (refer to Template Settings) or by calling Server-side APIs.
Configure enhancement templates in workflows: You can create and manage workflow templates via the console (refer to Template Settings) or by calling Server-side APIs.

Initiating a Task

There are five ways to initiate a transcoding task, namely, directly initiating through server API, directly initiating through the console, and specifying a task upon upload. For more information, please see Video Processing Task System for video processing.
Methods of initiating transcoding tasks:
Call the server API ProcessMedia to initiate a task: specify the template ID in the MediaProcessTask.TranscodeTaskSet parameter in the request.
Initiate a task on a video through the console: add a task flow in the console, set the specifications of transcoding output in it, and use it to initiate video processing.
Specify a task upon upload from server: add a task flow in the console, set the specifications of transcoding output in it, and specify it as the procedure parameter in the ApplyUpload API.
Specify a task upon upload from client: add a task flow in the console, set the specifications of transcoding output in it, and specify it as the procedure parameter in the signature for upload from client.
Upload through console: add a task flow in the console, set the specifications of transcoding output in it, upload a video through the console, select Process Video During Upload, and specify to execute this task flow upon video upload completion.

Getting the Result

After initiating a transcoding task, you can wait for result notification asynchronously or perform task query synchronously to get the task execution result. Below is an example of getting the result notification in normal callback (the fields with null value are omitted):
{
"EventType":"ProcedureStateChanged",
"ProcedureStateChangeEvent":{
"TaskId":"1256768367-Procedure-2e1af2456351812be963e309cc133403t0",
"Status":"FINISH",
"FileId":"5285890784246869930",
"FileName":"动物世界",
"FileUrl":"http://1256768367.vod2.myqcloud.com/xxx/xxx/AtUCmy6gmIYA.mp4",
"MetaData":{
"AudioDuration":60,
"AudioStreamSet":[
{
"Bitrate":383854,
"Codec":"aac",
"SamplingRate":48000
}
],
"Bitrate":1021028,
"Container":"mov,mp4,m4a,3gp,3g2,mj2",
"Duration":60,
"Height":480,
"Rotate":0,
"Size":7700180,
"VideoDuration":60,
"VideoStreamSet":[
{
"Bitrate":637174,
"Codec":"h264",
"Fps":23,
"Height":480,
"Width":640
}
],
"Width":640
},
"MediaProcessResultSet":[
{
"Type":"Transcode",
"TranscodeTask":{
"Status":"SUCCESS",
"ErrCode":0,
"Message":"",
"Input":{
"Definition":220
},
"Output":{
"Url":"http://1256768367.vod2.myqcloud.com/xxx/xxx/v.f20.m3u8",
"Size":63120997,
"Container":"mov,mp4,m4a,3gp,3g2,mj2",
"Height":480,
"Width":640,
"Bitrate":513402,
"Md5":"084d403c73930ca2f835679af1f37bd3",
"Duration":60,
"VideoStreamSet":[
{
"Bitrate":473101,
"Codec":"h264",
"Fps":24,
"Height":480,
"Width":640
}
],
"AudioStreamSet":[
{
"Bitrate":48581,
"Codec":"aac",
"SamplingRate":44100
}
],
"Definition":220
}
}
}
],
"TasksPriority":0,
"TasksNotifyMode":""
}
}
In the callback result, ProcedureStateChangeEvent.MediaProcessResultSet contains the transcoding result with Type as Transcode and Definition as 220.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백