# 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/51>\
**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/51 "2008-10-13T15:32:28Z")\
**Posts on this page:** 20\
**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/51/1 "2008-10-13T15:32:28Z")

</div>

[https://www.wowza.com/docs/how-to-turn-on-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-and-mpeg-ts](https://www.wowza.com/docs/how-to-turn-on-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-and-mpeg-ts)

---

<div class="post-metadata">

**Author:** ![Jaseer\_T\_K](https://avatars.discourse-cdn.com/v4/letter/j/5daacb/32.png) [@Jaseer\_T\_K](https://community.wowza.com/u/Jaseer_T_K)\
**Post date:** [May 14, 2010, 7:47pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/2 "2010-05-14T19:47:36Z")

</div>

how to do buffering for live stream over rtsp( sdp files)

---

<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 5, 2010, 6:18am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/3 "2010-06-05T06:18:30Z")

</div>

You might be best served to read through the User’s Guide, Quick Start Guide and install and play with all the examples. There are examples and information there. Then you can ask questions based on the information we already have provided in this body of work.

Charlie

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 14, 2010, 2:45pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/4 "2010-05-14T14:45:50Z")

</div>

You can do it as detailed in this post.

Or do you mean client-side buffering in non-Flash client?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 15, 2010, 12:19pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/5 "2010-05-15T12:19:25Z")

</div>

in Flash it is NetStream.bufferLength

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 17, 2010, 1:39pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/6 "2010-05-17T13:39:57Z")

</div>

NetStream.bufferLength is set in your Flash application, in Actionscript. If you are using JW Player you can set it in the Flashvars with “&bufferlength=3” (3 is the default in JW Player)

You can restrict the number of connects per VHost in /conf/VHosts.xml. You can restrict per Application with [this module](https://www.wowza.com/forums/showthread.php?t=2805), or per stream with [this module](https://www.wowza.com/forums/showthread.php?t=3823).

You can view connections and server info with the built-in HTTProviders:

http://[wowza-address]:8086/connectioncounts

http://[wowza-address]:8086/connectioninfo

http://[wowza-address]:8086/serverinfo

(You need to set a username/password in /conf/admin.password to access the above pages)

To record a portion of a live stream, you can use the [LiveStreamRecord](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord) example package:

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 17, 2010, 3:51pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/7 "2010-05-17T15:51:52Z")

</div>

The recording is saved in content folder of the application. by default that is [wowza-install-dir]/content, but it is wherever the app’s Application.xml /StorageDir points to.

You have to copy a jar file and modify the app’s Application.xml before you can use the LiveStreamRecord client.

> 2)I think the above method is for clients(it can be used on server side also). Is there any other method that we can do on demand storage on the server side

I don’t understand this question. Can you clarify?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 18, 2010, 11:15am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/8 "2010-05-18T11:15:21Z")

</div>

> …For this reason I think that this is for clients. …In this case where this file is saved?

It’s saved on the server (not client-side), in the content folder, wherever the /conf/[application]/Application.xml /StorageDir points to. If it’s not there, then it’s not setup correctly.

I don’t know another way to do it. This is the way to record portions of a live stream on the server.

Look in the log for error messages. If you can’t sort it out, zip up the conf and logs folders and send them to support@wowza.com. (if the email bounces please post the zip files to a web server and send a link)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 18, 2010, 2:11pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/9 "2010-05-18T14:11:07Z")

</div>

To use the LiveStreamRecord package, set the Application.xml StreamType to “live”

StreamType “live-record” will record the whole stream starting from the moment is published.

Make sure the Application.xml you are modifying is below the /conf folder, like:

/conf/live/Application.xml

And check the access log, see if there are any errors or warnings about missing function StartRecorder, something like that. If you see that you do not have it installed correctly.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 19, 2010, 11:31am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/10 "2010-05-19T11:31:40Z")

</div>

You should be able to play the resulting vlc1.sdp.flv using another Wowza app with StreamType “default”

