New source type for monitors - FTP
Posted: Mon Jan 07, 2008 5:54 am
Taking full advantage of various IP camera's capabilities, it would be great if ZM could create events for batches of frames uploaded to a ZoneMinderFTP server. For example:
-Under Add New Monitor, selecting source type of FTP displays a new tab to setup the cameras incoming login/event creation thresholds/filename & timestamp format from camera/ramdisk options/etc. Direct streaming and control options should still be available if the cam is supported, but not required for FTP.
-IPCAM records motion to its internal buffer, and uploads timestamped images to ZMFTPd
-ZMFTPd monitors its root directory and waits the allotted time for a new events images to finish uploading (ie waits 2-3 seconds after the last image to be sure it has the last frame for the current event)
-ZMFTPd immediately moves these files to their own event directory, renaming them to the expected format (00*-capture.jpg).
-ZMFTPd inserts the new event to the database, populates the interface
This would serve multiple purposes:
-Improves wireless support - latency is no longer a major issue.
-30 fps can be captured and transfered over a weak wireless connection if desired.
-Offloads motion/thermal detection to the individual cameras
-Saves wear and tear on the server, reducing CPU load - no decoding required!
-May provide better support for cameras which require ActiveX, but offer FTP transfer options.
-Some cameras allow you to configure different filenames and/or upload paths for various trigger types (ie motion/thermal), which gives a way to inform ZM of what caused the detection.
-Post-processing the images with ZM gives greater control through use of zones, but using the IP cameras built in features for the initial 'trigger' can also eliminate a lot of network overhead...
This may be dependent on the camera having a timestamp option. I could likely accomplish most of the above with a combination of software and some bash scripts, however this would benefit many people if included in an official ZM release. Unfortunately my perl skills are lacking...
Here's an FTP server written in perl that could possibly be implemented:
http://search.cpan.org/~rwmj/Net-FTPSer ... PServer.pm
Thoughts??
Regards,
.
-Under Add New Monitor, selecting source type of FTP displays a new tab to setup the cameras incoming login/event creation thresholds/filename & timestamp format from camera/ramdisk options/etc. Direct streaming and control options should still be available if the cam is supported, but not required for FTP.
-IPCAM records motion to its internal buffer, and uploads timestamped images to ZMFTPd
-ZMFTPd monitors its root directory and waits the allotted time for a new events images to finish uploading (ie waits 2-3 seconds after the last image to be sure it has the last frame for the current event)
-ZMFTPd immediately moves these files to their own event directory, renaming them to the expected format (00*-capture.jpg).
-ZMFTPd inserts the new event to the database, populates the interface
This would serve multiple purposes:
-Improves wireless support - latency is no longer a major issue.
-30 fps can be captured and transfered over a weak wireless connection if desired.
-Offloads motion/thermal detection to the individual cameras
-Saves wear and tear on the server, reducing CPU load - no decoding required!
-May provide better support for cameras which require ActiveX, but offer FTP transfer options.
-Some cameras allow you to configure different filenames and/or upload paths for various trigger types (ie motion/thermal), which gives a way to inform ZM of what caused the detection.
-Post-processing the images with ZM gives greater control through use of zones, but using the IP cameras built in features for the initial 'trigger' can also eliminate a lot of network overhead...
This may be dependent on the camera having a timestamp option. I could likely accomplish most of the above with a combination of software and some bash scripts, however this would benefit many people if included in an official ZM release. Unfortunately my perl skills are lacking...
Here's an FTP server written in perl that could possibly be implemented:
http://search.cpan.org/~rwmj/Net-FTPSer ... PServer.pm
Thoughts??
Regards,
.