Since I accidentally reformatted the code in my haste to get it working, making a diff produces a ridiculous patch file...
So, I've posted it here as a gzipped tar file containing both sources.
For now, backup the two files named above from your ZM ".../src/ " directory to somewhere safe (!), and replace them with the two files in this archive.
Then, in the ZM top-level directory, at a shell prompt, issue the command:
This should recompile and reinstall ZM with the modified zm_remote_camera routines.shell> make && make install
IMPORTANT NOTE
For now, you must set the camera to the following configuration using (gulp) Internet Explorer:
MJPEG Mode
320x240 Image size
Frame rate 5 (or another value of your choice - just remember it for creating the monitor - the values must match for now)
Microphone disabled
Then, you can create a new monitor with the following values:
General
Name: <Your Choice>
Source: Remote
Function: Monitor
Maximum FPS: 5 (or the value you set with Internet Explorer)
Source
Remote Host Name: username:password@<camera ip address>
Remote Host Port: <camera remote port> (usually 9000 unless you changed)
Remote Host Path: /mjpeg?speed=5 (or the speed value you set with Internet Explorer)
Remote Image Colours: 24 bit colour
Capture Width: 320
Capture Height: 240
Once that's set, you should see video when you watch the new monitor!
Todo:
Make it modular so as to support other non-http/non-standard MJPEG headers from other cameras by simply describing the format of the header.
Re format it so a DIFF can be taken.
Disclaimer: All available disclaimers.
Warrantee: None of the available Warrantees.