# Sudden stream drops

**URL:** <https://community.wowza.com/t/sudden-stream-drops/35269>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [April 9, 2014, 10:20pm UTC](https://community.wowza.com/t/sudden-stream-drops/35269 "2014-04-09T22:20:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon\_Achai](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jon\_Achai](https://community.wowza.com/u/Jon_Achai)\
**Post date:** [April 9, 2014, 10:20pm UTC](https://community.wowza.com/t/sudden-stream-drops/35269/1 "2014-04-09T22:20:27Z")

</div>

Hi,

In the stream monitor I implemented in the custom module, I’m measuring FPS and KF rate using the following IMediaStreamH264SEINotify (SEIListener) listener:

IMediaStreamH264SEINotify seiListener = new SEIListener(this);

stream.addVideoH264SEIListener(seiListener);

Basically counting how many video frames I get per second and of these how often there is a KF.

My rules being that if there are no video frames coming in for 3 consecutive seconds OR FPS\<3 for 10 seconds the stream is dropped.

It seems that this is happening way too often.

Streams with decent and good FPS all of a sudden drop to 0 or no more video frames come in.

Do you have any insight why this might be happening?

Thanks,

Jonathan

---

<div class="post-metadata">

**Author:** ![Jon\_Achai](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@Jon\_Achai](https://community.wowza.com/u/Jon_Achai)\
**Post date:** [April 9, 2014, 11:14pm UTC](https://community.wowza.com/t/sudden-stream-drops/35269/2 "2014-04-09T23:14:29Z")

</div>

Some more insight from my end:

1. It seems that with flash which is using rtmp to broadcast it happens much more often (~30%)

2. From iOS however which uses rtsp it happens much much less, and is probably correct behavior (~6%)

Thanks,

Jonathan
