Subscriber Discussion

How To Measure Upload Bandwidth A Camera Is Using?

UI
Undisclosed Integrator #1
Aug 06, 2018

Hello, anyone know how to get an accurate measure of how much upload bandwidth a camera is using?

I have a dahua IP camera streaming rtsp video up to a server which restreams it...

I need to measure how much bandwidth the camera is taking up.

UI
Undisclosed Integrator #1
Aug 06, 2018

I have a basic Arris modem.  There are not tools in there to let you measure current upload usage.

UI
Undisclosed Integrator #2
Aug 06, 2018

You could use a laptop with two network cards (add a second USB NIC).

 

Bridge the two connections in Windows which essentially turns your computer into a switch, plug it between your camera and modem then use your bandwidth monitor of choice - even Windows' built in performance monitor would work here.

 

On second thoughts if you have a good switch with bandwidth monitoring you could also use that.

U
Undisclosed #3
Aug 06, 2018

Put it on a switch that supports SNMP and use something like the free Spiceworks tools or prtg to pull bandwidth data from the switch port the camera is connected to.

Avatar
Will Doherty
Aug 06, 2018
Liberty Consulting, Inc • IPVMU Certified

It might be camera specific as well.  I do not believe all cameras support monitoring bandwidth.  Watch the last video on this IPVM link.

https://ipvm.com/reports/snmp-for-video-surveillance

 

Avatar
Josh Hendricks
Aug 06, 2018
Milestone Systems

If you don't have throughput information available to you in the switch, you could use Wireshark. Either from the server, or from a separate computer where you can pull the same stream, run Wireshark with a filter for the camera IP like "host 192.168.1.123". Capture the traffic for maybe 30-60 seconds, and then go to Statistics -> Capture File Properties. Under the Statistics heading you'll find the Average bits/s

Wireshark Capture File Properties

(1)
UI
Undisclosed Integrator #1
Aug 06, 2018

Hey Joshua!  thank you so much!

That really seemed to work!

Could you answer a question for me about the results?

I opened my rtsp url in VLC player... and let it play while wire shark captured the data from the ip of the camera.

From the stats it looks like the rtsp video is not using much bandwidth at all!

It looks like even my main stream which is set really high... is not even using half of a Mbps.

Can you confirm that this looks correct?

I thought if you had a camera set to a bit rate of 1024k then it would use about 1Mbps of bandwidth.

Here are the stats for both streams... as well as the settings from the camera.

Thanks again for your help!!!!

 

Camera Settings

 

Main Stream Stats

Sub Stream Stats

 

Avatar
Josh Hendricks
Aug 06, 2018
Milestone Systems

The stream appears to be almost exactly 1 Mbps (1068 kbps), but I see you noticed the "k" there in your next comment.

If you're hoping to keep it under 1 Mbps, you might check your bitrate options again. It looks like your substream is set to CBR, and you might get a lower average bitrate by using Variable Bitrate (VBR). It should hopefully still let you specify a bitrate and ideally that'll be used as a maximum bitrate.

I think you should be able to get a 15 FPS D1 H264 stream down to much lower than 1 Mbps.

(1)
UI
Undisclosed Integrator #1
Aug 06, 2018

Oh man... this stinks... I think I missed the "k" there.

So it is not 133 bytes...

Rather it is 133000 bytes!

So each stream is over 1 Mbps!

I was hoping to get decent quality for under 1Mbps of upload.

 

Thanks again for your help!!!

New discussion

Ask questions and get answers to your physical security questions from IPVM team members and fellow subscribers.

Newest discussions