Low FPS on Axis camera

Forum for questions and support relating to the 1.24.x releases only.
Locked
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Low FPS on Axis camera

Post by kylejohnson »

Hello everyone,

I am testing out an Axis Q1755 camera at 1280x720 720p mjpeg, using on-camera motion detection and sending triggers to ZM via tcp and the zmtrigger.pl inet socket. The camera itself is set to limit the fps to 25, which I have verified by overlaying the live image with the fps and viewing through the camera's interface.

My monitor is set nodect and remote / http / simple using x.x.x.x. as the host and /axis-cgi/mjpg/video.cgi has the host path. Viewing the logs, I see:

Code: Select all

root@zm-test:/lib# grep 'Capturing at' !$
grep 'Capturing at' /var/log/messages
Jun 26 08:52:56 zm-test zmc_m2[7556]: INF [Monitor-2: 1000 - Capturing at 8.55 fps]
Jun 26 08:54:31 zm-test zmc_m2[7556]: INF [Monitor-2: 2000 - Capturing at 10.53 fps]
Jun 26 08:56:04 zm-test zmc_m2[7556]: INF [Monitor-2: 3000 - Capturing at 10.75 fps]
Jun 26 08:57:37 zm-test zmc_m2[7556]: INF [Monitor-2: 4000 - Capturing at 10.75 fps]
Jun 26 09:00:17 zm-test zmc_m2[7816]: INF [Monitor-2: 1000 - Capturing at 9.52 fps]
Jun 26 09:03:23 zm-test zmc_m2[8159]: INF [Monitor-2: 1000 - Capturing at 9.26 fps]
Jun 26 09:05:16 zm-test zmc_m2[8159]: INF [Monitor-2: 2000 - Capturing at 8.85 fps]
Jun 26 09:06:54 zm-test zmc_m2[8159]: INF [Monitor-2: 3000 - Capturing at 10.20 fps]
Jun 26 09:08:35 zm-test zmc_m2[8159]: INF [Monitor-2: 4000 - Capturing at 9.90 fps]
Jun 26 09:10:18 zm-test zmc_m2[8159]: INF [Monitor-2: 5000 - Capturing at 9.71 fps]
Jun 26 09:11:54 zm-test zmc_m2[8159]: INF [Monitor-2: 6000 - Capturing at 10.42 fps]
Jun 26 09:13:35 zm-test zmc_m2[8159]: INF [Monitor-2: 7000 - Capturing at 9.90 fps]
Jun 26 09:15:29 zm-test zmc_m2[8159]: INF [Monitor-2: 8000 - Capturing at 8.77 fps]
Jun 26 09:17:06 zm-test zmc_m2[8159]: INF [Monitor-2: 9000 - Capturing at 10.31 fps]
Jun 26 09:18:41 zm-test zmc_m2[8159]: INF [Monitor-2: 10000 - Capturing at 10.53 fps]
Jun 26 09:20:16 zm-test zmc_m2[8159]: INF [Monitor-2: 11000 - Capturing at 10.53 fps]
Jun 26 09:22:00 zm-test zmc_m2[8159]: INF [Monitor-2: 12000 - Capturing at 9.62 fps]
Jun 26 09:23:44 zm-test zmc_m2[8159]: INF [Monitor-2: 13000 - Capturing at 9.62 fps]
Jun 26 09:25:41 zm-test zmc_m2[8159]: INF [Monitor-2: 14000 - Capturing at 8.55 fps]
Jun 26 09:27:55 zm-test zmc_m2[8159]: INF [Monitor-2: 15000 - Capturing at 7.46 fps]
Jun 26 09:30:31 zm-test zmc_m2[8159]: INF [Monitor-2: 16000 - Capturing at 6.41 fps]
Jun 26 09:33:11 zm-test zmc_m2[8159]: INF [Monitor-2: 17000 - Capturing at 6.25 fps]
root@zm-test:/lib# 
What could be the cause of this? I have sufficient hardware.
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Do you have sufficient network bandwidth? If you're using 1.24, try it as mpeg and see if that's any better or worse.
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Thanks for the reply!
I believe that my network bandwidth is sufficient, as the camera is on a 100mb network and the server is on a virtual machine on a1000mb network, both connected to the same gigabit switch. Also, during after-hours, when network utilization is low, FPS do not improve.

I am indeed using 1.24(.2) What do you mean by 'try it as mpeg'?
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Your axis should support an mpeg stream out of the box unless you disabled it. Try setting up a new camera in ZM with the axis mpeg presets instead of the mjpeg presets.
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

I thought I was using the mpeg stream? http://192.168.0.104/axis-cgi/mjpg/vide ... rofile=zm2
Selecting the "Axis IP, 640x480, mpjpeg" preset returns a very similar subpath to what I am currently using, the only difference being the querystring.

The others use RTSP and a different path, /axis-media/media.amp, which was still giving me the same FPS (tested with RTSP previously)

Am I missing something obvious?
coke
Posts: 518
Joined: Wed Jan 30, 2008 5:53 pm
Location: St. Louis, MO, USA

Post by coke »

Go further down the menu, it's not entirely in alphabetical order. They're listed as Axis MPEG4 unicast/multicast/etc.
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Ah, that - so the mpeg stream can only be access using rtsp?
Also, for this camera (a Q1755), the stream has changed to /axis-media/media.amp
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

While I don't know if it will be overly helpful, you might give a shot at using something like ntop to see what the network is doing. Not really sure how helpful it will be though.
Locked