Transcoding converts an audio or video file into one or more audio or video files to adapt to different network bandwidths, terminal devices, and user needs. The transcoding service of Intelligent Media Services (IMS) supports the standard transcoding, subtitle, audio and image enhancement, and watermark features. This topic describes the transcoding features of IMS and how to use these features.
Transcoding templates
Standard transcoding
Video transcoding refers to the process of converting a compressed stream into another stream to adapt to different terminals and network bandwidth and meet different user requirements. Transcoding is a process in which decoding and encoding are performed. Streams before and after transcoding may use the same or different video encoding standards.
The following table describes the standard transcoding methods supported by IMS.
Standard transcoding method | Description | Scenario |
Regular transcoding | Provides comprehensive video transcoding features to convert media files between multiple formats. You can choose different container formats, such as MP4, AVI, and MKV, and resolutions to adapt to different playback devices. | Scenarios in which long video content needs to be formatted. |
Audio transcoding | Audio transcoding provides a variety of processing capabilities, including converting audio files from one format to another. Audio transcoding also supports the extraction of audio streams from video files, and audio processing and enhancement. | Scenarios in which you need to convert audio files to different formats, adjust audio quality parameters, or extract audio from videos to meet the requirements of playback compatibility, storage optimization, and content production. |
Container format conversion | Container format conversion only converts the container format of videos and does not change the resolution or bitrate. | Scenarios in which you do not need to change the image size or bitrate of videos. |
Subtitle
A subtitle template is a transcoding template used to embed subtitles into a video. This type of template ensures that subtitles are part of the video and not an external file. This improves playback compatibility and user experience.
Audio and image enhancement
You can use the following audio and image enhancement methods to enhance the quality of input videos: noise reduction, color and contrast enhancement, super resolution, and transcoding standard dynamic range (SDR) videos to high dynamic range (HDR) videos. This way, viewer experience can be improved in terms of color, brightness, and definition. You can flexibly select the processing module and the processing intensity based on the characteristics of input videos.
The following table describes the audio and image enhancement methods supported by IMS.
Audio and image enhancement method | Description | Scenario |
Deinterlacing processing | After you remove the interlaced frames of an interlaced video such as odd or even frames, you can double the frame rate of the video to ensure that the frame rate of the output video is consistent with that of the input video. Then, you can transcode the interlaced video to a progressive video. | This method is suitable for scenarios in which an interlaced video needs to be transcoded to a progressive video. Interlaced videos include videos that are disseminated by using radio and television and produced many years ago. |
Multi-frame noise reduction | You can remove the time-domain noise of a video to make the video image cleaner and more stable in timing. | This method is applicable to most videos. We recommend that you enable the multi-frame noise reduction feature except for high-definition videos. You can adjust the noise reduction intensity by configuring a parameter. |
Compression artifact removal | You can remove the compression noise such as edge glitches and blocking artifacts caused by encoding and enhance edge and detailed textures. This way, the noise is reduced, and the image definition is improved. | This method is applicable to most videos. You can use this method to enhance the detailed textures of high-definition videos. |
Color and contrast enhancement | You can adjust the local contrast and global contrast of an image and increase the color clarity. | This method is applicable to most videos. You can adjust the saturation enhancement level by configuring the relevant parameter. |
Super resolution | You can enhance the resolution and edge texture of a video. This way, the overall video definition can be significantly improved. Double super-resolution and triple super-resolution are supported. | This method is applicable to most videos that require resolution enhancement. We recommend that you use this method together with the compression artifact removal method. |
Transcoding SDR videos to HDR videos | You can transcode regular SDR videos to HDR videos with a wide color gamut. This greatly improves the contrast, brightness, and color of the image. Hybrid log-gamma (HLG) HDR videos and perceptual quantizer (PQ) HDR videos are supported. | This method is suitable for scenarios in which SDR videos need to be transcoded to HDR videos. |
Watermark
IMS allows you to add watermarks to a video. During the video transcoding, you can add information such as images or text as watermarks to a video stream. Then, a new video file that has the watermarks is generated. You can add information such as enterprise or brand logos, TV station logos, user IDs, and nicknames as watermarks for video copyright declaration or brand promotion.
The following table describes the watermark types supported by IMS.
Watermark type | Description |
Image watermark | You can add static images in the PNG format and dynamic images in the GIF, APNG, and MOV formats as watermarks to videos. An image watermark can be displayed in a specific position throughout a video or within a specific period of time based on the start and end time that you specify. |
Text watermark | You can add one or more pieces of text as watermarks to videos. You can configure text properties such as the font, font size, color, transparency, and outline, and add different text content to different videos. |
If files are used as dynamic image watermarks, the file name extensions such as GIF, APNG, and MOV must be in lowercase. This limit is not applied to file name extensions of files that are used as static image watermarks.
The files that are used as watermarks and the video to which the watermarks are added must be stored on the same origin server. For example, videos that are stored on an origin server in the China (Shanghai) region can use only watermarks that are stored on the same origin server in the China (Shanghai) region. Videos cannot use watermarks that are stored in another region or on another origin server. For more information about how to add or configure storage addresses in a region, see Configure storage addresses.
Create a transcoding template
Use the IMS console
Create a transcoding task
Use the IMS console
Query the details of the transcoding task
Use callback information
Query the usage duration of the transcoding task
Log on to the IMS console.
In the left-side navigation pane, choose Data Center > Usage.
On the VOD Tasks tab, select Transcoding to query the details and export the usage data of the corresponding task.
NoteThe URL that is used to download the usage duration file is valid for 30 minutes. This ensures data security. If the URL expires, refresh the page to obtain another URL.






