Generic Camera

Forum for questions and support relating to the 1.29.x releases only.
Locked
justong1979
Posts: 6
Joined: Sat May 28, 2016 5:55 am

Generic Camera

Post 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
evolotion
Posts: 46
Joined: Mon Aug 01, 2016 9:03 pm

Re: Generic Camera

Post 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
justong1979
Posts: 6
Joined: Sat May 28, 2016 5:55 am

Re: Generic Camera

Post 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
evolotion
Posts: 46
Joined: Mon Aug 01, 2016 9:03 pm

Re: Generic Camera

Post 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.
justong1979
Posts: 6
Joined: Sat May 28, 2016 5:55 am

Re: Generic Camera

Post by justong1979 »

I'm assuming it was generic in Windows, because it worked as soon as I plugged it in
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: Generic Camera

Post 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
Locked