# Buffer at Wowza Server with RTMP streaming

**URL:** <https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [June 1, 2011, 12:18am UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719 "2011-06-01T00:18:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rocky\_william](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rocky\_william](https://community.wowza.com/u/rocky_william)\
**Post date:** [June 1, 2011, 12:18am UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719/1 "2011-06-01T00:18:01Z")

</div>

I’m testing RTMP streaming with Wowza Server, from wowza sv1 over WAN to Wowza sv2.Obviously, i have to using repeater (origin & repeater-edge).The WAN,here WAN emulator,i can adjust jitter and delay, packet loss’s value for smooth RTMP streaming .

So, if i adjust Wowza server’s buffer (publishing & subscribing buffer, send & receive buffer), how that affect to jitter and packet loss for smooth RTMP streaming?

---

<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, 2011, 11:15am UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719/2 "2011-06-01T11:15:30Z")

</div>

Welcome to Wowza forum.

Smooth playback is a function of stream bitrate / client bandwidth. If the quotient is \< 1, you’re okay; If it is \> 1, you will see buffering in the client. There is a BWCheck example that is will show you the actual server-to-client bandwidth, which changes from moment to moment as you will see. Optimal bitrate stream (lower than you would wish probably), or multi-bitrate streaming is the best way to mitigate.

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 4, 2011, 9:57am UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719/3 "2011-06-04T09:57:14Z")

</div>

What I mean is that the bitrate of a video has to less than the network capacity of a client, which is different for every client, and from moment to moment for each client. You will see “buffering” (stopping and starting, jerky playback) if the bitrate of the video is greater than client capacity. Changing buffer settings on server or client won’t really help.

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 6, 2011, 12:11pm UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719/4 "2011-06-06T12:11:42Z")

</div>

Rocky,

Take look at /conf/VHost.xml /SocketConfiguration / Receive & SendBufferSize, which have inline comments and are discussed in the Wowza Tuning Guide:

[https://www.wowza.com/docs/how-to-do-performance-tuning](https://www.wowza.com/docs/how-to-do-performance-tuning)

What is the encoder? You said RTMP.

For MediaCaster sources (IP cameras, mpeg-ts encoder, etc), you can use Jitter Buffer and ModuleMediaCasterStreamMonitorAdvanced.

For RTMP push encoder, the best solution in this case is probably lower bitrate. You can monitor with something like this:

[https://www.wowza.com/docs/how-to-use-imediastreamactionnotify2-to-monitor-live-streams-modulestreamwatchdog](https://www.wowza.com/docs/how-to-use-imediastreamactionnotify2-to-monitor-live-streams-modulestreamwatchdog)

Richard

---

<div class="post-metadata">

**Author:** ![rocky\_william](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rocky\_william](https://community.wowza.com/u/rocky_william)\
**Post date:** [June 3, 2011, 11:31pm UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719/5 "2011-06-03T23:31:08Z")

</div>

Hello Richard, thank for your support!

Do you mean subcribing buffer (at client)? What about publishing buffer (at wowza server) ? And when i adjust these buffer (at server & client), can the jitter and packet loss change ? I mean, with a set (jitter 1, packet loss 1) when these buffer are default (not adjust, config), streaming over WAN is ok (video & audio are nice), but when these buffer are changed,we can have a corresponding set (jitter 2, packet loss 2) ,obviously, streaming over WAN is also OK ?

Thank you!

---

<div class="post-metadata">

**Author:** ![rocky\_william](https://avatars.discourse-cdn.com/v4/letter/r/3e96dc/32.png) [@rocky\_william](https://community.wowza.com/u/rocky_william)\
**Post date:** [June 5, 2011, 7:09pm UTC](https://community.wowza.com/t/buffer-at-wowza-server-with-rtmp-streaming/36719/6 "2011-06-05T19:09:42Z")

</div>

So, with my poor network for streaming (bad jitter and packet loss value),i have to config buffer , time to packetizing and what parameters for solving, overcoming errors (because of my poor network) ? Will not changing buffer setting on server or client help to making streaming smooth with my poor network ?

Thank you for your support!

Rocky
