LVB Recording

Last updated: 2021-01-19 17:44:22

    The LVB recording scheme is a standardized service that stores the files generated by muxing original streams (without modifying such information as audio and video data and corresponding timestamps) on the VOD platform, where the recording files can be processed, distributed, and played back.

    Features

    • Based on the capabilities of LVB, it can quickly record and store live streaming content on the VOD platform for secondary production and distribution.
    • Relying on Tencent Cloud's leading AI technologies in audio and video and globally deployed cache nodes, it provides top-notch audiovisual services such as professional and stable live push, transcoding, distribution, and playback that fully meet the requirements for ultra-low latency, ultra-high image quality, and ultra-high performance to sustain massive volumes of concurrent requests.
    • It can quickly distribute your live streaming events to various scenarios and applications.
    • It is suitable for many industry-specific scenarios such as corporate live streaming, ecommerce live streaming, and education live streaming. It can deliver video content through many channels such as WeTV.

    Prerequisites

    • Sign up and log in to a Tencent Cloud account and complete identity verification.
    • Activate the LVB and VOD services.

    Directions

    Step 1. Create a recording template

    To use the LVB recording feature, you need to create a recording template first. The configuration of LVB recording is saved in the recording template. You can create recording templates with different configurations to achieve effects such as different formats and recording file durations.

    1. Click Create Recording Template and select the desired recording file type (select at least one). For more information on the configuration items, please see Creating Recording Template.
      1. Click Save.
    • Creation through an API:
      You can call the CreateLiveRecordTemplate API to create a recording template. The corresponding template ID will be returned after the template is created successfully.

    Step 2. Select a recording scheme

    LVB offers the following schemes for calling the LVB recording feature in different scenarios:

    Scheme 1. Specified domain name global recording

    You can bind your LVB recording template to a push domain name in the LVB console or by calling an API, and streams pushed through the domain name will be recorded automatically.

    • Use cases: show live streaming, ecommerce live streaming, online classroom, and video surveillance.
    • Steps:
      1. After creating a recording template, you will be prompted to bind a domain name. You can click Bind Domain Name and select a push domain name.
    1. In Domain Management, click your LVB push domain name to enter the push details page. Select Template Configuration > Recording Configuration and click Edit to bind the push domain name. For more information, please see Binding Recording Template.
      1. Pass in the template ID of the recording template and the push domain name through the CreateLiveRecordRule API.

    Scheme 2. Specified stream recording

    You can bind your LVB recording template to a specified live stream through an API for recording.

    • Use cases: event live streaming, exhibition live streaming, sports live streaming, and live streaming through mic connect.
    • Steps: you can create a recording rule through the CreateLiveRecordRule API by passing in the template ID of the recording template and the target domain name, path, and StreamName (exact matching is required). This way you can bind your recording template to a specified live stream.

    Scheme 3. Specified time period recording

    You can set the start time and end time through API calls to record a stream within the specified time period.

    • Use cases: news live streaming and event live streaming.
    • Steps: you can create a recording task through the CreateRecordTask API by passing in the template ID of the recording template and the target domain name, path, StreamName (exact matching is required), and start time and end time for recording.

    Scheme 4. Real-time recording (stream mix-based recording is supported)

    You can record any frame of a stream in real time through API calls.

    • Use cases: scenarios where only segments need to be recorded (or clipped after global recording), such as sports live streaming and game live streaming.
    • Steps: you can create a recording task through the CreateRecordTask API by passing in the template ID of the recording template and the target domain name, path, StreamName (exact matching is required), and end time for recording.

    Scheme 5. Pure audio recording

    You can configure audio recording in .aac format if the push is pure audio.

    • Use cases: audio live streaming and audio mic connect.
    • Steps: you can select the .aac format as the recording file type and bind the corresponding push address when creating a recording template.

      Note:

      A binding rule will take effect in about 5 to 10 minutes after creation. Any change of the binding rule will not affect live streams that are being pushed and will apply only to new live streams.

    Step 3. Push a live stream

    After binding the recording template with the push domain name as instructed in Step 2, generate the corresponding push domain name from the push address and start LVB push.

    After the live stream is over, the recording file will be stored on the VOD platform.

    Note:

    • If you have selected "Record to subapplication" in your recording template, the recording file will be stored in the corresponding subapplication.
    • If you want to call back the address information of the recording file, you need to create a callback template before the push, enter the recording callback address and save it, and bind the target push domain name. For more information, please see Recording Event Notification.

    Step 4. Get a recording file

    You can query and get a recording file through:

    • Recording callback: before pushing a live stream, you need to configure a callback template (with a recording callback address). The file will be sent to the callback server through a callback when the recording file is generated. For more information, please see Recording Event Notification.
    • VOD console: you can query a recording file in the VOD console. For more information, please see Viewing Videos.
    • VOD API: you can call the SearchMedia API to query a file.

    Step 5. Process the recording file

    Scheme 1. LVB recording + automatic transcoding + video playback acceleration

    • Use cases: the recording file of a live stream can be immediately transcoded and accelerated automatically for viewers to play back on demand. This scheme is suitable for most live streaming scenarios where no video processing is required.
    • Steps:
      1. Push a live stream.
      2. Record the file automatically to VOD.
      3. Get the VOD FileId and video callback information.
      4. Use the configured template to transcode the recording file automatically.
      5. After the transcoding is completed, get the playback address for subsequent playback.

    Scheme 2. LVB recording + manual transcoding + video playback acceleration

    • Use cases: if you only want to store the recording file of a live stream to VOD without transcoding it right away, you can create a recording task without adding other operations. If you want to transcode the video later, you can trigger the transcoding operation manually and use the on-cloud clipping feature in combination to achieve better results.

    • Steps:

      1. Push a live stream.
      2. Record the file automatically to VOD.
      3. Get the VOD FileId.
      4. Configure a task flow and clip the video.
      5. Get the video address for subsequent playback after the transcoding and processing are finished.

    Scheme 3. LVB recording + adaptive bitrate streaming + video delivery acceleration + superplayer

    • Use cases: if you have high requirements for video security that cannot be satisfied through HLS encryption, you can use self-adaption and superplayer in combination to further enhance the video security. This scheme is highly suitable for online education and corporate training.

    • Steps:

      1. Push a live stream.
      2. Record the file automatically to VOD.
      3. Get the VOD FileId.
      4. Configure a transcoding template or task flow to perform adaptive bitrate streaming.
      5. Configure the superplayer.
      6. Play back the video through FileId.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help