Fix UDP packet loss (MPEG-TS/RTP) in Wowza Streaming Engine

Adjust Wowza Streaming Engine™ media server software to solve packet loss issues with incoming MPEG-TS or RTP streams delivered over UDP or multicast.

You can configure server properties in Wowza Streaming Engine Manager or by editing [install-dir]/conf/VHost.xml. If you make changes to VHost.xml, supported settings are displayed in Wowza Streaming Engine Manager the next time it's started. Wowza Media Server™ software doesn't support Wowza Streaming Engine Manager, so you must edit VHost.xml in a text editor if you're running Wowza Media Server software.

Before continuning, make sure you have the most recent software updates and that your instance is properly tuned. See Tune Wowza Streaming Engine for optimal performance.

Wowza Streaming Engine Manager configuration


  1. Click the Server tab at the top of the page.
     
  2. In the Server contents panel, click Virtual Host Setup.
     
  3. On the Virtual Host Setup page Properties tab, click Incoming RTP Datagram in the Quick Links bar.
     
    Note: Access to the Properties tab is limited to administrators with advanced permissions. For more information, see Manage credentials.
  4. In the Incoming RTP Datagram properties area, click Edit.
     
  5. Select the Enabled check box next to datagramMaximumPacketSize_in, and set the value to 8192. Set other properties to default values.
     
  6. Click Save, and then restart the virtual host when prompted to apply the changes.

XML configuration


  1. Use a text editor to open the [install-dir]/conf/VHost.xml file and edit the RTP/DatagramConfiguration/Incoming section to match the values below:
    <DatagramConfiguration>
        <Incoming>
            <ReuseAddress>true</ReuseAddress>
            <ReceiveBufferSize>2048000</ReceiveBufferSize>
            <SendBufferSize>65000</SendBufferSize>
            <!-- <MulticastBindToAddress>true</MulticastBindToAddress> -->
            <!-- <MulticastInterfaceAddress>[ip-address]</MulticastInterfaceAddress> -->
            <!-- <TrafficClass>0</TrafficClass> -->
            <MulticastTimeout>50</MulticastTimeout>
            <DatagramMaximumPacketSize>8192</DatagramMaximumPacketSize>
        </Incoming>
        <Outgoing>
            ...
        </Outgoing>
    </DatagramConfiguration>
  2. Restart Wowza Streaming Engine to apply the changes.