Create a high-speed transcoding job

更新时间:
复制 MD 格式

A high-speed MPS queue splits a video source into smaller segments and transcodes them in parallel, increasing the transcoding speed by 5 to 30 times. This approach is ideal for time-sensitive scenarios such as news and events.

Background information

ApsaraVideo Media Processing (MPS) provides an offline transcoding service that requires a complete video file before it can start a transcoding job. The following figure shows a common video transcoding process:

image

Factors that affect the transcoding duration

The transcoding duration varies based on video duration, file size, transcoding parameter complexity, and job priority. Examples:

  • Videos with longer duration, larger size, or higher frame rate, bitrate, and resolution take more time to transcode.

  • Videos with more complex codecs and higher compression ratios take more time to transcode. In most cases, AV1 transcoding takes longer than H.265, which in turn takes longer than H.264.

  • More complex jobs take more time. In most cases, audio and video enhancement jobs take longer than video transcoding jobs, which take longer than audio transcoding jobs. Audio transcoding jobs take longer than container format conversion jobs.

  • If the number of submitted jobs exceeds the limit or computing resources are insufficient, lower-priority jobs are queued behind higher-priority ones, increasing their overall processing time.

High-speed transcoding

Excluding queuing and transmission bandwidth, video stream processing is the most time-consuming part of most transcoding jobs. Accelerating video stream processing is the key to faster transcoding.

For video stream transcoding jobs, MPS uses an intelligent transcoding engine and cloud resource scheduling to split the video source into multiple smaller segments and use multiple transcoders to process them in parallel. This significantly reduces processing time. The following figure shows how this works:

image

Features

Type

Description

Speed boost

Transcoding speed can be boosted by 5 to 30 times depending on the input video properties. You can specify the expected speed boost for an MPS queue, such as 5x, 10x, 20x, or 30x.

Note

Actual speed boost = Video duration / Transcoding duration.

Video duration is the total duration of the output video. Transcoding duration is the time from job submission to job completion.

Related videos

High-speed transcoding supports only specific video types and transcoding configurations. We recommend that you use it for videos longer than 30 minutes, or videos that require high frame rates, ultra high definition, and audio-visual enhancement. For more information, see Limits.

Acceleration Policy

If you submit a video that does not support high-speed transcoding to a high-speed MPS queue, the video is transcoded at regular speed by default. You can also configure the system to skip the video.

Billing

When you use a high-speed MPS queue, you are charged additional high-speed transcoding fees based on the output video's specifications, duration, and actual speed boost, in addition to standard audio and video transcoding or enhancement fees. For more information, see High-speed transcoding.

Procedure

For detailed steps and parameter descriptions, see Create a standard transcoding job. For the MPS queue settings, follow the instructions below.

  1. You can enable the pipeline.

    1. Log on to the ApsaraVideo Media Processing console. In the navigation pane on the left, choose Global Settings > MPS Queue and Callback to open the MPS Queue page and create an MPS queue.

    2. Click Create MPS Queue, select Speed Transcoding as the MPS queue type, and then configure the speed limit and conditional transcoding policy.

  1. Create a high-speed transcoding job.

    When you submit a transcoding job in the MPS console, by calling an API operation, or by creating a workflow, specify an MPS queue for high-speed transcoding as the MPS queue to use.