The live-to-VOD feature synchronously records live streams into on-demand videos and supports various operations. The operations include media asset management, media processing (transcoding and AI processing such as content moderation and intelligent thumbnail), content production (online editing), and CDN acceleration. You can configure live-to-VOD as an automatic workflow or flexibly start live-to-VOD processing by using the API or SDK.
ApsaraVideo Live records live streams and stores the recorded videos in ApsaraVideo for VOD for management.
Under the same CDN domain name of ApsaraVideo Live, live-to-VOD configurations of live streams are distinguished by their AppName and StreamName parameters. That is, all live streams with the same application name and stream name use the same live-to-VOD configuration specified for the application name and stream name.
Activate ApsaraVideo for VOD. For more information, see the activation guide.
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.
Activate ApsaraVideo Live. For more information, see the activation guide.
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.
Note:For more information about transcoding templates and production templates in the live-to-VOD configuration, see Live-to-VOD configuration.
After the preceding preparations, you can start to use the live-to-VOD feature.
Note:When a stream is interrupted, the system waits for 180 seconds before stopping recording the stream. The purpose is to avoid unexpected truncation of recorded videos caused by network jitter or temporary stream interruption. If a stream is re-ingested within 180 seconds after interruption, the system considers that the new stream is the original stream by default. If a stream is re-ingested after 180 seconds, the system considers that the new stream and original stream are two different streams.
After live streams are recorded into on-demand videos, ApsaraVideo for VOD manages the recorded content in the video dimension and provides various media processing capabilities. You can query recorded videos in multiple ways.
In the ApsaraVideo for VOD console, set Source to ApsaraVideo Live to view recorded videos, as shown in the following figure.
In the ApsaraVideo Live console, go to the Recordings Management page and query recorded videos based on the AppName and StreamName parameters, as shown in the following figure.
ApsaraVideo for VOD sends callback events when live streams are recorded. You can obtain information about the newly recorded videos from the callback events. For more information, see AddLiveRecordVideoComplete.
ApsaraVideo for VOD provides the ListLiveRecordVideo operation for you to query recorded videos based on the domain name, application name, and stream name. For more information, see ListLiveRecordVideo.
Compared with the traditional mode of storing recorded videos in OSS, storing recorded videos in ApsaraVideo for VOD has the following advantages:
- One-stop video production: ApsaraVideo for VOD supports automatic transcoding and CDN delivery for recorded videos, providing a one-stop video production process.
- Various media asset management capabilities: ApsaraVideo for VOD manages recorded videos in the video dimension and provides various media asset management capabilities.
- Powerful content production capabilities: Using the online editing service of ApsaraVideo for VOD, you can directly edit recorded videos online, eliminating the need for traditional production processes.
- Media processing such as automated review and AI: Based on its powerful AI capabilities, ApsaraVideo for VOD can perform processing such as automated review, intelligent thumbnail, and media fingerprint on recorded videos.