USB Camera - Device path.....

Forum for questions and support relating to the 1.24.x releases only.
Locked
couchie
Posts: 2
Joined: Tue Apr 05, 2011 6:29 pm

USB Camera - Device path.....

Post by couchie »

I have read until my eyes are crossed, I've searched via Google and forums and still am at a loss.

I've got a running version of Zoneminder 1.24.2. Works well on the server and is accessible by other machines on the network. This is residing on an ubuntu 10.10 box.

I've hooked up a Microsoft Lifecam HD-6000 via the USB port on the server. I've tested the camera on GUVCViewer and found it works very well. GUVCViewer uses the following settings for the camera:

30 FPS
1280X720 Resolution
MJPG Camera output
Video Codec: MJPG
Video Format: AVI

I attempt to use the same camera in ZM. My problem is that I don't know what device path I should be using. I've tried the default /dev/video0 with no luck. I've done lsusb and found that the camera is listed on bus 001 Device 004. I've tried /dev/video/4 and dev/video/004 both with no luck.

I am barking up the wrong tree here?
Paranoid
Posts: 129
Joined: Thu Feb 05, 2009 10:40 pm

Re: USB Camera - Device path.....

Post by Paranoid »

Run GUVCViewer
Find out what the process id is for GUVCViewer.
Type the following command:

Code: Select all

 $ sudo lsof -p pid
where pid is the process id for GUVCViewer
This will list every device and file GUVCViewer has open. You should be able to see the video device from this.
couchie
Posts: 2
Joined: Tue Apr 05, 2011 6:29 pm

Re: USB Camera - Device path.....

Post by couchie »

I've finally had time to sit down in peace and quiet to work on this.

I've located the PID of GUVCViewer and run the command line listed. I copied and pasted the results to a text file so I could flip through looking for a clue.

I'm assuming I have located the line here:

guvcview 11163 couchie 6r CHR 81,0 0t0 6096309 /dev/video0

I've set the source for my camera as /dev/video0 and tried several channels with still no avail.

Any other ideas on what I might have not set up correctly?
Locked