Recording and Streaming at low FPS

Support and queries relating to all previous versions of ZoneMinder
Locked
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Recording and Streaming at low FPS

Post by kylejohnson »

Hey everyone,

ZoneMinder is recording events and streaming images at a low FPS, between 1 and 4. If I browse directly to the cameras and view them using their built-in streaming capability, I am able to see things at ~30 FPS.

Using Fedora Core 8, 64bit.

Code: Select all

[kjohnson@tvicam01 ~]$ uname -a
Linux tvicam01.tvicorp.com 2.6.25.9-40.fc8 #1 SMP Fri Jun 27 16:05:49 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

[kjohnson@tvicam01 ~]$ free -m
             total       used       free     shared    buffers     cached
Mem:          8006       7937         69          0          0       3182
-/+ buffers/cache:       4755       3251
Swap:        20002         72      19930

[kjohnson@tvicam01 ~]$ cat /proc/loadavg 
1.10 1.21 1.16 2/312 14892

[kjohnson@tvicam01 ~]$ cat /proc/cpuinfo | grep 'model name'
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
model name	: Intel(R) Xeon(R) CPU           X5355  @ 2.66GHz
[kjohnson@tvicam01 ~]$

ZoneMinder Console - Running - v1.23.2

[root@tvicam01 proc]# cat /proc/sys/kernel/shmall
2048000

[root@tvicam01 proc]# cat /proc/sys/kernel/shmmax
4194304000
Nothing in log (no shared memory errors, etc)

Any ideas for further troubleshooting this issue?
[/code]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

What manufacturer and model is the camera?
How is the camera configured in ZM?
What path is the camera using for the stream when you directly browse it?
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Hi Cordel - thanks for the response.
1. Vivotek IP7131 PoE Cameras.
2. In ZM, the cameras are set to a Remote source, with their path set to /cgi-bin/video.jpg
3. When viewing camera from within their built-in web server / streamer, an active-x control is required.

Hope this helps!
Kyle[/list][/list]
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Okay don't know to much about that cam but enough to know that you obviously getting snapshots through that path video.jpg, pretty obvious by the extension anyway.
Have you searched the forum to see if any one has posted a path for an mjpeg stream from that camera (assuming this cam supports it)?
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Cordel,

I hear what you are saying, and that makes sense to me as well. I have not searched for that, but will when I get back from lunch.

Thanks!
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Cordel,

I found some information at the bottom of http://www.zoneminder.com/forums/viewtopic.php?p=42634
http://<ip>/video.mjpg but you first need to go to "Configuration -> Audio and video" and set stream1 (or stream2) to mode "JPEG." If you use stream2, use "video2.mjpg" in the URL instead.

I used this at first, but found just grabbing the still image was more reliable. I'm using one 7138 and several 7131's, but the 7131 doesn't support MJPEG so I had to grab the individual image for those anyway.
So I am stuck with the lower FPS?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Assuming he correct, then you will only be able to use the snapshot.
I'm not sure what he has tried though and since I don't have one of these cams here I have no way to test myself to prove or disprove anything.
Depending on your knowledge, you could sniff the packets and see how the stream is being provided from the cam and is the best method, I could do it but that requires having a cam physically here on my network, hence why I could not say either way.
kylejohnson
Posts: 260
Joined: Tue Aug 21, 2007 1:42 pm
Location: Baltimore, MD

Post by kylejohnson »

Cordel,

Thanks again for the response.

Are you talking about using Wireshark to sniff the packets? Would I run it on the camera server and then just capture all packets from the camera's IP address? I don't have much experience with analyzing packets, though...

Or, I have a spare camera lying around that I could let you borrow. :P
DaveQB
Posts: 59
Joined: Tue Sep 07, 2010 4:30 am
Location: Sydney, NSW

Post by DaveQB »

Maybe an old post, maybe solved, but looking at the specs for that camera it looks like it will be the same as the IP8330 and IP8332.
http://www.zoneminder.com/wiki/index.php/Vivotek

Read info here I have published and following the link to the how-to.

PS Just realised what forum this is in. I don't think 1.23 supported RTSP, so you need to stick with the MJPEG capturing. Oh well, the link I provided may help. Check the cameras manual, I found the manual for the IP8332 VERY explicit in explaining all about the camera.
Locked