• How to scale Wowza Streaming Engine with Wowza Streaming Cloud CDN delivery

    With Wowza Streaming Engine™ live streaming software (version 4.3 and later), you can use the Stream Targets feature to send a single stream or a group of transcoded renditions of a live stream from a Wowza Streaming Engine instance directly to a Wowza Streaming Cloud™ CDN endpoint. This allows you to bypass transcoding in the Wowza Streaming Cloud service and just use the Wowza Streaming Cloud edge network to deliver the stream to viewers.

    This article explains how to send a stream or a group of transcoded stream renditions to a Wowza Streaming Cloud CDN endpoint over RTMP.

    Notes:
    • Using stream targets requires Wowza Streaming Engine 4.2 or later. Sending streams directly to Wowza Streaming Cloud CDN endpoints requires Wowza Streaming Engine 4.3 or later and a Wowza Streaming Cloud subscription.

    • Important: For instructions on how to send a stream from Wowza Streaming Engine to Wowza Streaming Cloud for transcoding and delivery to one or more stream targets in Wowza Streaming Cloud, see How to send a live stream to Wowza Streaming Cloud for transcoding.

    Contents


    Video tutorial: Send a stream from Wowza Streaming Engine to Wowza Streaming Cloud CDN
    Configure Wowza Streaming Cloud to receive and distribute the stream(s) as a CDN
    Create a live application in Wowza Streaming Engine to ingest the live source video
    (Optional) Configure Wowza Streaming Engine to transcode the source stream
    Create a stream target to send a stream or group of renditions to Wowza Streaming Cloud CDN endpoints
    Enable Stream Targets
    Test the connection
    More resources

    Video tutorial: Send a stream from Wowza Streaming Engine to Wowza Streaming Cloud CDN





    Configure Wowza Streaming Cloud to receive and distribute the stream as a CDN


    Start by creating a live stream in Wowza Streaming Cloud that uses Wowza Streaming Engine as the video source.

    1. Sign in to Wowza Streaming Cloud.

    2. Click the Live Streams tab, and then click Add Live Stream.



    3. On the Live Stream Setup page, enter a Live Stream Name, choose a Broadcast Location, and then click Next.

    4. On the Video Source and Transcoder Settings page, select Wowza Streaming Engine as the source you want to use to connect to Wowza Streaming Cloud.



    5. Under Do you want to stream directly to Wowza Streaming Cloud CDN?, make sure Yes is selected. Your stream will go directly to a Wowza Streaming Cloud CDN endpoint and won't be transcoded by Wowza Streaming Cloud.



    6. Specify other video source settings, click Next, and complete the steps to finish creating the live stream.

    Wowza Streaming Cloud creates the live stream and displays the Overview tab of the live stream detail page. You'll use the Connection Code that appears under the Video Snapshot when you configure the live application in Wowza Streaming Engine. The Connection Code begins with a 1 when Wowza Streaming Cloud is configured for CDN delivery.



    Create a live application in Wowza Streaming Engine to ingest the live source video


    Next, create a live application in Wowza Streaming Engine that will receive the live stream from an H.264 encoder or camera and send it to Wowza Streaming Cloud for distributed delivery.

    1. Sign in to the Wowza Streaming Engine Manager, click the Applications tab at the top of the page, and then click live in the contents panel.

      Note: This article uses the live application that installs with Wowza Streaming Engine. If you want to use a different live application, select it instead from the contents panel.
    2. In the contents panel, click Sources (Live).

    3. Select the camera or encoder that you want to use as your video source, and complete the process of connecting the source to Wowza Streaming Engine. For more information, see Managing live source authentication settings.

      Note: By default, Wowza Streaming Engine requires RTMP and RTSP sources to provide a user name and password to connect to a live application. For information on how to turn off authentication, see Managing live source authentication settings.

    (Optional) Configure Wowza Streaming Engine to transcode the source stream


    Next, if you want to transcode the source stream in Wowza Streaming Engine and send a group of transcoded renditions to a Wowza Streaming Cloud CDN endpoint, enable the Transcoder and configure the transcoder templates.

    Note: If you send the source stream directly to Wowza Streaming Cloud CDN (without transcoding it in Wowza Streaming Engine), this isn't necessary. Skip ahead to Create a stream target to send a stream or group of renditions to Wowza Streaming Cloud CDN endpoints.
    To ensure that the stream renditions are sent as a group, append the same name to the beginning of each Encoding Preset in the transcoder template and then enter that prefix in the Source Stream Name Prefix field when creating the stream target.

    For more information, see How to set up and run Wowza Transcoder for live streaming.

    Create a stream target to send a stream or group of renditions to Wowza Streaming Cloud CDN endpoints


    After creating an application (and optionally enabling the Transcoder feature in Wowza Streaming Engine), you must create a stream target to send the stream or group of transcoded stream renditions to Wowza Streaming Cloud.

    1. In the contents panel of Wowza Streaming Engine Manager, click Stream Targets and then click Add Stream Target.

    2. On the Select Destination page, select Wowza Streaming Cloud and then click Next.

    3. On the Destination Options page, enter the single-use, six-digit code generated by Wowza Streaming Cloud that's available on the Overview tab of the live stream detail page in Wowza Streaming Cloud. Click Next.

    4. On the Configure Target page, provide the following information:

      • Stream Target Name - A descriptive name for this target setup in Wowza Streaming Engine. The name must be unique and can't contain less-than (<), greater-than (>), colon ( : ), quotation (' and "), forward slash (/), backslash (), pipe (|), question mark (?), asterisk (*), double-dot (..), or tilde (~) characters.

      • Source Stream Name Prefix - The beginning of the stream name.

        • If you are sending a single stream to Wowza Streaming Cloud, enter the name of the incoming stream minus the last character that you specified in Wowza Streaming Engine when you set up the video source. For example, if the source stream is named myStream, enter myStrea.

          Notes:
          • The stream target won't work if you enter the exact stream name as the Source Stream Name Prefix. The stream name must begin with the Source Stream Name Prefix value, but can't match it exactly.

          • The stream name minus the last character must be unique to the stream. If any other streams also begin with the Source Stream Name Prefix that you enter, they will be treated as a group of transcoded stream renditions and sent to Wowza Streaming Cloud as well.
        • If you are sending a group of transcoded stream renditions to Wowza Streaming Cloud, enter the prefix appended to the beginning of each Encoding Preset in the transcoder template. For transcoded streams, all bitrate stream renditions beginning with the specified prefix will be sent to the Wowza Streaming Cloud destination as a group. Note that exact matches to the prefix are excluded to avoid unintentionally sending the original source stream.

      • Destination Server - The destination entry point that the stream will be sent to. You can send the stream to the primary entry point, the backup entry point, or to both the primary and backup (redundant) entry points.

    5. Click Finish.

    Enable Stream Targets


    Before you stream, you must enable the Stream Targets feature for the Wowza Streaming Engine application and Wowza Streaming Cloud stream target you created.

    If you don't see a checkmark next to Stream Targets in the contents panel of the application, click Stream Targets in the contents panel and then click Enable Stream Targets. When prompted, click Restart Now so your change takes effect. When Stream Targets is enabled, a checkmark appears next to Stream Targets in the contents panel and the Stream Targets page shows Status is Enabled.



    If the Status of an individual stream target is Disabled, click the Enable icon for the stream in the Actions column.



    When a stream target is enabled, its status on the Stream Targets page is one of the following:

    • Waiting. The target is enabled but isn't yet pushing any of the transcoded stream renditions to the Wowza Streaming Cloud destination for one of the following reasons:

      • The original source stream isn't connected to the Wowza Streaming Engine input, so the transcoded renditions aren't being generated.

      • The target's configured Source Stream Name Prefix doesn't match the beginning of any of the transcoded stream names.

      • Wowza Streaming Engine hasn't completed initialization of the streaming connections to the Wowza Streaming Cloud destination.

    • Active. The Wowza Streaming Cloud target configuration has been successfully retrieved and all of the transcoded stream renditions are being pushed to the Wowza Streaming Cloud destination with the appropriate streaming protocol.

    • Error. Wowza Streaming Engine unsuccessfully tried to retrieve the Wowza Streaming Cloud target configuration and initiate streaming to the target destination. Errors might be due to an an issue with the Wowza Streaming Cloud service, a general connectivity issues, or an invalid target configuration such as an invalid Connection Code.

    The status of each stream target updates automatically if your Wowza Streaming Engine application has fewer than 100 stream targets. If your application has more than 100 stream targets, you can click Refresh to update the status.

    Test the connection


    Streams sent directly to Wowza Streaming Cloud CDN endpoints for distributed delivery must be started and managed in the Wowza Streaming Engine Manager. Video snapshots and real-time data aren't available in Wowza Streaming Cloud, but you can test the stream using the direct playback URLs.

    1. Start the stream in the H.264 camera or encoder that's sending the stream to the live application in Wowza Streaming Engine.

      The live application ingests the live stream and sends it to Wowza Streaming Cloud.

    2. In Wowza Streaming Engine Manager, verify that the stream is published by clicking Incoming Streams for the live application, and then clicking the stream name.

      The stream detail page displays the Status of the stream (Active) as well as details about connections, uptime, and throughput for the published stream.

    3. In the Wowza Streaming Cloud web manager, confirm that the live stream is playing by copying the Adobe HDS or Apple HLS direct playback URL from the Overview tab of the live stream detail page and pasting it into a test player such as the Wowza Test Players.

    More resources




    Originally Published: For Wowza Streaming Engine 4.3.0 on 10-06-2015.
    Updated: For Wowza Streaming Engine 4.4.0 on 04-14-2016.

    If you're having problems or want to discuss this article, post in our forum.