Video and Audio out of Sync
Poor Video and Audio Quality
MPEG-TS/RTP UDP Packet Loss Remedies
MPEG-TS Missing Audio
MPEG-TS Missing or Garbage Video
Native RTP, MPEG-TS, RTSP/RTP or SHOUTcast/Icecast re-stream stream goes down
Incoming Multicast Streams Interference
How to reduce delay before video starts playing back
Video and Audio out of Sync
Try inserting a server side sort buffer. Edit [install-dir]/conf/[application]/Application.xml (where [application] is the name of the application you have configured for streaming) and add the following two properties to the Streams/Properties container (be sure you add these properties to the correct <Properties> container, there are several in this configuration file):
Code:
<Property>
<Name>sortPackets</Name>
<Value>true</Value>
<Type>Boolean</Type>
</Property>
<Property>
<Name>sortBufferSize</Name>
<Value>750</Value>
<Type>Integer</Type>
</Property>
Code:
sortPackets[1]: sortBufferSize:750
Poor Video and Audio Quality
(native RTP, MPEG-TS over RTP or RTSP/RTP streaming only)Poor video and audio quality when streaming using RTP over UDP can be caused by packet loss or packets being delivered out of order. Follow this article describing How to turn on an RTP jitter buffer and packet loss logging (RTP and MPEG-TS). This method will not work for MPEG-TS streaming unless the stream is wrapped in RTP.
MPEG-TS/RTP UDP Packet Loss Remedies
If think you might be having packet loss issues with an incoming MPEG-TS or RTP stream that is being delivered over UDP or Multicast, try making the following server adjustments:
- First be sure you are running the most recent patch: Development Builds
- Be sure the server is properly tuned (always very, very important) by following the How to do performance tuning article.
- Edit [install-dir]/conf/VHost.xml and change the RTP/DatagramConfiguration/Incoming section to this:
Code:<DatagramConfiguration> <Incoming> <ReuseAddress>true</ReuseAddress> <ReceiveBufferSize>2048000</ReceiveBufferSize> <SendBufferSize>65000</SendBufferSize> <!-- <MulticastBindToAddress>true</MulticastBindToAddress> --> <!-- <TrafficClass>0</TrafficClass> --> <MulticastTimeout>50</MulticastTimeout> <DatagramMaximumPacketSize>8192</DatagramMaximumPacketSize> </Incoming> <Outgoing> ... </Outgoing> </DatagramConfiguration>
MPEG-TS Missing Audio
Some MPEG-TS based encoders send unaligned AAC packets. To instruct Wowza Media Server to properly deal with these unaligned AAC packets edit [install-dir]/conf/[application]/Application.xml (where [application] is the name of the application you have configured for streaming) and add the following property to the RTP/Properties container (be sure you add these properties to the correct <Properties> container, there are several in this configuration file):
Code:
<Property>
<Name>audioIsAligned</Name>
<Value>false</Value>
<Type>Boolean</Type>
</Property>
MPEG-TS Missing or Garbage Video
For use with Wowza Server 3. Some MPEG-TS based encoders send unaligned video packets. To instruct Wowza Server to properly deal with these unaligned video packets edit [install-dir]/conf/[application]/Application.xml (where [application] is the name of the application you have configured for streaming) and add the following property to the RTP/Properties container (be sure you add these properties to the correct <Properties> container, there are several in this configuration file):
Code:
<Property>
<Name>videoIsAligned</Name>
<Value>false</Value>
<Type>Boolean</Type>
</Property>
Native RTP, MPEG-TS, RTSP/RTP or SHOUTcast/Icecast re-stream stream goes down
If you have an native RTP or MPEG-TS stream that frequently goes down and you want Wowza Media Server to monitor the stream and reconnect when it becomes available you can set the MediaCaster/Property streamTime. To do this, edit [install-dir]/conf/[application]/Application.xml and add the following properties to the MediaCaster/Properties container (there are several containers in the file be sure to get the right one):
Code:
<Property>
<Name>streamTimeout</Name>
<Value>12000</Value>
<Type>Integer</Type>
</Property>
Incoming Multicast Streams Interference
If you are having problems with multiple incoming multicast streams interfering with each other on Linux you may need to set the Java property java.net.preferIPv4Stack to true. To do this, edit [install-dir]/bin/setenv.sh and uncomment the following line (line 13):
Code:
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"
How to reduce delay before video starts playing back
- Increase FPS to speed up the playback start time. A Flash RTMP client waits for a key frame and at least 60 frames before playback begins.
- Another way is through adding properties to your Application.xml configuration. You can speed up playback start time at the expense of increasing latency. Use this method if a quick start time is important and increasing latency is not important. With this method, the result will be that streaming will start further behind the live point. Use of these properties requires experimentation and testing. It will force more video data into the initial response from Wowza Media Server which will speed up playback start time. If low latency is important to your workflow, do not use this method.
Add the following properties to Streams/Properties container in conf/[application]/Application.xml:
Code:<Property> <Name>instantOn</Name> <Value>true</Value> <Type>Boolean</Type> </Property> <Property> <Name>instantOnBufferTime</Name> <Value>3000</Value> <Type>Integer</Type> </Property>
- Click here, if you are having problems or would like to discuss this article.
- Leave a comment below, if there is some aspect of this article you would like to see changed or improved.


Article List
Categories
Wowza Media