# Configure an RTP jitter buffer and packet loss logging (RTP/MPEG-TS over RTP)

**URL:** <https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/72>\
**Category:** Wowza Streaming Engine\
**Created:** [October 13, 2008, 3:32pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/72 "2008-10-13T15:32:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [October 13, 2008, 3:32pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/72/1 "2008-10-13T15:32:28Z")

</div>

To turn on an RTP jitter buffer and to log packet loss add the following properties to the **RTP/Properties** section of **[install-dir]/conf/[application]/Application.xml**

```auto
<Property>
	<Name>rtpDePacketizerWrapper</Name>
	<Value>com.wowza.wms.rtp.depacketizer.RTPDePacketizerWrapperPacketSorter</Value>
</Property>
<Property>
	<Name>rtpDePacketizerPacketSorterBufferTime</Name>
	<Value>500</Value>
	<Type>Integer</Type>
</Property>
<Property>
	<Name>rtpDePacketizerPacketSorterFlushTime</Name>
	<Value>10</Value>
	<Type>Integer</Type>
</Property>
<Property>
	<Name>rtpDePacketizerPacketSorterLogPacketLoss</Name>
	<Value>true</Value>
	<Type>Boolean</Type>
</Property>

```

- **rtpDePacketizerPacketSorterBufferTime:** Size in milliseconds of the jitter buffer. This time will add to the overall latency of the live stream.

- **rtpDePacketizerPacketSorterFlushTime:** Time in milliseconds the buffer will be flushed.

- **rtpDePacketizerPacketSorterLogPacketLoss:** Set to **true** if you want packet loss to be logged to the Wowza Pro log file.

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [June 4, 2009, 3:46am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/72/2 "2009-06-04T03:46:16Z")

</div>

Try following the first suggestion in this forum post:

[http://community.wowza.com/t/-/57](http://community.wowza.com/t/-/57)

Charlie

---

<div class="post-metadata">

**Author:** ![shree\_vidya](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@shree\_vidya](https://community.wowza.com/u/shree_vidya)\
**Post date:** [June 4, 2009, 3:43am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/72/3 "2009-06-04T03:43:30Z")

</div>

Hi,

I am trying out livestreamrecording using fastvdo smartcast.It works fine.I have one question,when i do the recording for say 4-5 hrs then i am facing audio and video will be out of sync meaning audio ahead of video.Is it due to bandwidth or i need to do some extra settings in Application.xml?

---

<div class="post-metadata">

**Author:** ![shree\_vidya](https://avatars.discourse-cdn.com/v4/letter/s/df705f/32.png) [@shree\_vidya](https://community.wowza.com/u/shree_vidya)\
**Post date:** [June 4, 2009, 3:49am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/72/4 "2009-06-04T03:49:58Z")

</div>

Thanks.I will try it and post how it goes.
