Use audio and video enhancement to super-resolve AIGC-generated videos
Generating 1080P or 4K videos directly from AIGC models is computationally expensive and time-consuming. A more cost-effective approach is to generate videos at a lower resolution such as 720P, then use the audio and video enhancement capability of Intelligent Media Services (IMS) to upscale and restore them to 1080P or 4K through AI super-resolution (SR). Audio and video enhancement is an AI-powered transcoding type within on-demand media processing — it completes resolution upscaling and quality restoration within the transcoding pipeline without requiring a separate processing step. This tutorial provides step-by-step instructions for submitting super-resolution tasks through both the console and the API.
Use cases
The primary use case is super-resolution enhancement for AIGC-generated videos:
AIGC video cost reduction (primary) — Generate video segments at 720P or lower resolution using text-to-video or image-to-video models, then upscale to 1080P or 4K through audio and video enhancement. Compared to generating high-resolution output directly from the model, this approach reduces compute and time costs on the generation side while super-resolution restores clarity and detail.
AIGC output quality refinement — Repair and enhance common artifacts in generated videos such as edge blur, texture insufficiency, and mild compression distortion to improve visual quality for distribution.
Legacy media library remastering — Remaster standard-definition content from legacy media libraries into HD or UHD versions.
UGC and re-recorded content restoration — Restore quality for UGC or re-recorded content affected by heavy compression artifacts and noise.
Audio and video enhancement templates
IMS provides two preset audio and video enhancement templates that you can use directly without creating custom templates. Both templates are based on SR5 (the 5th generation of the super-resolution SR series) and differ in output resolution and bitrate:
Template name | Template ID | Output resolution | Bitrate | Video codec | Container | Use case |
MP4-HD-UHD-SR5 | S00000004-401040 | Width (adaptive) × Height 1080 | 6000 Kbps | H.264 | MP4 | 720P → 1080P |
MP4-4K-UHD-SR5 | S00000004-401070 | Width (adaptive) × Height 2160 | 14000 Kbps | H.264 | MP4 | 1080P → 4K |
In super-resolution templates, the Super Resolution switch is enabled by default with a magnification ratio of 2x. The output width is adaptive and the height is fixed (1080 or 2160). Additional enhancement capabilities such as decompression artifact removal, multi-frame noise reduction, color and contrast enhancement, and SDR-to-HDR conversion can be combined as needed. See the template details page for specifics.
The preset templates are system templates that only support the View operation — you cannot edit or delete them. To customize audio and video enhancement parameters, create a transcoding template.
Billing
Audio and video enhancement (super-resolution) costs more than standard transcoding. The super resolution is divided into files according to the output specification and is priced in yuan/frame. The higher the output resolution (such as 4K), the higher the unit price. The usage needs to be evaluated before submitting the task.
Billing dimensions: Pay-as-you-go charges are based on the unit price of the output specification (yuan/frame) × the number of processed frames. For the calculation method, see Billing example.
The console provides a Billing Details link on the template management page, task management page, and task creation page. Check the latest pricing for the current region before submitting a task.
Additional OSS storage and traffic fees apply. Factor these into cost estimates.
Start with a short test clip to verify that the output quality and processing time meet expectations before batch processing.
For the authoritative billing rates, see On-demand media processing billing and the Billing Details link in the console.
Prerequisites
Intelligent Media Services (IMS) is activated and basic configurations (such as media asset bucket and callbacks) are complete. For the basic on-demand transcoding workflow, see On-demand media transcoding tasks.
Object Storage Service (OSS) is activated. The source video files are uploaded to OSS, and the output directory is also on OSS.
To submit tasks through the API, prepare an AccessKey pair with the
ice:SubmitMediaConvertJobpermission.
Method 1: Submit through the console
For quick trials without writing code, the console is recommended. The process consists of two steps: view the available audio and video enhancement templates, then create a transcoding task.
Step 1: View audio and video enhancement templates
Log on to the IMS console.
In the left-side navigation pane, choose .
Click the Audio and Video Enhancement tab to view the two preset SR5 templates.
Click View on the right side of a template to open the template details page. Verify the basic parameters and audio and video enhancement parameters (such as whether super-resolution is enabled, the magnification ratio, and the output dimensions). Note the Template ID for use when submitting tasks through the API.
Step 2: Create a transcoding task
Log on to the IMS console.
In the left-side navigation pane, choose .
On the Transcoding tab, click Create Transcoding Task.
Configure the following parameters on the task creation page:
Parameter
Description
Task name
Optional. Up to 128 characters. Cannot contain spaces or emojis.
File source
Select Object Storage OSS and specify the OSS path of the source video. Alternatively, select Media Asset Management to choose a media asset.
Select Template
Select Audio and Image Enhancement, then select the target template from the list (for example,
MP4-HD-UHD-SR5).Output location
When the file source is OSS, the output location is automatically set to Custom. Specify the output OSS storage address.
Output file name
Required. Use an English file name that includes the file extension.
Click Save to submit the task.
The task creation page displays a notice stating that audio and video enhancement generates UHD or restored versions from existing standard-definition or damaged content, and that transcoding costs are higher than standard transcoding. Review the Billing Details before submitting.
After you click Save, the task appears in the task management list with a processing status. Monitor the task on this list (which displays tasks from the last 180 days). When the task completes, retrieve the super-resolved output from the specified OSS path.
Method 2: Submit through the API
For batch processing or integration into existing systems, use the SubmitMediaConvertJob API operation. This is an asynchronous operation that returns a JobId. Query the result through GetMediaConvertJob or configure event callbacks to receive notifications.
Submit a task
Specify the audio and video enhancement template ID in the TemplateId field of each Output within the Config parameter. The following example upscales a 720P AIGC-generated video to 1080P using the MP4-HD-UHD-SR5 template.
Parameter | Required | Description |
Config | Yes | Transcoding task configuration as a JSON string. Contains Inputs and Outputs (or OutputGroups). |
PipelineId | No | Pipeline ID for task scheduling and concurrency control. |
UserData | No | Custom user data returned as-is in callbacks. |
The following sample shows the Config JSON structure:
{
"Inputs": [
{
"InputFile": {
"Type": "OSS",
"Media": "oss://your-bucket/input/aigc-video.mp4"
}
}
],
"Outputs": [
{
"OutputFile": {
"Type": "OSS",
"Media": "oss://your-bucket/output/aigc-video-1080p-sr5.mp4"
},
"TemplateId": "S00000004-401040",
"Name": "sr5-1080p"
}
]
}To produce multiple output tiers simultaneously (for example, both 1080P and 4K), add another Output to the Outputs array with the TemplateId set to the 4K template S00000004-401070 and a different output file name.
Run the following CLI command to submit the task:
aliyun ice SubmitMediaConvertJob \
--region cn-shanghai \
--Config '{"Inputs":[{"InputFile":{"Type":"OSS","Media":"oss://your-bucket/input/aigc-video.mp4"}}],"Outputs":[{"OutputFile":{"Type":"OSS","Media":"oss://your-bucket/output/aigc-video-1080p-sr5.mp4"},"TemplateId":"S00000004-401040","Name":"sr5-1080p"}]}'Sample response:
{
"RequestId": "E197ECFB-...",
"JobId": "88c6ca184c0e47098a5b665e2a12****"
}Query task results
Use the JobId returned in the previous step to call GetMediaConvertJob and query the task status and output information:
aliyun ice GetMediaConvertJob --region cn-shanghai \
--JobId "88c6ca184c0e47098a5b665e2a12****"When Job.Status is Success, the task is complete and the super-resolved output is available at the specified OSS path. Alternatively, configure event callbacks on the IMS side to automatically receive MediaConvertComplete notifications without polling.
Super-resolution tasks (especially 4K output) are computationally intensive and typically take longer than standard transcoding. Use callbacks rather than frequent polling to retrieve results.
FAQ
Q: Is the super-resolved output resolution always exactly 1080P or 4K?
The preset templates fix the output height to 1080 or 2160, with the width adapted proportionally to the original aspect ratio, will not zoom in infinitely by magnification. The output of 16:9 horizontal screen video is 1920 × 1080 or 3840 × 2160. Vertical screen or other scale video, the output width is scaled, not necessarily the standard 1080P or 4K size. For example, the 9:16 vertical screen video uses the MP4-4K-UHD-SR5 template, and the output is about 1215 × 2160. Before batch processing, it is recommended to test run with a piece of film source to confirm the output size.
Q: Why does processing take longer than standard transcoding?
Super-resolution performs AI-based quality reconstruction within the transcoding pipeline, which requires significantly more computation, especially for 4K output. Use callbacks to receive results instead of polling.
What's next
On-demand media transcoding tasks: Learn more about the standard on-demand transcoding workflow.
SubmitMediaConvertJob: View the complete API parameter reference for submitting media conversion tasks.
Transcoding templates: Learn about template parameters and custom template creation.
On-demand media processing billing: View detailed pricing information.