# Solution for monitor incoming stream byte rate and frame rate

**URL:** https://community.wowza.com/t/solution-for-monitor-incoming-stream-byte-rate-and-frame-rate/95041
**Category:** Wowza Streaming Engine
**Created:** [June 9, 2022, 12:53am UTC](https://community.wowza.com/t/solution-for-monitor-incoming-stream-byte-rate-and-frame-rate/95041 "2022-06-09T00:53:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Hua\_Jiang](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@Hua\_Jiang](https://community.wowza.com/u/Hua_Jiang)
#### Post date: [June 9, 2022, 12:53am UTC](https://community.wowza.com/t/solution-for-monitor-incoming-stream-byte-rate-and-frame-rate/95041/1 "2022-06-09T00:53:25Z")

</div>

Hi there, I am trying to monitor the incoming stream health status by tracking byte rate and frame rate, etc.

I understand there is an API here [https://www.wowza.com/docs/statistics-query-examples](https://www.wowza.com/docs/statistics-query-examples) but it only contains byte rate info.

Any solution that is lightweight and will not affect the performance of Wowza itself? Cheers

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [June 10, 2022, 5:27pm UTC](https://community.wowza.com/t/solution-for-monitor-incoming-stream-byte-rate-and-frame-rate/95041/2 "2022-06-10T17:27:51Z")

</div>

This simple code can get you what you want:  
@Override  
public void onCodecInfoVideo(IMediaStream stream, MediaCodecInfoVideo codecInfoVideo)  
{  
WMSLoggerFactory.getLogger(null).info("onCodecInfoVideo: " + stream.getName());  
WMSLoggerFactory.getLogger(null).info("onCodecInfoVideoForStream: " + codecInfoVideo.toString());  
}

Which will return this **IN THE LOGS** :

```
INFO server comment - onCodecInfoVideoForStream: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:3.1, frameSize:960x600, displaySize:960x600, frameRate:30.000000}

```

These should also be reported in the logs by default for when the packetizer loads up and decodes the stream.

---

<div class="post-metadata">

### Author: ![Hua\_Jiang](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@Hua\_Jiang](https://community.wowza.com/u/Hua_Jiang)
#### Post date: [June 13, 2022, 11:28pm UTC](https://community.wowza.com/t/solution-for-monitor-incoming-stream-byte-rate-and-frame-rate/95041/3 "2022-06-13T23:28:05Z")

</div>

Hi Rose,

Thanks for the reply, I noticed the log you provided only have frameRate, what about the byte rate of the incoming streams? any settings I can turn it on by default? or there must be code changes.

Thanks Hua

---

<div class="post-metadata">

### Author: ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)
#### Post date: [June 18, 2022, 9:02pm UTC](https://community.wowza.com/t/solution-for-monitor-incoming-stream-byte-rate-and-frame-rate/95041/4 "2022-06-18T21:02:55Z")

</div>

Take hint from _ModuleLimitPublishedStreamBandwidth_ on wowza GitHub repo. It shows how to determine bitrate/data rate.
