All Products
Search
Document Center

ApsaraVideo VOD:FAQ about live-to-VOD

Last Updated:Mar 28, 2024

This topic provides answers to some commonly asked questions about the live-to-VOD feature.

How many on-demand videos are generated during recording?

The number of videos generated during a live stream varies based on the recording period that you specify and the number of interruptions during the live stream. During a live stream, an on-demand video is generated each time the recording period is reached. By default, the system considers a live stream to end after a three-minute interruption. In this case, an on-demand video is generated based on the content recorded until the interruption.

For example, the recording period is set to 30 minutes and the live stream is interrupted 38 minutes after it starts. In this case, ApsaraVideo VOD generates a 30-minute video and an 8-minute video.

What is a recording and transcoding template?

A recording and transcoding template can be used by ApsaraVideo VOD to automatically transcode on-demand videos whenever they are generated.

If the template specifies a standard and a high definition stream, two streams are generated after a video is transcoded.

Important

You must create the transcoding template in the ApsaraVideo VOD console before a live stream starts.

Can on-demand videos be generated without being transcoded?

Yes. To generate on-demand videos without transcoding, you can use the No Transcoding template as the transcoding template. In this case, an on-demand video is not transcoded, and the URL of the mezzanine video file is returned when a user requests playback information. Only videos in the following formats can be played without transcoding: MP4, FLV, M3U8, MP3, and WEBM.

Important

We recommend that you transcode on-demand videos. If a live stream has a high bitrate, frame freezing may frequently occur during the playback of the on-demand video recorded from the live stream that is not transcoded. For on-demand videos that are not transcoded, you can manually submit a media processing task to transcode them later. For more information, see Audio and video transcoding.

What is automatic production?

Automatic production refers to the process where ApsaraVideo VOD automatically generates an on-demand video each time the recording period is reached.

For example, if the recording period is set to 30 minutes, two on-demand videos are generated for a one-hour live stream. If automatic production is enabled, ApsaraVideo VOD automatically produces a video based on the two on-demand videos when the live stream ends. After the production, ApsaraVideo VOD returns the ID of the produced video in callback mode. In this case, you obtain three videos in total, including two on-demand videos and one merged video.

When do I enable automatic production?

You can enable automatic production when you want to obtain a complete on-demand video for a live stream. For quick playback, you may set a short recording period such as 10 minutes.

In this case, an on-demand video is generated in ApsaraVideo VOD for playback every 10 minutes after the live stream starts. You can enable automatic production so that ApsaraVideo VOD can automatically merge all 10-minute on-demand videos into a single video. You can also manually call an online editing operation to perform video production.

Is video production performed if only one on-demand video is generated?

After automatic production is enabled, ApsaraVideo VOD performs video production regardless of the number of videos generated.

For example, if you set the recording period to 30 minutes but the live stream lasts for only 20 minutes, a 20-minute on-demand video is recorded in ApsaraVideo VOD. In addition, a 20-minute video is produced from the only mezzanine file.

Is production asynchronous?

Yes. The production process is asynchronous and requires a specific period of time to complete. You can obtain the production result by receiving a callback event. For more information, see Live to VOD.

What is a production and transcoding template ID?

A production and transcoding template ID is the ID of a transcoding template after you enable automatic video production. ApsaraVideo VOD can automatically transcode produced videos after automatic production is enabled, which is similar to transcoding of on-demand videos.

Note

The ID of the production and transcoding template can be different from the ID of the recording and transcoding template.

For example, you can select a recording and transcoding template to generate only one stream of the standard definition for quick playback. For a produced video, you can select a production and transcoding template to generate streams of multiple definitions, such as high definition, ultra high definition, and 2K. This way, intermediate on-demand videos are transcoded in a low bitrate for quick playback. The complete video of the live stream is transcoded in multiple bitrates after the live stream ends.

Can I perform video production without transcoding the produced video?

Yes. To perform video production without transcoding the produced video, use the No Transcoding template as the production and transcoding template.

What is the maximum number of videos that can be merged in automatic video production?

Up to 40 videos can be merged in automatic video production. For example, if the recording period is set to one hour, only the videos recorded within the first 40 hours are merged in automatic video production. Therefore, we recommend that you set an appropriate recording period.

What is an appropriate recording period?

One video is generated after a recording period ends. For example, you set the recording period to 30 minutes. If the live streaming duration is 20 minutes, one video is generated in ApsaraVideo VOD. If the live streaming duration is 70 minutes, three videos are generated in ApsaraVideo VOD.

We recommend that you set the recording period to the default value of one hour if you do not need on-demand videos for quick playback. You can set the recording period based on your business needs. Generally, we recommend that you set a recording period longer than 20 minutes.