Motion - Support Question 2007x 06x 25x 205635

errors with 2 webcams

Question

Hi, I'm using gentoo and since i use kernel 2.6.20, i don't succeed in using my 2 webcams with motion. My Philips webcams use pwc and works fine alone but not together. I use thread1.conf and thread2.conf like that : videodevice /dev/video0 target_dir /home/compte/cam1 Do you have some answers ?

[0] Processing thread 0 - config file motion.conf
[0] Processing config file /etc/thread1.conf
[0] Processing config file /etc/thread2.conf
[0] Webcam port number 8081 for thread 2 conflicts with thread 1
[0] Webcam feature for thread 2 is disabled.
[0] Thread 1 is from /etc/thread1.conf
[0] Thread 2 is from /etc/thread2.conf
[1] Thread started
[2] Thread started
[0] motion-httpd/3.2.8 running, accepting connections
[0] motion-httpd: waiting for data on port TCP 8080
[1] cap.driver: "pwc"
[1] cap.card: "Philips 740 webcam"
[1] cap.bus_info: "usb-0000:00:1d.0-1"
[1] cap.capabilities=0x05000001
[1] - VIDEO_CAPTURE
[1] - READWRITE
[1] - STREAMING
[1] v4l2_select_input: name = "usb", type 0x00000000, status 00000000
[1] Supported palettes:
[1] 0: PWC2 (Raw Philips Webcam)
[1] 1: YU12 (4:2:0, planar, Y-Cb-Cr)
[1] Test palette YU12 (320x240)
[1] Using palette YU12 (320x240) bytesperlines 480 sizeimage 115200 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,128 
[1]     "Brightness", default 64, current 63
[1] found control 0x00980901, "Contrast", range 0,64 
[1]     "Contrast", default 0, current 63
[1] found control 0x00980902, "Saturation", range -100,100 
[1]     "Saturation", default 0, current 0
[1] found control 0x0098090e, "Red Gain", range 0,256 
[1]     "Red Gain", default 0, current 96
[1] found control 0x0098090f, "Blue Gain", range 0,256 
[1]     "Blue Gain", default 0, current 96
[1] found control 0x00980910, "Gamma", range 0,32 
[1]     "Gamma", default 0, current 31
[1] found control 0x00980911, "Shutter Speed (Exposure)", range 0,256 
[1]     "Shutter Speed (Exposure)", default 200, current 248
[1] found control 0x00980912, "Auto Gain Enabled", range 0,1 
[1]     "Auto Gain Enabled", default 1, current 1
[1] found control 0x00980913, "Gain Level", range 0,256 
[1]     "Gain Level", default 0, current -69
[1] found control 0x08000000, "Save User Settings", range 0,0 
[1]     "Save User Settings", default 0, current -69
[1] found control 0x08000001, "Restore User Settings", range 0,0 
[1]     "Restore User Settings", default 0, current -69
[1] mmap information:
[1] frames=2
[1] 0 length=462848
[1] 1 length=462848
[1] Using V4L2
[2] cap.driver: "pwc"
[2] cap.card: "Philips SPC 900NC webcam"
[2] cap.bus_info: "usb-0000:00:1d.0-2"
[2] cap.capabilities=0x05000001
[2] - VIDEO_CAPTURE
[2] - READWRITE
[2] - STREAMING
[2] v4l2_select_input: name = "usb", type 0x00000000, status 00000000
[2] Supported palettes:
[2] 0: PWC2 (Raw Philips Webcam)
[2] 1: YU12 (4:2:0, planar, Y-Cb-Cr)
[2] Test palette YU12 (320x240)
[2] Using palette YU12 (320x240) bytesperlines 480 sizeimage 115200 colorspace 00000000
[2] found control 0x00980900, "Brightness", range 0,128 
[2]     "Brightness", default 64, current 63
[2] found control 0x00980901, "Contrast", range 0,64 
[2]     "Contrast", default 0, current 32
[2] found control 0x00980902, "Saturation", range -100,100 
[2]     "Saturation", default 0, current 0
[2] found control 0x0098090e, "Red Gain", range 0,256 
[2]     "Red Gain", default 0, current 96
[2] found control 0x0098090f, "Blue Gain", range 0,256 
[2]     "Blue Gain", default 0, current 96
[2] found control 0x00980910, "Gamma", range 0,32 
[2]     "Gamma", default 0, current 21
[2] found control 0x00980911, "Shutter Speed (Exposure)", range 0,256 
[2]     "Shutter Speed (Exposure)", default 200, current 248
[2] found control 0x00980912, "Auto Gain Enabled", range 0,1 
[2]     "Auto Gain Enabled", default 1, current 1
[2] found control 0x00980913, "Gain Level", range 0,256 
[2]     "Gain Level", default 0, current -28
[2] found control 0x08000000, "Save User Settings", range 0,0 
[2]     "Save User Settings", default 0, current -28
[2] found control 0x08000001, "Restore User Settings", range 0,0 
[2]     "Restore User Settings", default 0, current -28
[2] mmap information:
[2] frames=2
[2] 0 length=462848
[2] 1 length=462848
[2] Using V4L2
[1] Started stream webcam server in port 8081
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[0] httpd - Finishing: Success
[0] httpd Closing
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[1] v4l2_next: VIDIOC_DQBUF: Input/output error
[1] Video device fatal error - terminating camera thread
[1] Thread exiting
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] v4l2_next: VIDIOC_DQBUF: Input/output error
[2] Error capturing first image
[2] Thread finishing...

