Troubleshooting techniques for mpegts streams

Below is a small list of things to try upon a troublesome inbound mpegts stream.  We encounter this type of issue a lot so more information will be added as we encounter the issues again.

OS Suggestions:

1. Turn off your firewall

iptables -F
iptables-save | sudo tee /etc/sysconfig/iptables
service iptables restart

2. For the interface, try adding:

route add -net netmask eth0
(Assumes interface is eth0)

3. Turn off reverse path verify

echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter

Wowza Configuration suggestions:

1. High bitrate streams sometimes may require telling Wowza to send a zero PES length where you might have video frames wrapped over several mpegts packets.

Container: Streams/Properties
Property: mpegtsAlwaysSendZeroPacketLen = true
More information

2. Some streams may have repeated start codes. If this is the case, you should notify Wowza via the following property:

Container: Streams/Properties
Property: mpegtsRemoveRepeatStartCodes = true

3. If you have 4byte M2TS time codes prepended to the mpegts packet, you will need to indicate as such by setting the following:

Container: Streams/Properties
Property: mpegtsHasM2TSTimeCodes = true


Comments are closed.