Difference between revisions of "Sony"

From ZoneMinder Wiki
Jump to navigationJump to search
m
m
Line 1: Line 1:
== Where to get the patches ==
== Where to get the patches ==
Link to the Sony SNC patches for 1.22.1:
Sony SNC patches for
[http://www.neufweb.org/zm_remote_camera-patches.tgz zm_remote_camera-patches.tgz]<br>
[http://www.neufweb.org/zm_remote_camera-patches.tgz 1.22.1] and
[http://www.neufweb.org/zm_snc_v2_patches.tgz 1.22.3].  The 1.22.1 version does not support capture in PCRE Remote camera mode.
 
== How to apply the patches ==
== How to apply the patches ==
Unzip and untar the files somewhere.  Copy the zmcontrol-SNC-M3W.pl file to /usr/local/bin.  Chmod +x /usr/local/bin/zmcontrol-SNC-M3w.pl.
If you don't have ZM installed from source, this is where you figure out how to do that.  Use the WIki.  Use the Forum.  Use the Docs.  It's easy.  Go ahead.  I'll wait.
Go to the src/ directory in your installation: 
cd /home/myhome/mysources/Zoneminder-1.22.3/src
Patch the first file:
patch zm_remote_camera.cpp < /home/myhome/zm_remote_camera-1.22.3.cpp.patch
And the second:
patch zm_remote_camera.h < /home/myhome/zm_remote_camera-1.22.3.h.patch
Hopefully, there were no errors.  If chunks fail, you might have a version mismatch, or your sources may already have been patched?  If it worked, you should now be able to recompile and reinstall ZM:
make && make install
Voila!  Hopefully, that's done.
== Configuring the camera ==
== Configuring the camera ==
First, you need to set up the camera using Internet Explorer.  Go to the camera's IP address like so:
First, you need to set up the camera using Internet Explorer.  Go to the camera's IP address like so:

Revision as of 03:15, 6 May 2007

Where to get the patches

Sony SNC patches for 1.22.1 and 1.22.3. The 1.22.1 version does not support capture in PCRE Remote camera mode.

How to apply the patches

Unzip and untar the files somewhere. Copy the zmcontrol-SNC-M3W.pl file to /usr/local/bin. Chmod +x /usr/local/bin/zmcontrol-SNC-M3w.pl.

If you don't have ZM installed from source, this is where you figure out how to do that. Use the WIki. Use the Forum. Use the Docs. It's easy. Go ahead. I'll wait.

Go to the src/ directory in your installation:

cd /home/myhome/mysources/Zoneminder-1.22.3/src

Patch the first file:

patch zm_remote_camera.cpp < /home/myhome/zm_remote_camera-1.22.3.cpp.patch

And the second:

patch zm_remote_camera.h < /home/myhome/zm_remote_camera-1.22.3.h.patch

Hopefully, there were no errors. If chunks fail, you might have a version mismatch, or your sources may already have been patched? If it worked, you should now be able to recompile and reinstall ZM:

make && make install

Voila! Hopefully, that's done.

Configuring the camera

First, you need to set up the camera using Internet Explorer. Go to the camera's IP address like so:

http://[ip address]/image1

Click on the "Setting" button near the top of the page. A new Explorer window opens. In this window, on the left, click on the "Camera" link.

On the "Common" Tab, set the camera into JPEG mode by clicking on the "Video mode" JPEG radio button. Select the resolution you want to use from the "Image size" pulldown menu. I use "320x240". Press the "Ok" button.

Now click on the "JPEG" Tab, and pick your desired frame rate. I use 5 fps. Press the "Ok" button.

Now you're done using Internet Explorer. Whew!

Setting up the monitor in ZM

Now you need to add a monitor for this camera to ZM. In the Console page, click on the "New Monitor" button. In the first Tab, "General", enter the following values.

  • Name
    • <Type in an appropriate name for this monitor>
  • Source Type
    • Pulldown <Remote>
  • Function
    • Pulldown <Monitor>
  • Enabled
    • <Check This>
  • Linked Monitors
    • <Leave alone>
  • Maximum FPS
    • <The frame rate you set using Internet Explorer, above. I used 5.>
  • Alarm Maximum FPS
    • <Leave alone>
  • Reference Image Blend
    • <Leave alone>
  • Triggers
    • <Leave alone>

Now click on the "Source" Tab, and enter the following:

  • Remote Host Name
    • [username]:[password]@[camera IP address]
  • Remote Host Port
    • 80 (unless you changed this in the Internet Explorer camera setup page "Network")
  • Remote Host Path
    • /mjpeg?speed=5
  • Remote Image Colors
    • Pulldown <24 bit color>
  • Linked Monitors
    • <Leave alone>
  • Capture Width (pixels)
    • <The image width you set using Internet Explorer, above. I used 320>
  • Capture Height (pixels)
    • <The image height you set using Internet Explorer, above. I used 240>
  • Orientation
    • Pulldown <Normal>



Now you MUST click on the "Save" button, and after a few moments, the new monitor will appear in the ZM Console window.



If you click on the monitor name, assuming you did everything right, a window should open and you should see the video from the camera.

Where to get the Control module

Here (later on tomorrow).

Setting up the control in ZM

First, you'll have to "Install" the control by following these steps. From the ZM Console, click on the source link of the monitor you created for the camera. It's listed as the IP address of your camera. When you click it, it's configuration page opens in a new window.

Now click on the "Control" Tab. Put a check mark in "Controllable".

Here you need to look closely - on the next line, marked "Control Type", there's a pulldown. Next to the pulldown to the right, there's a link named "Edit".

Before you can use this new control script you downloaded, you have to create an entry for it by clicking on "Edit".

A new window opens that shows you all the types of control scripts ZM knows about. In this window, you need to press the "Add New Control" button.

A newer window opens that shows you all the things ZM needs to know about a Control Script. Here's what to put in there:

Using the control in ZM

In the monitor window, you'll now have a "Control" link in the upper left. Clicking it gets you the control panel below the video window. Clicking the arrows moves that camera.

And some other stuff goes here.

Other nifty commands implemented in the control