strange question about using other pc(win)+usbcam as source

Support and queries relating to all previous versions of ZoneMinder
Locked
sugacapra
Posts: 48
Joined: Wed Jan 18, 2006 9:20 am
Location: Firenze, Italy

strange question about using other pc(win)+usbcam as source

Post by sugacapra »

hi there,
i have set up a zm-slackware and it work well, but now i've a pair of
spared usb webcam and my crazyness told me :"why dont try to use them
as another pair of eye ?" so, having a pc on the frontside seat of my local and having usb connection free here is the question:
- can i use a some sort of software to have my zm-linux take as source this 2 webcam (or at least one?) considering that the win-pc is in LAN with the zm-linux or is not possible?

thanks
Alessio
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

Yes, I've done it.

1. Setup camera on remote PC.

2. Use something like DCAM running on the Webcam PC that takes regular jpgs from the camera and save them on a shared drive. DCAM can timestamp and manipulate.

3. Mount that shared drive on the linux pc - I use samba.

4. Use a new version of ZM that has the "source" option of "File". Then simply point it at the file which is your refreshing jpg amd set the x&y correctly.

Should work fine. Obviously the framerate's not going to be great, but it works!
sugacapra
Posts: 48
Joined: Wed Jan 18, 2006 9:20 am
Location: Firenze, Italy

Post by sugacapra »

thanks,
i've downloaded the DCAM software, tomorrow i'll try and let you know...

:)
candlerb
Posts: 29
Joined: Tue Jan 10, 2006 4:02 pm

Post by candlerb »

The thread at http://www.zoneminder.com/forums/viewtopic.php?t=5549 may be of interest too.

You can install ZoneMinder on the second machine, and use it as a remote camera using HTTP and a motion JPEG stream to retrieve the images. This saves messing about with shared directories and probably can stream a lot faster. On the other hand, setting up ZoneMinder a second time may be more work than setting up something more lightweight.

Regards, Brian.
candlerb
Posts: 29
Joined: Tue Jan 10, 2006 4:02 pm

Post by candlerb »

... errm, I didn't notice that the second PC is running Windoze, sorry. I guess porting ZM to Windows would be hard work, as it's tied to the /dev/video architecture.

But you could always upgrade your Win-PC to Linux :-)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i think 1.22 can use additional sources such as ftp and things but ive never looked at this, I dont think its a great idea to do what your doing as its dependant upon your windows machine being reliable and always available. Good luck on that one!

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
sugacapra
Posts: 48
Joined: Wed Jan 18, 2006 9:20 am
Location: Firenze, Italy

Post by sugacapra »

@candlerb: the 2nd pc is a client used primarly for doing "LOTTO system and other absurd thing,also have some proprietary program connected to proprietary machine and are all UNTOUCHABLE(r) :P " related to the fact that the shop is a "italian Bar", on the pc the win98 is running well (lol , well for a windoze machine, it crashed only about 3-4 times a week.. 8) )

returning on topic:
today i've installed the DCAM program and the image appear in good shape, nothing so bad, now the question that is rolling on my head is:
- is better to install samba on the ZM linux and mount the remote dir on ZM linux machine (so having one smbmount command to connect the dir that is phisically on the window pc)

or

- mount samba and open a dir on ZM linux and connect the window pc mounting a networked dir.

or

- install a ftp server on ZM linux and let the DCAM deploy the image grabbed on ZM linux automatically?

or

- using rsync (don't know if this can be used fast... i normally use this solution to keep eventual SMB(PDC) and SMB(BDC) synchronized...


damn question...

to be or not to be?
:shock:
Locked