Motion - Support Question 2012x 03x 21x 131913

Bandwith issue in USB 3.0

Question

Hello,

I just bought a new PC with USB 3.0 I used to run Motion on an old PC with one Webcam in 1600X1200 pixel.

I tried first to add the new webcam to the old USB 2.0 port but the second webcam failled.

If I decreaase the size (640X480) of the picture everything is fine.

So I bought a USB 3.0 Hub and plug it to the USB3.0 plug of the new PC As USB 3.0 is 10X faster than USB2.0 I should not have any issue with the bandwith?

Thanks,

JF HEINTZ

[0] [NTC] [ALL] [Mar 21 15:12:13] motion_startup: Using log type (ALL) log level (NTC)
[0] [NTC] [ALL] [Mar 21 15:12:13] become_daemon: Motion going to daemon mode
[0] [NTC] [ALL] [Mar 21 15:12:13] become_daemon: Created process id file /var/run/motion.pid. Process ID is 10759
[0] [NTC] [ALL] [Mar 21 15:12:13] motion_startup: Motion running as daemon process
[0] [NTC] [ENC] [Mar 21 15:12:13] ffmpeg_init: ffmpeg LIBAVCODEC_BUILD 3475200 LIBAVFORMAT_BUILD 3474432
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Thread 1 is from /etc/motion/thread1.conf
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Thread 1 is device: /dev/video0 input -1
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Stream port 3081
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Thread 2 is from /etc/motion/thread2.conf
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Thread 2 is device: /dev/video1 input -1
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Stream port 3082
[0] [NTC] [ALL] [Mar 21 15:12:13] main: Waiting for threads to finish, pid: 10759
[0] [NTC] [STR] [Mar 21 15:12:13] httpd_run: motion-httpd testing : IPV4 addr: 0.0.0.0 port: 3080
[0] [NTC] [STR] [Mar 21 15:12:13] httpd_run: motion-httpd Bound : IPV4 addr: 0.0.0.0 port: 3080
[0] [NTC] [STR] [Mar 21 15:12:13] httpd_run: motion-httpd/3.3.0 running, accepting connections
[0] [NTC] [STR] [Mar 21 15:12:13] httpd_run: motion-httpd: waiting for data on 0.0.0.0 port TCP 3080
[2] [NTC] [ALL] [Mar 21 15:12:13] motion_init: Thread 2 started
[2] [NTC] [VID] [Mar 21 15:12:13] vid_v4lx_start: Using videodevice /dev/video1 and input -1
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "UVC Camera (046d:0990)"
cap.bus_info: "usb-0000:01:00.0-1.2.4"
cap.capabilities=0x05000001
------------------------
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability: - VIDEO_CAPTURE
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability: - READWRITE
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability: - STREAMING
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_select_input: - CAMERA
[2] [WRN] [VID] [Mar 21 15:12:13] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_do_set_pix_format: Testing palette YU12 (640x480)
[1] [NTC] [ALL] [Mar 21 15:12:13] motion_init: Thread 1 started
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_do_set_pix_format: Using palette YU12 (640x480) bytesperlines 640 sizeimage 460800 colorspace 00000008
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Brightness", default 128, current 128
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Contrast", default 32, current 32
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Saturation", default 32, current 32
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,255
[2] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Gain", default 0, current 255
[2] [NTC] [VID] [Mar 21 15:12:13] vid_v4lx_start: Using V4L2
[2] [NTC] [ALL] [Mar 21 15:12:13] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [VID] [Mar 21 15:12:13] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "UVC Camera (046d:0990)"
cap.bus_info: "usb-0000:01:00.0-1.1.4"
cap.capabilities=0x05000001
------------------------
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_select_input: - CAMERA
[1] [WRN] [VID] [Mar 21 15:12:13] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_do_set_pix_format: Testing palette YU12 (1600x1200)
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_do_set_pix_format: Using palette YU12 (1600x1200) bytesperlines 1600 sizeimage 2880000 colorspace 00000008
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Brightness", default 128, current 128
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Contrast", default 32, current 32
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Saturation", default 32, current 32
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:13] v4l2_scan_controls:   "Gain", default 0, current 255
[1] [ERR] [VID] [Mar 21 15:12:13] v4l2_set_mmap: Error starting stream. VIDIOC_STREAMON:
[1] [NTC] [VID] [Mar 21 15:12:13] vid_v4lx_start: Using V4L1
[1] [NTC] [ALL] [Mar 21 15:12:13] image_ring_resize: Resizing pre_capture buffer to 1 items
[2] [NTC] [STR] [Mar 21 15:12:15] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 3082
[2] [NTC] [STR] [Mar 21 15:12:15] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 3082
[2] [NTC] [ALL] [Mar 21 15:12:15] motion_init: Started motion-stream server in port 3082
[2] [NTC] [EVT] [Mar 21 15:12:19] event_new_video FPS 2
[2] [NTC] [EVT] [Mar 21 15:12:19] event_newfile: File of type 8 saved to: /var/motion/cam2/mov/20120321/15/01-20120321151219.avi
[2] [NTC] [ALL] [Mar 21 15:12:19] motion_detected: Motion detected - starting event 1
[2] [NTC] [EVT] [Mar 21 15:12:19] event_newfile: File of type 1 saved to: /var/motion/cam2/img/20120321/15/01-20120321151219-00.jpg
[2] [NTC] [EVT] [Mar 21 15:12:19] event_newfile: File of type 1 saved to: /var/motion/cam2/img/20120321/15/01-20120321151219-01.jpg
[1] [ERR] [ALL] [Mar 21 15:12:23] motion_init: Error capturing first image
[1] [NTC] [STR] [Mar 21 15:12:24] http_bindsock: motion-stream testing : IPV4 addr: 127.0.0.1 port: 3081
[1] [NTC] [STR] [Mar 21 15:12:24] http_bindsock: motion-stream Bound : IPV4 addr: 127.0.0.1 port: 3081
[1] [NTC] [ALL] [Mar 21 15:12:24] motion_init: Started motion-stream server in port 3081
[1] [ERR] [ALL] [Mar 21 15:12:24] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] [Mar 21 15:12:24] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] [Mar 21 15:12:30] motion_loop: Retrying until successful connection with camera
[1] [NTC] [VID] [Mar 21 15:12:30] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "UVC Camera (046d:0990)"
cap.bus_info: "usb-0000:01:00.0-1.1.4"
cap.capabilities=0x05000001
------------------------
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_select_input: - CAMERA
[1] [WRN] [VID] [Mar 21 15:12:30] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_do_set_pix_format: Testing palette YU12 (1600x1200)
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_do_set_pix_format: Using palette YU12 (1600x1200) bytesperlines 1600 sizeimage 2880000 colorspace 00000008
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls:   "Brightness", default 128, current 128
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls:   "Contrast", default 32, current 32
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls:   "Saturation", default 32, current 32
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,255
[1] [NTC] [VID] [Mar 21 15:12:30] v4l2_scan_controls:   "Gain", default 0, current 255
[1] [ERR] [VID] [Mar 21 15:12:30] v4l2_set_mmap: Error starting stream. VIDIOC_STREAMON:
[1] [NTC] [VID] [Mar 21 15:12:30] vid_v4lx_start: Using V4L1
[1] [ERR] [ALL] [Mar 21 15:12:30] motion_loop: Video device fatal error - Closing video device
[1] [NTC] [VID] [Mar 21 15:12:30] vid_close: Closing video device /dev/video0
[1] [WRN] [ALL] [Mar 21 15:12:40] motion_loop: Retrying until successful connection with camera

