Wowza Media Systems

Using QuickTime Streaming Server (Darwin) to Relay H.264 Stream to Wowza Server

Abstract

There are three methods to relay H.264 content from the QuickTime Streaming Server (Darwin) to Wowza Media Server; RTSP Announce, UnAnnounce UDP Unicast and UnAnnounce Multicast. The preferred method is UnAnnounce UDP Unicast. This document covers all three methods. The instructions will reference the Vara Softare's Wirecast encoder. The instructions for QuickTime Broadcaster are almost identical.

Setup

For the UnAnnounce UDP Unicast and UnAnnounce Multicast, follow these steps to configure an application in Wowza Server.

  1. Create the folder [install-dir]/applications/rtplive
  2. Create the folder [install-dir]/conf/rtplive
  3. Copy [install-dir]/conf/Application.xml into [install-dir]/conf/rtplive
  4. Edit the newly copied Application.xml and change Streams/StreamType to rtp-live

For the RTSP Announce, follow these steps to configure an application in Wowza Server.

  1. Create the folder [install-dir]/applications/livevideo
  2. Create the folder [install-dir]/conf/livevideo
  3. Copy [install-dir]/conf/Application.xml into [install-dir]/conf/livevideo
  4. Edit the newly copied Application.xml and change Streams/StreamType to live
  5. Edit [install-dir]/conf/VHost.xml and copy and paste the HostPort definition for 1935 and change the Port to 554 (this is needed since QTSS can only establish RTSP sessions to port 554)

UnAnnounce UDP Unicast

First, open Wirecast and configure an H.264/HE-AAC live stream as described in this forum post: Using Vara Software's Wirecast live encoder with Wowza Server (RTSP/RTP). Next using Wirecast, generate Session Description Protocol (SDP) files for each Wowza Server server that is going to receive the stream. Follow these steps:

  1. Select the menu item Broadcast: Broadcast Settings...
  2. Change the Destination drop down to Unicast
  3. Change Host Name to [wowza-address] (where [wowza-address] is the ip address of the first server that is to receive the repeated stream)
  4. Change Video Port field to 10002 and the Audio Port field to 10000.
  5. Click the gear icon below the destination list and select Save SDP file and save this file on the first Wowza Server server in the [install-dir]/content as unicast.sdp
  6. Repeat these steps for each of the remaining Wowza Server servers to which you want to relay this stream (making sure to change the Host Name appropriately)

In the QuickTime Streaming Server admin application configure a relay in the Relay Settings section as follows:

  1. Set Relay Name to WowzaProUnicast
  2. Set Source Hostname or IP Address to the hostname or IP address of the server running Wirecast
  3. Set Mount Point to unicast.sdp
  4. Select the Wait for announced stream(s) checkbox
  5. Configure a destination for each Wowza Server configured above:
  6. Click the Save Changes button

Next, go back to Wirecast and configure the broadcast settings as follows:

  1. Select the menu item Broadcast: Broadcast Settings...
  2. Change the Destination drop down to Announce to QuickTime Streaming Server
  3. Change Host Name to [qtss-ip-address] (where [qtss-ip-address] is the ip address of the server running QTSS)
  4. Change File Location to unicast.sdp
  5. Click the Save button
  6. Select the menu item Broadcast: Start Broadcasting...
  7. You should now be able to double examples/LiveVideoStreaming/client/live.html, enter a Server address of rtmp://[wowza-address]/rtplive (where [wowza-address] is the ip address of the first server that is to receive the repeated stream) and a Stream name of unicast.sdp and click the Play button (it can take up to 30 seconds for the first connection to display video)

UnAnnounce Multicast

First, open Wirecast and configure an H.264/HE-AAC live stream as described in this forum post: .Using Vara Software's Wirecast live encoder with Wowza Server (RTSP/RTP). Next using Wirecast, generate a single Session Description Protocol (SDP) file and copy it to each Wowza Server servers that are going to receive the stream. Follow these steps:

  1. Select the menu item Broadcast: Broadcast Settings...
  2. Change the Destination drop down to Multicast
  3. Click the Generate button and copy the address in the Video Address field to the Audio Address (make note of this multicast address, you will need it later)
  4. Change Video Port field to 10002 and the Audio Port field to 10000.
  5. Click the gear icon below the destination list and select Save SDP file and save this file as multicast.sdp and copy it to the [install-dir]/content folder of each of the Wowza Server servers that are to receive the relayed stream

In the QuickTime Streaming Server admin application configure a relay in the Relay Settings section as follows:

  1. Set Relay Name to WowzaProMulticast
  2. Set Source Hostname or IP Address to the hostname or IP address of the server running Wirecast
  3. Set Mount Point to multicast.sdp
  4. Select the Wait for announced stream(s) checkbox
  5. Configure a single destination as follows:
  6. Click the Save Changes button

Next, go back to Wirecast and configure the broadcast settings as follows:

  1. Select the menu item Broadcast: Broadcast Settings...
  2. Change the Destination drop down to Announce to QuickTime Streaming Server
  3. Change Host Name to [qtss-ip-address] (where [qtss-ip-address] is the ip address of the server running QTSS)
  4. Change File Location to multicast.sdp
  5. Click the Save button
  6. Select the menu item Broadcast: Start Broadcasting...
  7. You should now be able to double examples/LiveVideoStreaming/client/live.html, enter a Server address of rtmp://[wowza-address]/rtplive (where [wowza-address] is the ip address of the first server that is to receive the repeated stream) and a Stream name of multicast.sdp and click the Play button (it can take up to 30 seconds for the first connection to display video)

RTSP Announce

In the QuickTime Streaming Server admin application configure a relay in the Relay Settings section as follows:

  1. Set Relay Name to WowzaProRTSPAnnounce
  2. Set Source Hostname or IP Address to the hostname or IP address of the server running Wirecast
  3. Set Mount Point to announce.sdp
  4. Select the Wait for announced stream(s) checkbox
  5. Configure a destination for each Wowza Server configured above:
  6. Click the Save Changes button

Next, open Wirecast and configure an H.264/HE-AAC live stream as described in this forum post: Using Vara Software's Wirecast live encoder with Wowza Server (RTSP/RTP) and follow these additional steps:

  1. Select the menu item Broadcast: Broadcast Settings...
  2. Change the Destination drop down to Announce to QuickTime Streaming Server
  3. Change Host Name to [qtss-ip-address] (where [qtss-ip-address] is the ip address of the server running QTSS)
  4. Change File Location to announce.sdp
  5. Click the Save button
  6. Select the menu item Broadcast: Start Broadcasting...
  7. You should now be able to double examples/LiveVideoStreaming/client/live.html, enter a Server address of rtmp://[wowza-address]/live (where [wowza-address] is the ip address of the first server that is to receive the repeated stream) and a Stream name of announce.sdp and click the Play button