All Products
Search
Document Center

Select a transcoding type based on your transcoding scenario

Last Updated: Jul 11, 2019

Background

When addressing diverse transcoding needs of users in different industries, how can we transform the custom requirements specific to their business characteristics into universalized requirements, convert the requirements into deliverable products, and then apply these products to other users? This is what ApsaraVideo for VOD is designed for. ApsaraVideo for VOD provides a transcoding solution that is suitable for various business scenarios. It abstracts users’ custom scenario requirements to deal with the same or similar scenario requirements of other ApsaraVideo for VOD users.

Preparations

To use the Template Group for Video Store without Transcoding and Template Group for Video Delivery and Transcoding, contact ApsaraVideo for VOD technical support.

Terms

  • File upload: indicates uploading files to ApsaraVideo for VOD. You can upload files through the upload SDK, recording feature of ApsaraVideo Live, and short video SDK. You can also manually upload files after obtaining the credential through the API.
  • Transcoding: indicates encoding the content of uploaded files, including video and audio files, based on the specified encoding parameters.
  • Online editing: indicates editing files that are uploaded to ApsaraVideo for VOD online, such as splicing and cropping files.
  • AI processing: indicates AI processing of videos that are uploaded to ApsaraVideo for VOD, such as automated review, content analysis (tag analysis, speech recognition, and text recognition), intelligent thumbnail, and news segment extraction.
  • CDN acceleration: indicates delivering the content of files to CDN nodes across the network to accelerate content access and improve user experience.
  • Videos of different specifications: indicate transcoded videos that have different encoding parameter settings such as resolutions and bitrates. Videos of different specifications are applicable to different network bandwidth environments.
  • Template Group for Video Delivery after Transcoding: After a video is uploaded by using this template group, the mezzanine file is transcoded to generate videos of different specifications. Then, the video is CDN accelerated for playback on terminals.
  • Template Group for Video Delivery and Transcoding: After a video is uploaded by using this template group, the mezzanine file is CDN accelerated for playback on terminals. At the same time, the mezzanine file is transcoded to generate videos of different specifications.
  • Template Group for Video Delivery without Transcoding: After a video is uploaded by using this template group, the mezzanine file is CDN accelerated for playback on terminals, but is not transcoded.
  • Template Group for Video Store without Transcoding: After a video is uploaded by using this template group, the mezzanine file is only stored in OSS and cannot be CDN accelerated for playback on terminals. In addition, no transcoding is triggered.

Normal transcoding

Asynchronous processing and delayed playback

After a video is uploaded to ApsaraVideo for VOD, it is transcoded to generate videos of different specifications to adapt to different network bandwidth environments and different terminals. Then, the video is CDN accelerated and played on the terminal.
Method: Log on to the ApsaraVideo for VOD console and choose Global Settings > Transcode. Create a transcoding template group, set it as the default one, and upload the video. ApsaraVideo for VOD automatically completes the subsequent process.
The following figure shows the video processing flowchart in this scenario.normal-transcode

Delivery without transcoding

Fast delivery: real-time playback of short videos without transcoding

For videos that are recorded and uploaded through the short video SDK, their encoding settings can basically adapt to different network bandwidth environments and terminals. Therefore, you can directly perform CDN acceleration without transcoding the videos. This not only accelerates the responses to users’ playback requests, but also saves your transcoding cost.
Method: Log on to the ApsaraVideo for VOD console and choose Global Settings > Transcode. Activate the Template Group for Video Delivery without Transcoding, set it as the default one, and upload the video.
The following figure shows the video processing flowchart in this scenario.no-transcode

Delivery and transcoding

Fast delivery + asynchronous transcoding: real-time playback and delayed output of videos of different definitions

After a video is uploaded to ApsaraVideo for VOD, the mezzanine file can be CDN accelerated for playback on terminals. This accelerates the responses to users’ playback requests. However, to generate videos of different specifications to adapt to different bandwidth environments and terminals, the transcoding process can be triggered simultaneously. After videos of different specifications are generated, they can replace the mezzanine files for playback to improve user playback experience.
Method: Contact ApsaraVideo for VOD technical support to provide the Template Group for Video Delivery and Transcoding and set it as the default one. Then, upload the video. ApsaraVideo for VOD automatically completes the subsequent process.
The following figure shows the video processing flowchart in this scenario.transcode-cdn

Storage only without transcoding

Storage only + asynchronous transcoding: material editing and optional transcoding

After a video is uploaded to ApsaraVideo for VOD, it can be stored in the bucket in ApsaraVideo for VOD without transcoding or CDN acceleration. You can asynchronously transcode the video later or import it as a material for online editing to generate a new output video. For example, a live stream can be recorded and stored in ApsaraVideo for VOD as a material for online editing. The highlight clips of the recorded live stream can be extracted and merged into a video, which can be then transcoded to generate videos of different specifications.
Method: Contact ApsaraVideo for VOD technical support to provide the Template Group for Video Store without Transcoding and set it as the default one. Then, upload the video. You can also call the SubmitTranscodeJobs operation to transcode the video as needed.

Note: If you call the SubmitTranscodeJobs operation to transcode a video, you cannot set the TemplateGroupId parameter to the ID of the Template Group for Video Store without Transcoding. This is because the Template Group for Video Store without Transcoding does not support any transcoding processes. Instead, set the TemplateGroupId parameter to the ID of a new or existing transcoding template group that contains the template configuration required for producing videos of different definitions.

The following figure shows the video processing flowchart in this scenario.storage