Environment

Motion version: 3.2.8
ffmpeg version: 0.4.9
Libraries: ffmpeg, mysql, postgresql
Server OS: Gentoo, Kernel 2.6.20

-- MickaelChoisnard - 25 Jun 2007

Are you using USB 1.0/1.1 or 2.0 ... i can't reproduce your problem with a USB 2.0 host with to pwc cameras connected , so try to plug your cameras in a USB 2.0 ... also use mbufs=3 to load pwc.

-- AngelCarpintero - 26 Jun 2007

Answer

I think it's USB1. I use Philips SPC900NC and PCVC740K ToUcam Pro In lshw, i found USB2 but nothing to connect.

        *-usb:0
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1
             vendor: Intel Corporation
             physical id: 1d
             bus info: pci@0000:00:1d.0
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
           *-usbhost
                product: UHCI Host Controller
                vendor: Linux 2.6.20-gentoo-r8 uhci_hcd
                physical id: 1
                bus info: usb@1
                logical name: usb1
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
              *-usb:0
                   description: Audio device
                   product: PCVC740K ToUcam Pro [pwc]
                   vendor: Philips
                   physical id: 1
                   bus info: usb@1:1
                   version: 0.03
                   serial: 01690000A5000000
                   capabilities: usb-1.10 audio-control
                   configuration: driver=snd-usb-audio maxpower=500mA speed=12.0MB/s
              *-usb:1
                   description: Audio device
                   vendor: Philips
                   physical id: 2
                   bus info: usb@1:2
                   version: 0.03
                   serial: 01690000D6400130
                   capabilities: usb-1.10 audio-control
                   configuration: driver=snd-usb-audio maxpower=500mA speed=12.0MB/s
        *-usb:1
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2
             vendor: Intel Corporation
             physical id: 1d.1
             bus info: pci@0000:00:1d.1
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
           *-usbhost
                product: UHCI Host Controller
                vendor: Linux 2.6.20-gentoo-r8 uhci_hcd
                physical id: 1
                bus info: usb@2
                logical name: usb2
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
              *-usb
                   description: Human interface device
                   product: Back-UPS BR  800 FW:9.o2 .I USB FW:o2
                   vendor: American Power Conversion
                   physical id: 2
                   bus info: usb@2:2
                   version: 1.06
                   serial: NB0703002066
                   capabilities: usb-1.10
                   configuration: driver=usbhid maxpower=24mA speed=1.5MB/s
        *-usb:2
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3
             vendor: Intel Corporation
             physical id: 1d.2
             bus info: pci@0000:00:1d.2
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
           *-usbhost
                product: UHCI Host Controller
                vendor: Linux 2.6.20-gentoo-r8 uhci_hcd
                physical id: 1
                bus info: usb@3
                logical name: usb3
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
        *-usb:3
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4
             vendor: Intel Corporation
             physical id: 1d.3
             bus info: pci@0000:00:1d.3
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: uhci bus_master
             configuration: driver=uhci_hcd latency=0 module=uhci_hcd
           *-usbhost
                product: UHCI Host Controller
                vendor: Linux 2.6.20-gentoo-r8 uhci_hcd
                physical id: 1
                bus info: usb@4
                logical name: usb4
                version: 2.06
                capabilities: usb-1.10
                configuration: driver=hub maxpower=0mA slots=2 speed=12.0MB/s
        *-usb:4
             description: USB Controller
             product: 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller
             vendor: Intel Corporation
             physical id: 1d.7
             bus info: pci@0000:00:1d.7
             version: 02
             width: 32 bits
             clock: 33MHz
             capabilities: pm debug ehci bus_master cap_list
             configuration: driver=ehci_hcd latency=0 module=ehci_hcd
           *-usbhost
                product: EHCI Host Controller
                vendor: Linux 2.6.20-gentoo-r8 ehci_hcd
                physical id: 1
                bus info: usb@5
                logical name: usb5
                version: 2.06
                capabilities: usb-2.00
                configuration: driver=hub maxpower=0mA slots=8 speed=480.0MB/s


Try to connect at least one of your webcam to usb 4 that is USB 2.0

-- AngelCarpintero - 26 Jun 2007
Topic revision: r4 - 26 Jun 2007, AngelCarpintero
Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.