Wowza Community

monitoring incoming stream's bitrate not reliable?

Hi,

In our custom module we implemented a monitor thread that checks every 4 seconds the bitrate of the incoming stream so in case the bitrate is too low or there is some kind of problem with the stream we can disconnect the broadcaster and move on.

However after implementing this we noticed that good broadcasters were being dropped as well.

I then changed it to just log when it thought it should disconnect based on bitrate and I saw that sometimes for 10-15 and sometimes up to a full minute the bitrate went down to 0 and then went back up.

What I use to monitor the bitrate is the following:

IMediaStream monitoredStream;

monitoredStream = thisAppInstance.getStreams().getStream(STREAM_NAME);

IOPerformanceCounter perf = monitoredStream.getMediaIOPerformance();

Double bitrate = perf.getMessagesInBytesRate() * 8 * .001;

Any idea how this can happen? Is there a more reliable way to monitor the incoming stream quality?

Thanks,

Jonathan

I just want to add, that checking the recorded video did have frozen video where it was reported (audio was fine though) - does this method not take into consideration the audio bitrate?

Also, I noticed that I got a report of two different incoming streams on the same wowza server that reported 0 bitrate at exactly the same time.

Take a look at these live stream monitoring examples:

https://www.wowza.com/docs/how-to-monitor-bandwidth-of-published-streams-modulelimitpublishedstreambandwidth

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

Richard