Hi all,
Great software, Phil!
I'm trying to capture 4 cameras at 10fps in Mocord mode but from the debug messages it looks like the analysis daemon is processing most of the input at about 4-5 fps. This means that what is saved to disk is also at the lower rate.
I thought it may help to use the frame server daemon, so I set the ZM_OPT_FRAME_SERVER config option to true but now get errors like "Incomplete read of frame image data, 16208 bytes only" and "Incomplete frame write: 16224 of 72290 bytes written".
Can someone explain to me:
1 - Is using the frame server daemon the right way to go so that I don't lose captured frames?
2 - the ZM_FRAME_SOCKET_SIZE setting - what is this number in - bytes? I've also tried changing both wmem_default and wmem_max in /proc/sys/net/core but still get the 'Incomplete' errors.
What is the ideal setting for this option as well as the 2 wmem parameters?
Thanks!
Using the frame server daemon (zmf)
im getting this as well.
My buffer size is over 50,000 and i'm getting this.. What could be wrong.. slow CPU - need to reduce the frame rate?
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Piyush
1) You won't lose frames either way, zmf is just a way of farming off the writing of the images to disk. If zma can't get zmf to do it, it just does it itself.
2) I have my socket buffer size set to 262143, but you should change it (wmem etc) to whatever size you need. As it's writing jpegs you should just look to see what the maximum image size you have on disk is and use that, perhaps plus 10% or so.
Phil
1) You won't lose frames either way, zmf is just a way of farming off the writing of the images to disk. If zma can't get zmf to do it, it just does it itself.
2) I have my socket buffer size set to 262143, but you should change it (wmem etc) to whatever size you need. As it's writing jpegs you should just look to see what the maximum image size you have on disk is and use that, perhaps plus 10% or so.
Phil