All Products
Search
Document Center

ApsaraVideo Live:Console guide

Last Updated:Aug 21, 2024

This topic describes how to use a production studio instance in general mode for live streaming.

Prerequisites

Background information

  • The production studio feature is available in the China (Shanghai), China (Beijing), and Singapore regions. More regions will be supported. This topic describes how to configure a production studio instance in general mode and how to use the production studio instance for live streaming.

  • You can also call API operations to configure and use a production studio instance in general mode. For more information, see API guide.

Procedure

流程

The preceding figure shows how to use a production studio instance in general mode. The procedure consists of the following operations:

  1. Live stream settings: You can configure settings for live streams, such as the streaming domain name, output resolution, transcoding settings, and recording settings, in the production studio.

  2. Live streaming configurations: You must add media files and configure the output layout before you start live streaming.

  3. Live streaming: You can use PVW to preview mixed streams and use PGM for live outputs.

  4. Real-time production: You can use features, such as live subtitles, graphic packaging, and audio mixer, to configure live streams and adjust output effects.

Live stream settings

The procedure varies based on whether you want to configure a production studio instance immediately after you create it.

  • If you want to configure a production studio instance immediately after you create it, start from Step 2 to configure the live stream settings.

  • If you already have a production studio instance and you want to use the instance for live streaming, start from Step 1 to configure the live stream settings.

  1. Log on to the ApsaraVideo Live console. In the left-side navigation pane, choose Live + > Production Studios.

  2. On the Production Studio Management page, find the production studio instance that you created and click Open in the Actions column.进入

  3. Open the Studio Settings dialog box. The first time you enter the production studio page, the Studio Settings dialog box is displayed. You can also click Live Stream Settings in the upper-right corner of the production studio page to open the Studio Settings dialog box.

    通用型

    Parameter

    Description

    Domain

    Select a domain name for which a CNAME record is configured from the Domain drop-down list.

    Output

    Select the original resolution of the live stream from the Output drop-down list. Valid values: Low Definition 360p (640 × 360), Standard Definition 480p (854 × 480), High Definition 720p (1280 × 720), Ultra High Definition 1080p (1920 × 1080), Portrait Low Definition 360p (360 × 640), Portrait Standard Definition 480p (480 × 854), Portrait High Definition 720p (720 × 1280), and Portrait Ultra High Definition 1080p (1080 × 1920).

    Transcoding Specifications

    • Low Definition

    • Standard Definition

    • High Definition

    • Ultra High Definition

    Select one or more transcoding specifications for the live stream. Valid values: Low Definition, Standard Definition, High Definition, and Ultra High Definition.

    Note

    The resolution of the transcoded stream cannot exceed the resolution of the original stream. For example, if you select Low Definition for the Transcoding Specifications parameter, you can switch only between original quality and low definition during playback.

    Recording

    Optional. Turn on Recording to record live streams.

    Valid values: Automatic Recording and Manual Recording. If you select Automatic Recording, recording is automatically started after live streaming starts. If you select Manual Recording, you can start or stop recording based on your business requirements after live streaming starts.

    1. Specify the Object Storage Service (OSS) bucket in which you want to store the recording files.

      Note

      You can store the recording files only in an OSS bucket that resides in the same region as the production studio instance. Cross-region recording is not supported.

    2. Select one or more formats of the recording files.

    3. Specify the recording length. If you set the Recording Cycle parameter to 10 minutes, the system generates a recording file for a live stream every 10 minutes.

    Stream Delay

    Optional. Turn on Stream Delay to configure a delay for the output. The delay can range from 15 to 300 seconds.

    Standby Resource

    Optional.

    • Live Stream: Select Select Live Stream or Enter Streaming URL to specify a standby video.

    • VOD Resource: Click Select and select a video from the Video and Audio page in the ApsaraVideo VOD console. The selected video is played before live streaming starts or when an exception occurs during live streaming.

      Important

      If you use videos from ApsaraVideo VOD as video sources or standby videos, the videos must be stored in the same region as the production studio instance. For example, if the production studio instance is created in the China (Shanghai) region, you can use only ApsaraVideo VOD videos that are stored in the China (Shanghai) region as video sources or standby videos.

    • Image: Click Select from Media Library or Local Upload to specify a standby image. Supported image formats include JPG and PNG. The size of the image cannot exceed 10 MB.

    Multi-way Stream Relay

    Optional. Click Add URL to add a relay URL.

    Important
    • After you add or delete a relay URL, the stream relay settings take effect only after you restart PGM.

    • If your live stream uses the features of a third-party platform, you are charged additional fees for stream relay. By default, three relay URLs are provided free of charge for a domain name. If you specify more than three relay URLs, you are charged for the excess relay URLs. The pricing is the same as that of live center stream relay in ApsaraVideo Live. For more information, see Billing of stream relay.

