Send a live stream to an external CDN provider from Wowza Video Legacy

The Wowza Video™ service offers a multitude of playback options: a hosted page and player, playback over HLS and HDS URLs, and the capability to broadcast streams on social media sites like Facebook and YouTube. You can also use an external, third-party CDN to deliver streams to viewers.

You can send a live stream to an external CDN provider by using a custom stream target in Wowza Video. A custom stream target is a third-party endpoint that you connect to so that it can deliver your transcoded H.264 stream to viewers using its own edge network or resources.

To learn about other live stream settings you might see in the user interface, see Live Stream Setup page in Wowza Video.

1. Create the live stream


First, create the live stream.

  1. In Wowza Video, click Add Live Stream.
     
  2. Click the Live Streams menu, 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 the encoder or camera you want to use to connect to Wowza Video.
  5. Specify other video source settings, click Next, and complete the steps to finish creating the live stream.
Notes:
  • If you plan to also deliver your live stream using a Wowza Video hosted page, specify the options on the Playback Settings page, selecting Yes for creating a hosted page. Otherwise, disregard these pages and options. They don't matter if you're delivering the stream to viewers only through your external CDN provider.
     

Wowza Video creates the live stream and displays the Overview tab of the live stream detail page.

2. Configure the stream target for the highest-bitrate output


Next, add a custom stream target for your CDN provider and attach it to the highest bitrate output rendition of your live stream.

  1. Under Advanced on the left navigation bar, click Transcoders, and then select your live stream's transcoder. It appears as [Live stream name] / Transcoder.
  2. Click the Outputs & Targets tab of the trancoder's detail page.

The Outputs & Targets tab of the trancoder's detail page lists all of the output renditions for your live stream. Wowza Video created them based on the aspect ratio of the source video that you specified in the live stream wizard.

The output renditions are listed from highest to lowest resolution. The first output is the highest-bitrate rendition.

  1. Click the Add a Stream Target button for the highest-bitrate output rendition and choose Custom.
     
  2. On the Create a custom stream target page, enter a descriptive Target Name.
     
  3. Click the Provider menu and choose your CDN provider. If your provider isn't listed, choose RTMP.
  4. Specify the details of your CDN provider so that Wowza Video can connect to it. Consult your CDN provider's documentation if you need help with these values.
  • Primary URL – The RTMP ingest URL of the target, without the preceding protocol and without the trailing slash (/). For example, [domain-or-ip-address]/[EntryPoint]. Hostnames can't contain underscores (_).
  • Backup URL – The backup RTMP ingest URL of the target, entered without the preceding protocol and without the trailing slash (/). Not all providers or third-party CDNs provide a backup URL.

    When both the primary and backup URLs are used, Wowza Video sends the stream to both URLs, allowing the third-party CDN to improve reliability and prevent playback disruption. If you want to use both URLs, after assigning the target to an output rendition, make sure both the primary and backup versions have entries under the output rendition on the transcoder's Outputs & Targets tab. 
  • Stream Name – The name of the stream as defined in your target's ingestion settings.
Note: When adding a custom Akamai target, the Stream Name must be in the format [stream_name]_[angle]_[bitrate]@[stream_id], for example, akamaistream_1_[bitrate]@12345. For help determining the Stream Name for other CDN providers, see their documentation.
  • Target Username – The name or ID that your target uses for RTMP authentication.
  • Target Password – The password that's used with your Target Username for RTMP authentication. Enter it in the Confirm Target Password field, too.
  • HDS Playback URL – (Optional) The web address that your target uses to play HDS streams. You can include it here for informational purposes.
  • HLS Playback URL – (Optional) The web address that your target uses to play HLS streams. You can include it here for informational purposes.
  • RTMP Playback URL – (Optional) The web address that your target uses to play RTMP streams. You can include it here for informational purposes.
  1. Click Add.

3. Assign the target to the other output renditions


Now assign the target to the other, lower-resolution output renditions for the live stream.

  1. For the next output rendition in the list, click the Add a Stream Target and then click Existing stream target.
  2. In the Assign a Stream Target window, select your custom stream target from the list and then click Assign Stream Target.
  3. Repeat Steps 1 and 2 for the remaining output renditions for your live stream.
     
  4. (Optional) If you're not using them, delete the default targets that Wowza Video created automatically for each output rendition.

4. Set up the encoder


Make sure you have the latest firmware for your encoder installed. See the encoder's user guide for details about how to update firmware as well as how to operate the device and how to specify settings such as resolution, bitrate, and frame rate.

See the Source Connection Information on the Overview tab of the Live Stream Details page for server, port, and other details your encoder may need to connect to Wowza Video. 

5. Test the connection


Finally, connect the configured live stream to the source encoder or camera and test the setup.

  1. Select the live stream to view its details page.
     
  2. Click Start Live Stream at the top of the page.
     
  3. Click the confirmation button to start the stream.

Wowza Video opens the stream and connects with the video source.

  1. Start your video source.
     
  2. In the Wowza Video web manager, confirm that the live stream is playing by looking at the Video Preview in the Overview tab of the Live Stream Details page.

    The video preview displays a frame from the live stream every 5 seconds. The started date and time appear under the preview. Source stream, transcoder, and delivery metrics begin to update.

  1. Check playback at your CDN by viewing the stream at the provider's playback URL.
     
  2. Click Stop Live Stream at the top of the detail page to end your test stream, and then stop the video source.