- Live-to-VOD configuration
- How many on-demand videos will be generated during recording?
- What is a recording and transcoding template?
- Can I disable transcoding?
- What does automatic production mean?
- What is the purpose of automatic production?
- If only one on-demand video is generated, will video production be performed?
- Is production asynchronous?
- What is a production and transcoding template?
- Can I perform video production without transcoding the produced video?
- What is the maximum number of videos that can be involved in automatic video production?
- What is the appropriate recording period?
To enable the live-to-VOD feature, you need to configure the recording feature in ApsaraVideo Live. Then, ApsaraVideo Live automatically records live streams and stores the recorded videos in ApsaraVideo for VOD. This topic describes how to flexibly configure the recording feature for live-to-VOD to meet requirements in different scenarios.
In the ApsaraVideo for VOD console, create the transcoding template required for processing videos recorded by ApsaraVideo Live. For more information, see Transcoding template.The following figure shows how to configure a transcoding template.
In the ApsaraVideo Live console, specify the live-to-VOD configuration. Select the template that you created earlier as the recording and transcoding template,as shown in the following figure.
- AppName: the name of the video application. The value that you enter must be the same as the AppName value in the ingest URL. If you want to record all the streams under a domain name, enter an asterisk (*).
- StreamName: the stream name. You can record a specified stream and store the recorded video in OSS. Enter the name of the specified stream. If you want to record all the streams for the video application, enter an asterisk (*).
- Recording Period: the interval for generating recordings. Valid values: 15 to 360, in minutes. That is, you can record a live stream uninterruptedly for a maximum of 6 hours. After 6 hours, the system saves the recording file and generates a new file to continue recording according to the recording naming rule. The default duration of a TS file is 30 seconds.
- Recording Setting: the recording and transcoding template. Each time an on-demand video is generated, ApsaraVideo for VOD can automatically transcode the video by using this template.
As live streaming goes on, an on-demand video is generated each time the recording period is reached. By default, the system considers that the live streaming ends when it is interrupted for three minutes. In this case, an on-demand video is also generated based on the content recorded until the interruption. For example, the recording period is set to 30 minutes and the live streaming is interrupted in 38 minutes after it starts. Then, a 30-minute video and an 8-minute video are generated in ApsaraVideo for VOD.
Each time an on-demand video is generated, ApsaraVideo for VOD can automatically transcode the video by using the recording and transcoding template. If the template specifies two streams of the standard and high definitions respectively, two streams are generated after a video is transcoded.
Note: The transcoding template must have been created in the ApsaraVideo for VOD console in advance.
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 video mezzanine file is returned when a user requests playback information. Generally, we recommend that you transcode on-demand videos. If the bitrate of a live stream is high, obvious frame freezing occurs during the playback of the on-demand video recorded from the live stream without transcoding. For on-demand videos that are not transcoded, you can manually submit a media processing task to transcode them.
Each time the recording period is reached, ApsaraVideo for VOD automatically generates an on-demand video. For example, if the recording period is set to 30 minutes, two on-demand videos are generated for a one-hour live streaming. If automatic production is enabled, ApsaraVideo for VOD automatically performs production based on the two on-demand videos when the live streaming ends. After the production, ApsaraVideo for 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.
For quick playback, you may set a short recording period, for example, 10 minutes. In this case, an on-demand video is generated every 10 minutes. That is, an on-demand video is available for playback in ApsaraVideo for VOD for the live streaming just in 10 minutes after it starts. You may also want to obtain a complete on-demand video for the live streaming after it ends. For this purpose, you can enable automatic production so that ApsaraVideo for VOD can automatically perform video production based on all the small on-demand videos. You can also manually call an online editing operation to perform video production.
After automatic production is enabled, ApsaraVideo for VOD performs video production no matter how many videos are generated. For example, if you set the recording period to 30 minutes but the live streaming lasts only 20 minutes, a 20-minute on-demand video is recorded in ApsaraVideo for VOD. In addition, a 20-minute video is produced from the only mezzanine file.
Yes. The production is asynchronous and takes a period of time. You can obtain the production result by receiving a callback event. For more information, see the best practices for the live-to-VOD feature.
Similar to transcoding of on-demand videos, ApsaraVideo for VOD can automatically transcode produced videos after automatic production is enabled. The production and transcoding template can be different from 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. In this way, intermediate on-demand videos are transcoded in a low bitrate for quick playback. The complete video of the live streaming is transcoded in multiple bitrates after the live streaming ends.
Yes. To perform video production without transcoding the produced video, use the No Transcoding template as the production and transcoding template.
Currently, automatic video production supports a maximum of 40 videos. For example, if the recording period is set to 1 hour, only the videos recorded within the last 40 hours are involved in automatic video production. Therefore, you shall set an appropriate recording period.
Each time the recording period is reached, ApsaraVideo for VOD automatically generates an on-demand video. If you do not need to provide on-demand videos for quick playback, we recommend that you use the default recording period, that is, 1 hour. You can set the recording period based on your business needs. Generally, we recommend that you set a recording period longer than 20 minutes.