lsusb
Bus 008 Device 010: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000
Bus 008 Device 011: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000


dmesg
[110303.656681] usb 8-1.2.4: Not enough bandwidth for new device state.
[110303.656715] usb 8-1.2.4: Not enough bandwidth for altsetting 9
[110337.097105] usb 8-1.1.4: Not enough bandwidth for new device state.
[110337.097128] usb 8-1.1.4: Not enough bandwidth for altsetting 11
[110342.916741] xhci_queue_intr_tx: 54 callbacks suppressed
[110347.988187] xhci_queue_intr_tx: 52 callbacks suppressed
[110353.214773] usb 8-1.1.4: Not enough bandwidth for new device state.
[110353.214809] usb 8-1.1.4: Not enough bandwidth for altsetting 11
[110365.682121] xhci_queue_intr_tx: 22 callbacks suppressed
[110373.216377] usb 8-1.1.4: Not enough bandwidth for new device state.
[110373.216403] usb 8-1.1.4: Not enough bandwidth for altsetting 11
[110383.217118] usb 8-1.1.4: Not enough bandwidth for new device state.
[110883.295656] usb 8-1.1.4: Not enough bandwidth for altsetting 11
[110891.334419] xhci_queue_intr_tx: 54 callbacks suppressed
[110893.297124] usb 8-1.1.4: Not enough bandwidth for new device state.
[110893.297148] usb 8-1.1.4: Not enough bandwidth for altsetting 11
[110943.305662] usb 8-1.1.4: Not enough bandwidth for new device state.
[110943.305686] usb 8-1.1.4: Not enough bandwidth for altsetting 11
[110953.261232] xhci_hcd 0000:01:00.0: ERROR no room on ep ring
[110963.262306] xhci_hcd 0000:01:00.0: ERROR no room on ep ring
[111033.273513] xhci_hcd 0000:01:00.0: ERROR no room on ep ring
[111035.541936] xhci_queue_intr_tx: 8 callbacks suppressed
[111043.274977] xhci_hcd 0000:01:00.0: ERROR no room on ep ring
[111053.276480] xhci_hcd 0000:01:00.0: ERROR no room on ep ring


Environment

Motion version: 3.2.12
ffmpeg version:  
Libraries: ffmpeg
Server OS: Fedora 16
-- JeanFrancoisHEINTZ - 21 Mar 2012

Answer

Topic revision: r1 - 21 Mar 2012, JeanFrancoisHEINTZ
Copyright © 1999-2017 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.