Page 1 of 1

Generic Camera

Posted: Sun Jul 31, 2016 1:44 pm
by justong1979
I have a Generic USB Camera I've trying to get to function with ZM. I was hoping someone could give me some insight..

Results Of lsusb:

Code: Select all

root@cctsrv:/home/jgriggs# lsusb
Bus 001 Device 002: ID 093a:2700 Pixart Imaging, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
root@cctsrv:/home/jgriggs#
I've tried different combinations of settings and I cant get it to work. Any suggestions?

Thank you!
Juston

Re: Generic Camera

Posted: Mon Aug 01, 2016 9:27 pm
by evolotion
get the camera working in VLC then use it to tell you framerate, resolution, codec and so on , then use these settings to play with zoneminder. Sadly zoneminder is very unforgiving when setting up cameras, its either right or it wont work lol vlc will generally get most things working with minimal fuss

Re: Generic Camera

Posted: Tue Aug 02, 2016 11:56 am
by justong1979
I tried that, It just comes up blank.

I know the USB camera works, I've used it on a windows machine previously. the Zoneminder server is Debian 8 64x

Re: Generic Camera

Posted: Tue Aug 02, 2016 5:48 pm
by evolotion
if you cant get it working in vlc your chances of getting it working in ZM are almost nill (IMHO). as VLC is usually more friendly I would concentrate your efforts there, once working you can port settings over to ZM. did the windows machine use a specific driver or a generic usb video class driver. If the former you may not be able to get this working under linux.

Re: Generic Camera

Posted: Tue Aug 02, 2016 6:03 pm
by justong1979
I'm assuming it was generic in Windows, because it worked as soon as I plugged it in

Re: Generic Camera

Posted: Tue Aug 02, 2016 7:40 pm
by bbunge
Your Debian Linux should recognize your USB camera as /dev/video0.
Your Source Type should be Local
Device Path /dev/video0
Device Format - try PAL B but another setting may work better
Try 640x480 resolution unless you know the camera can do something else.

Add www-data to the sudo group (to enable use of local video devices)

adduser www-data sudo

Hope this helps!

bb