To limit access to certain users you have to do some kind of authentication. This is how to do it with Wowza:

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

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 25, 2010, 11:37am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/11 "2010-05-25T11:37:41Z")

</div>

Can you copy the video to your web server and send a downloadable link and reference to this thread to support@wowza.com

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 25, 2010, 5:08pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/12 "2010-05-25T17:08:18Z")

</div>

Evidently, you deleted the file from disk while it was recording. Meanwhile recording continued, writing a new file. But that file is missing the header, which had been deleted.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 28, 2010, 11:49am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/13 "2010-05-28T11:49:52Z")

</div>

> …Does the load balancing wowza server can act as an edge server?

Yes, it can. To test this all you have to do is configure all 4 roles on one machine.

- Make your test machine an Origin and an Edge. Then publish a stream to the Origin, then connect to the Edge with a player and subscribe to the stream. When you see the stream playing from the edge that is being published to the origin, origin/edge is working.

- Configure the Load Balancer Listener on the same machine.

- Configure a Load Balancer Sender on the same machine.

- Configure the redirect application on the same machine.

- Connect to the redirect application with the player, and check the “least loaded server” with the HTTP method.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 28, 2010, 2:47pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/14 "2010-05-28T14:47:52Z")

</div>

The instructions for setting up Origin and Edge servers is in the Livestream Repeater section of the Wowza User Guide.

The load balancing system is just a way of distributing connections. You need the Origin/Edge configuration setup for that to be useful.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 29, 2010, 4:06pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/15 "2010-05-29T16:06:24Z")

</div>

If you got an edge to work on another machine, you can get it to work on the same machine. There is no problem in configuring origin and edge applications on the same machine, I have done it many times.

Why would you configure the origin application as the redirect application? They are totally separate applications. Sounds like you are improvising as you go instead of following the guides precisely, and/or you are skimming the instructions, which you just cannot do.

I suggest you start over, follow the provided instructions more carefully.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 31, 2010, 3:08pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/16 "2010-05-31T15:08:18Z")

</div>

> Do u mean to configure one single application as an origin and edge…? then what streamtype shall I give …liverepeater-origin or liverepeater-edge…?

No, this is what I said:

> There is no problem in configuring origin and edge applications on the same machine, I have done it many times.

I said one machine, I said "origin **and** edge application **s** I never said anything that could be confused with “configure one single application as an origin and edge”

I said, follow the instructions precisely and don’t improvise. This is the problem you are having.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 31, 2010, 3:28pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/17 "2010-05-31T15:28:14Z")

</div>

The suggestion of using one machine is just as a stepping stone, for testing, and when you were having problems with multiple machines. You said you had an edge working on another machine, so you’re past that anyway.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 1, 2010, 1:24pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/18 "2010-06-01T13:24:51Z")

</div>

The redirect application StreamType should be “default”, or it doesn’t matter, but just leave it as “default”

Sounds like you have two servers setup as Load Balance Senders. Which ever has fewer connections is the “least loaded server”

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 2, 2010, 12:56pm UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/19 "2010-06-02T12:56:22Z")

</div>

This is working correctly. The connection rejection is how redirect works. You can use JW Player 5 to handle the rejection/redirect. It is all covered in the documentation, and in previous posts in this thread.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 3, 2010, 11:26am UTC](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51/20 "2010-06-03T11:26:43Z")

</div>

Flowplayer has built-in support for this reject/redirect mechanism. Just connect to the redirect application and it will handle it. You have to using a recent version of Flowplayer.

If you cannot play the live stream with Flowplayer from the orgin or the edge, but you can do it with the LiveVideoStreaming example player, then you are doing something wrong with Flowplayer.

If you cannot play either with LiveVideoStreaming player either, then you are doing something wrong with the Liverepeater (origin/edge) configuration.

Richard

[Next page](https://community.wowza.com/t/configure-an-rtp-jitter-buffer-and-packet-loss-logging-rtp-mpeg-ts-over-rtp/51.md?page=2)
