I want use two USB webcam with motion, I've connected both to an USB hub, giving from CLI the command

sudo lsusb

I can see that both cams are connected

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 008: ID 046d:09c1 Logitech, Inc. QuickCam Deluxe for Notebooks **//THIS**
Bus 001 Device 021: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 0951:1643 Kingston Technology DataTraveler G3 4GB
Bus 001 Device 005: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 006: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 001 Device 007: ID 046d:092f Logitech, Inc. QuickCam Express Plus **//THIS**
Bus 001 Device 022: ID 0461:4d0f Primax Electronics, Ltd HP Optical Mouse
Bus 001 Device 023: ID 04f2:0841 Chicony Electronics Co., Ltd 

The problem is that I'm not able to see the videostream of the second cam.

I've seen in /etc/motion/thread1.conf the first cam using videodevice /dev/video0, by default. The second /etc/motion/thread2.conf use videodevice /dev/video1, always by default.

The first works, the second doesn't. [I use port 8081 for first webcam and port 8082 for the second]

/dev/video0 /dev/video1

I thought that one error could be the wrong name /dev/video1.

Any advice?


If /dev/video1 exists, it is probably attached to something. Try pulling the second camera out of the hub, wait a few seconds, and ls /dev | grep video -- the node should disappear. Likewise, when you plug it in, it should appear. This would clarify whether or not it is using that node.

  • Ok, it shows me video0 and video1, both written in red. So are they connected and ready to use, right? – Mitro Apr 19 '14 at 15:45
  • Those are created dynamically, so if one of them appears and disappears when you plug a device in and out, you can be certain it is using that node and the kernel has a driver for it. It's "ready to use" in that sense, but it doesn't mean it will work -- e.g., if the second camera doesn't work alone at all, it won't work in combination with another one. – goldilocks Apr 19 '14 at 15:52
  • I tried both alone and both works. When they are recognised as video0 I suppose – Mitro Apr 19 '14 at 15:53
  • It's unlikely to be the kernel driver then (unless there's some bug whereby they interfere with one another, but that would be odd, I think), so it's not simply because it's /dev/video1. "Motion" is a specific piece of software, right? Try plugging a screen and keyboard in and using something else (e.g. cheese, or anything seperate from the motion software) to see if you can use the second camera locally while the other one is networked. – goldilocks Apr 19 '14 at 16:06
  • 1
    It's not unusual to find your own mistake by first ruling out everyone else's, lol -- I do it pretty regularly. – goldilocks Apr 19 '14 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.