#18953: mjpg-streamer won't work with many webcam.
-----------------------+----------------------------------
 Reporter:  anonymous  |      Owner:  developers
     Type:  defect     |     Status:  new
 Priority:  normal     |  Milestone:  Chaos Calmer (trunk)
Component:  packages   |    Version:  Trunk
 Keywords:             |
-----------------------+----------------------------------
 I tried with at least 4 webcam, only one work with gspca driver, 3 webcam
 with uvc supported won't work.
 Here are example one don't work:
 {{{
 root@OpenWrt:~# lsusb
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 002: ID 1871:0101 Aveo Technology Corp. UVC camera (Bresser
 microscope)
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 }}}

 {{{
 dmesg | egrep -i usb
 [    6.710000] usbcore: registered new interface driver usbfs
 [    6.720000] usbcore: registered new interface driver hub
 [    6.720000] usbcore: registered new device driver usb
 [    6.730000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
 [    6.750000] ehci-platform ehci-platform: new USB bus registered,
 assigned bus number 1
 [    6.780000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
 [    6.780000] hub 1-0:1.0: USB hub found
 [    6.790000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
 [    6.810000] ohci-platform ohci-platform: new USB bus registered,
 assigned bus number 2
 [    6.890000] hub 2-0:1.0: USB hub found
 [    7.110000] usb 1-1: new high-speed USB device number 2 using ehci-
 platform
 [   14.830000] uvcvideo: Found UVC 1.00 device USB2.0 Camera (1871:0101)
 [   14.850000] input: USB2.0 Camera as /devices/platform/ehci-
 platform/usb1/1-1/1-1:1.0/input/input0
 [   14.850000] usbcore: registered new interface driver uvcvideo
 [   14.860000] USB Video Class driver (1.1.1)
 }}}

 {{{
 ls /dev/video*
 /dev/video0
 }}}

 {{{
 v4l2-ctl --all -d /dev/video0
 Driver Info (not using libv4l2):
         Driver name   : uvcvideo
         Card type     : USB2.0 Camera
         Bus info      : usb-ehci-platform-1
         Driver version: 3.14.32
         Capabilities  : 0x84000001
                 Video Capture
                 Streaming
                 Device Capabilities
         Device Caps   : 0x04000001
                 Video Capture
                 Streaming
 Priority: 2
 Video input : 0 (Camera 1: ok)
 Format Video Capture:
         Width/Height  : 320/240
         Pixel Format  : 'YUYV'
         Field         : None
         Bytes per Line: 640
         Size Image    : 153600
         Colorspace    : SRGB
 Crop Capability Video Capture:
         Bounds      : Left 0, Top 0, Width 320, Height 240
         Default     : Left 0, Top 0, Width 320, Height 240
         Pixel Aspect: 1/1
 Streaming Parameters Video Capture:
         Capabilities     : timeperframe
         Frames per second: 30.000 (30/1)
         Read buffers     : 0
                      brightness (int)    : min=0 max=100 step=1 default=30
 value=30
                        contrast (int)    : min=0 max=100 step=1 default=57
 value=57
                      saturation (int)    : min=0 max=4 step=1 default=2
 value=2
                           gamma (int)    : min=1 max=8 step=1 default=3
 value=3
            power_line_frequency (menu)   : min=0 max=2 default=1 value=1
                       sharpness (int)    : min=0 max=100 step=1 default=10
 value=10
          backlight_compensation (int)    : min=0 max=1 step=1 default=1
 value=1
 }}}

 {{{
 uvcdynctrl -f -d /dev/video0
 Listing available frame formats for device /dev/video0:
 Pixel format: YUYV (YUV 4:2:2 (YUYV); MIME type: video/x-raw-yuv)
   Frame size: 640x480
     Frame rates: 30
   Frame size: 160x120
     Frame rates: 30
   Frame size: 320x240
     Frame rates: 30
   Frame size: 176x144
     Frame rates: 30
   Frame size: 352x288
     Frame rates: 30
 }}}

 {{{
 mjpg_streamer --input "input_uvc.so --device /dev/video0 -r 640x480 -f 1 -
 y" --output "output_http.so --port 8080 --www /www/webcam"
 MJPG Streamer Version: svn rev: exported
  i: Using V4L2 device.: /dev/video0
  i: Desired Resolution: 640 x 480
  i: Frames Per Second.: 1
  i: Format............: YUYV
  i: JPEG Quality......: 80
  i: TV-Norm...........: DEFAULT
  i: FPS coerced ......: from 1 to 30
  i: Frame period time ......: 1000 ms
  o: www-folder-path...: /www/webcam/
  o: HTTP TCP port.....: 8080
  o: username:password.: disabled
  o: commands..........: enabled
 Segmentation fault
 }}}

 My router is wzr-hp-ag300h. CC trunk r44330.

--
Ticket URL: <https://dev.openwrt.org/ticket/18953>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to