How to enable support for H.264 Annex B in Wowza media server (RTP)

This article describes how to enable support for H.264 Annex B in RTP-based streams from a Wowza media server application.

Note: Wowza Media Server™ 2.2.4 or later is required.
To turn on H.264 Annex B RTP support, add the following property to your [install-dir]/conf/[application-name]/Application.xml file:
<Property>
	<Name>rfc3984H264DePacketizerIsAnnexB</Name>
	<Value>true</Value>
	<Type>Boolean</Type>
</Property>
To point to the RTP stream, use a Session Description Protocol (SDP) file that looks like the following:
v=0
o=- 205776520 205776520 IN IP4 127.0.0.1
s=WowzaMediaServer
t=0 0
a=range:npt=now-
m=video 10000 RTP/AVP 97
c=IN IP4 127.0.0.1
a=rtpmap:97 H264/90000
a=fmtp:97 packetization-mode=1
Be sure to change the m=video 10000 RTP/AVP 97 to the correct incoming port. For example, if the port were 1234, the line should read:
m=video 1234 RTP/AVP 97

Originally Published: 04-19-2011.
 

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