Laurent Pinchart wrote:
Hi Paulo,

On Wednesday 05 May 2010 10:59:26 Paulo Assis wrote:
Hi,
Are you sure the camera supports MJPG ?

That's indeed the problem.

Thanks, you were both right, now that I set the input as YUYV it works.

The issue i have now is that it is only able to stream in 320x240 when it's suppose to be able to stream in 640x480. I tried with both MJPG-Streamer and Motion. I paste the motion's log at the end of this email. As you may see motion segfault and try to restart endlessly.

In dmesg i have the following:
------8<----------------------------
Linux video capture interface: v2.00
uvcvideo: Found UVC 1.00 device USB Video Camera (0471:2034)
input: USB Video Camera as /devices/pci0000:00/0000:00:00.1/usb1/1-1/1-1:1.0/input/input0
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest. uvcvideo: device USB Video Camera requested null bandwidth, defaulting to lowest.
------8<----------------------------

As far as mjpg-streamer is concern I get the following, no error but it streams nothing:
------8<----------------------------
r...@openwrt:~# mjpg_streamer -i "input_uvc.so -d /dev/video0 -y -r 640x480" -o "output_http.so -p 8080 -w /www/webcam"
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 5
i: Format............: YUV
i: JPEG Quality......: 80
o: www-folder-path...: /www/webcam/
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled
------8<----------------------------

In 320x480 both softwares stream correctly. And plugged to my ubuntu laptop the webcam output correctly in 640x480 with luvcview. I believe i have an issue with the uvc driver, but i don't know where to look. Any pointer would help.

Regards,
hka




Motion log
------8<----------------------------
[0] Processing thread 0 - config file /etc/motion.conf
[0] Unknown config option "ffmpeg_cap_new"
[0] Unknown config option "ffmpeg_cap_motion"
[0] Unknown config option "ffmpeg_timelapse"
[0] Unknown config option "ffmpeg_timelapse_mode"
[0] Unknown config option "ffmpeg_bps"
[0] Unknown config option "ffmpeg_variable_bitrate"
[0] Unknown config option "ffmpeg_video_codec"
[0] Unknown config option "ffmpeg_deinterlace"
[0] Unknown config option "movie_filename"
[0] Unknown config option "timelapse_filename"
[0] Unknown config option "sql_log_image"
[0] Unknown config option "sql_log_snapshot"
[0] Unknown config option "sql_log_mpeg"
[0] Unknown config option "sql_log_timelapse"
[0] Unknown config option "sql_query"
[0] Motion 3.2.11.1 Started
[0] Thread 1 is from /etc/motion.conf
[1] Thread 1 started
[0] motion-httpd/3.2.11.1 running, accepting connections
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[0] motion-httpd: waiting for data on port TCP 8080
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[0] httpd - Finishing
[0] httpd Closing
[0] httpd thread exit
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[1] Started stream webcam server in port 8081
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[1] Started stream webcam server in port 8081
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
[0] Thread 1 - Watchdog timeout, trying to do a graceful restart
[1] Started stream webcam server in port 8081
[1] Thread exiting
[1] Calling vid_close() from motion_cleanup
[1] Closing video device /dev/video0
[0] Motion thread 1 restart
[1] Thread 1 started
[1] cap.driver: "uvcvideo"
[1] cap.card: "USB Video Camera"
[1] cap.bus_info: "usb-0000:00:00.1-1"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Supported palettes:
[1] 0: YUYV (YUV 4:2:2 (YUYV))
[1] Selected palette YUYV
[1] index_format 6 Test palette YUYV (640x480)
[1] Using palette YUYV (640x480) bytesperlines 1280 sizeimage 614400 colorspace 00000000
[1] found control 0x00980900, "Brightness", range 0,37
[1]     "Brightness", default 24, current 24
[1] found control 0x00980901, "Contrast", range 0,200
[1]     "Contrast", default 124, current 124
[1] found control 0x00980902, "Saturation", range 0,200
[1]     "Saturation", default 121, current 121
[1] found control 0x00980910, "Gamma", range 1,31
[1]     "Gamma", default 18, current 18
[1] mmap information:
[1] frames=4
[1] 0 length=614400
[1] 1 length=614400
[1] 2 length=614400
[1] 3 length=614400
[1] Using V4L2
[1] Resizing pre_capture buffer to 1 items
...

_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to