Live streaming configurations

  1. Click Add Media File. In the Add Resource dialog box, you can select a live stream or a video from ApsaraVideo VOD as the video source.

    视频

    Adding MethodDescription
    Live Stream
    • Select Live Stream: After you select a domain name, the ingest URLs of all live streams under the domain name are displayed. You can select an ingest URL to add it to the production studio.
    • Enter Streaming URL: Enter a streaming URL in the RTMP, FLV, or RTS format.
    VOD
    1. Click Select and select a video from the displayed video files. Set the Loop parameter to Once or Loop.
    2. (Optional) Set Start Point for Switched Playback. This point in time takes effect only when you set the material and synchronize the material to PGM.
    3. Click OK.
    Note Before you can select on-demand video files from VOD, you must select on-demand video files that you want to add to the production studio on the Video and Audio page in the ApsaraVideo VOD console and choose More > Make Available on Cloud Studio in the Actions column. After the on-demand video files are uploaded and preprocessed, you can use the on-demand video files in the production studio. For more information about the preprocessing rules and billing methods, visit the ApsaraVideo VOD pricing page.
    Image
    • Select From Media Library: Click Select Image. In the dialog box that appears, select an image.
    • Local Upload: You can upload local images in the JPG or PNG format. The maximum size of each image is 10 MB. The uploaded images are stored in the media asset library of ApsaraVideo VOD.
    Local Stream IngestStream Ingest Mode:
    • Screen Sharing: Select an application window or desktop as the input source.
    • Camera: Use a local camera as the input source.

    Resolution: Select a resolution based on your business requirements.

  2. Configure the output layout.

    1. Click Layout. In the Add Layout dialog box, select a layout type, and then select a video source for each section in the layout.布局绑定

      Note

      Duplicate video sources are not allowed. You must select a unique video source for each position in the layout.

    2. After you start live streaming, click a layout that you created. The live streams are merged into a single stream and played in the layout that you configured.步骤

Live streaming

  1. Click Start. The PVW window displays the merged live stream.

    Important

    Billing for live streaming starts after you click Start in the upper-right corner. If you close the production studio page, the live streaming and PGM outputs are not terminated. The production studio instance continues to run and you continue to be charged for live streaming. You must click Stop to stop live streaming.

    Note

    The PVW window is used to preview and debug the live stream. The content displayed in this window is not available to the audience. You can click Synchronize to PGM to allow the audience to watch the live stream in the PGM window.

  2. Click Synchronize to PGM. The PGM window displays the live streams for the audience.

Real-time production

You can use the following operations to edit and adjust live streams and output effects in real time.

  1. Adjust the volume of the live stream.6

  2. Configure the subtitle style and translation.1111

  3. Add watermarks, logos, banner text, and live subtitles to the live stream.11

  4. Change the layout of video sources. You can create up to 20 layouts.3

  5. Click Switch to Standby. If an exception occurs during the live streaming, you can play a standby video to ensure a smooth viewing experience.11

References