• How to relay H.264 streams from QuickTime Streaming Server to Wowza Streaming Engine (native RTP)

    This article covers the three methods used to relay H.264 content from the QuickTime Streaming Server (Darwin) to Wowza Streaming Engine: RTSP Announce, UnAnnounce UDP Unicast and UnAnnounce Multicast. The preferred method is UnAnnounce UDP Unicast. The Telestream Wirecast encoder is used in the setup of each stream. The instructions for QuickTime Broadcaster are almost identical.

    Setup



    For the UnAnnounce UDP Unicast and UnAnnounce Multicast, configure an application in Wowza Streaming Engine using the following steps::

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


    For the RTSP Announce, configure an application in Wowza Streaming Engine using the following steps:

    1. Create the folder [install-dir]/applications/livevideo.
    2. Create the folder [install-dir]/conf/livevideo.
    3. Copy the [install-dir]/conf/Application.xml file into [install-dir]/conf/livevideo.
    4. Edit the newly copied Application.xml and change Streams/StreamType to:
      <StreamType>live</StreamType>
    5. Edit [install-dir]/conf/VHost.xml and copy and paste the HostPort definition for 1935 and set 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 in this topic: How to use Telestream Wirecast live encoder with Wowza Streaming Engine.

    Next, configure the broadcast settings:

    1. Select Output > Output Settings.
    2. Change Destination to Quicktime Unicast.
    3. Change Address to [wowza-ip-address] (where [wowza-ip-address] is the IP address of the first server that is to receive the repeated stream).
    4. Change Video Port to 10002 and Audio Port to 10000.
    5. Click the gear icon next to the Destination list and select Save SDP file and save this file on the first Wowza media server in [install-dir]/content as unicast.sdp.
    6. Repeat these steps for each of the remaining Wowza media servers to which you want to relay this stream (making sure to change the Address appropriately).


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

    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 Streaming Engine configured above:
      1. Set Source Hostname or IP Address to the first Wowza Streaming Engine server's IP address.
      2. Select Unannounce UDP.
      3. Set the Base Port to 10000.
      4. Click Add Destinations for each Wowza Streaming Engine server setup above.
    6. Click Save Changes.


    Return to Wirecast and configure the broadcast settings:

    1. Select Output > Output Settings.
    2. Change the Destination to QuickTime Streaming Server.
    3. Change Address 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 Save.
    6. Select Output > Start/Stop Broadcasting > Start All.
    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 Play (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 topic: How to use Telestream Wirecast live encoder with Wowza Streaming Engine. Next, using Wirecast, generate a single Session Description Protocol (SDP) file and copy it to each of the Wowza Streaming Engine servers that are going to receive the stream.

    Next, configure the broadcast settings:

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


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

    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:
      1. Set Source Hostname or IP Address to the multicast address noted above.
      2. Select Unannounce UDP.
      3. Set the Base Port to 10000.
      4. Set the TTL to 15.
    6. Click Save Changes.


    Return to Wirecast and configure the broadcast settings:

    1. Select Output > Output Settings.
    2. Change the Destination to QuickTime Streaming Server.
    3. Set Address to [qtss-ip-address] (where [qtss-ip-address] is the IP address of the server running QTSS).
    4. Set File Location to multicast.sdp.
    5. Click Save.
    6. Select Output > Start/Stop Broadcasting > Start All.
    7. You should now be able to double examples/LiveVideoStreaming/client/live.html, enter rtmp://[wowza-address]/rtplive as the Server address (where [wowza-address] is the IP address of the first server that is to receive the repeated stream) and multicast.sdp as the Stream name and click Play (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:

    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 media server configured above.
    6. Set Source Hostname or IP Address to the first Wowza media server's IP address.
      1. Select Announce UDP.
      2. Set the Mount Point to live/announce.sdp.
      3. Set the User Name and Password fields to a valid user name and password pair (see the Wowza Streaming Engine User's Guide for instructions on how to setup RTSP authentication).
      4. Click Add Destinations for each Wowza Streaming Engine server setup above.
    7. Click Save Changes.


    Open Wirecast and configure an H.264/HE-AAC live stream as described in this in this topic: How to use Telestream Wirecast live encoder with Wowza Streaming Engine and follow these additional steps:

    1. Select Output > Output Settings.
    2. Change Destination to QuickTime Streaming Server.
    3. Change Address 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 Save.
    6. Select Output > Start/Stop Broadcasting > Start All.
    7. You should now be able to double examples/LiveVideoStreaming/client/live.html, enter rtmp://[wowza-address]/live as the Server address (where [wowza-address] is the IP address of the first server that is to receive the repeated stream) and announce.sdp as the Stream name and click Play.



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