Webcam resolution limit

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Webcam resolution limit

Postby CrystalCowboy » Tue Aug 28, 2012 5:54 pm

I have a "Hercules Deluxe Optical Glass" USB webcam. It works fine on Fedora 16(x86_64) at 640x480 pixel resolution.

I tried it out on my Raspberry Pi. It works at 352x288 resolution, but when i try to use it at 640x480, it fails. This is true on both Arch and Raspbian, so I presume it is an issue with a USB driver which is shared by both distributions.
This is true for motion, cheese and fswebcam on Raspbian. This is true for motion, fswebcam and mjpg-streamer on Arch. (BTW, I am impressed with the selection of packages on Arch.)

ArchlinxARM info:
Linux alarmpi 3.1.9-20-ARCH+ #1 PREEMPT Mon Jun 11 05:55:47 UTC 2012 armv6l GNU/Linux
libusb-compat 0.1.4-1
libusbx 1.0.11-2
usbutils 005-2 (I just listed all pacman entries with USB in them)

dmesg output:
Aug 2 10:30:47 pi kernel: [ 1056.520148] usb 1-1.3.2: USB disconnect, device number 6
Aug 2 10:30:54 pi kernel: [ 1063.703142] usb 1-1.3.4: new high speed USB device number 9 using dwc_otg
Aug 2 10:30:54 pi kernel: [ 1063.848685] usb 1-1.3.4: New USB device found, idVendor=06f8, idProduct=300d
Aug 2 10:30:54 pi kernel: [ 1063.848718] usb 1-1.3.4: New USB device strings: Mfr=2, Product=1, SerialNumber=0
Aug 2 10:30:54 pi kernel: [ 1063.848751] usb 1-1.3.4: Product: Deluxe Optical Glass
Aug 2 10:30:54 pi kernel: [ 1063.848770] usb 1-1.3.4: Manufacturer: Guillemot Corporation
Aug 2 10:30:54 pi kernel: [ 1063.857129] uvcvideo: Found UVC 1.00 device Deluxe Optical Glass (06f8:300d)
Aug 2 10:30:54 pi kernel: [ 1063.863145] input: Deluxe Optical Glass as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.4/1-1.3.4:1.0/input/input4
Aug 2 10:30:54 pi kernel: [ 1063.895908] 9:3:1: cannot get freq at ep 0x84

Info from fswebcam in verbose mode:
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
src_v4l2_get_capability,87: /dev/video0 information:
src_v4l2_get_capability,88: cap.driver: "uvcvideo"
src_v4l2_get_capability,89: cap.card: "Deluxe Optical Glass"
src_v4l2_get_capability,90: cap.bus_info: "usb-bcm2708_usb-1.2.4"
src_v4l2_get_capability,91: cap.capabilities=0x04000001
src_v4l2_get_capability,92: - VIDEO_CAPTURE
src_v4l2_get_capability,103: - STREAMING
No input was specified, using the first.
src_v4l2_set_input,181: /dev/video0: Input 0 information:
src_v4l2_set_input,182: name = "Camera 1"
src_v4l2_set_input,183: type = 00000002
src_v4l2_set_input,185: - CAMERA
src_v4l2_set_input,186: audioset = 00000000
src_v4l2_set_input,187: tuner = 00000000
src_v4l2_set_input,188: status = 00000000
src_v4l2_set_pix_format,541: Device offers the following V4L2 pixel formats:
src_v4l2_set_pix_format,554: 0: [0x56595559] 'YUYV' (YUV 4:2:2 (YUYV))
Using palette YUYV
Adjusting resolution from 384x288 to 352x288.
src_v4l2_set_mmap,693: mmap information:
src_v4l2_set_mmap,694: frames=4
src_v4l2_set_mmap,741: 0 length=202752
src_v4l2_set_mmap,741: 1 length=202752
src_v4l2_set_mmap,741: 2 length=202752
src_v4l2_set_mmap,741: 3 length=202752
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
Unable to load font 'sans': fontconfig: Couldn't retrieve font file name.
Disabling the the banner.
Writing JPEG image to 'junk.jpeg'.

At 352x288, it looks fine. At all other resolutions, it looks terrible, with either streaking or patches indicative of incorrect resolution.

Apparently I'm not the only one experiencing this problem:
Problem if resolution is greater then 352x288
CrystalCowboy
 
Posts: 1
Joined: Mon Aug 27, 2012 8:59 pm

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 45 guests