@related: [[ov]] [[v4l]] [[webcam]] [[linux-image]] http://rzr.online.fr/q/gspca : #how to tune #webcam hue ? wrong colors in lores mode using #gspca !linux #v4l #driver for a #ov519 #camera . ==== DESCRIPTION ==== While testing [[video]] [[voip]] with [[empathy]] on Hercule [[webcam]], the colors are wrong... lsusb | grep '05a9:4519' #| Bus 001 Device 004: ID 05a9:4519 OmniVision Technologies, Inc. It appeared that on 640x480 there are fine but not in 320x240 ... gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ximagesink # colors are ok empathy # blue is displayed orange / red is displayed blue Using cheese setting hue to 0% fixed the image : sudo cheese # set 320x200 , hue=0% # will show fine But it's not permanent ... mplayer tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0 # OK mplayer tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0 # KO Same issue with [[sip]] ekiga (lo/hi) res How can this fixed ? * [[v4l]] params ? * module kernel /sys params ? * [[upstream]] fixes in sources ? * use other driver : [[ov]] ==== SOLUTION ==== Upgrade [[linux-image]] to 2.6.36+ aptitude install linux-image-2.6.36-rc6-686=2.6.36~rc6-1~experimental.1 uname -a #| Linux nrv 2.6.36-rc6-686 #1 SMP Mon Oct 4 10:25:13 UTC 2010 i686 GNU/Linux sudo modprobe -rv gspca_ov519 ; sudo modprobe -v gspca_ov519 mplayer tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0 See driver params : install v4l-utils ; v4l2-ctl || qv4l2 thx @mchehab http://news.gmane.org/gmane.linux.drivers.video-input-infrastructure http://article.gmane.org/gmane.linux.drivers.video-input-infrastructure/1186/match=gspca ==== driver : gspca_ov519.ko OV519 USB Camera Driver ==== Supported by [[linux-kernel]] : sudo modprobe -rv ov51x_jpeg video gspca_ov519 gspca_main videodev v4l1_compat sudo modprobe -rv gspca_ov519 && sudo modprobe -v gspca_ov519 && camorama -d /dev/video* filename: /lib/modules/3.3.4lenovog470+/kernel/drivers/media/video/gspca/gspca_ov519.ko [36981.846003] usb 2-1.2: new full-speed USB device number 5 using ehci_hcd [36982.153929] gspca_main: v2.14.0 registered [36982.156708] gspca_main: ov519-2.14.0 probing 05a9:4519 [36982.341842] input: ov519 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/input/input12 [36982.342227] usbcore: registered new interface driver ov519 [36982.344637] usbcore: registered new interface driver snd-usb-audio * [[UpStream]] : http://moinejf.free.fr http://mxhaard.free.fr/download.html http://linuxtv.org/ * http://lxr.free-electrons.com/source/drivers/media/video/gspca/ * http://lxr.free-electrons.com/source/Documentation/video4linux/gspca.txt * http://packages.qa.debian.org/g/gspca.html * https://bugs.launchpad.net/ubuntu/+source/linux/+bug/263008 * https://dev.openwrt.org/ticket/7002 * http://www.linuxjournal.com/video/get-your-webcam-working-gspca # 5min * http://linuxtv.org/hg/v4l-dvb/file/abd3aac6644e/linux/drivers/media/video/gspca ==== TRACES ==== nrv:/tmp/tmp-rzr.tmp/20101024-1287912129.tmp# modinfo /lib/modules/2.6.32-5-686/kernel/drivers/media/video/gspca/gspca_main.ko filename: /lib/modules/2.6.32-5-686/kernel/drivers/media/video/gspca/gspca_main.ko license: GPL description: GSPCA USB Camera Driver author: Jean-Francois Moine depends: usbcore,videodev vermagic: 2.6.32-5-686 SMP mod_unload modversions 686 parm: debug:Debug (bit) 0x01:error 0x02:probe 0x04:config 0x08:stream 0x10:frame 0x20:packet 0x40:USBin 0x80:USBout 0x0100: v4l2 (int) nrv:/tmp/tmp-rzr.tmp/20101024-1287912129.tmp# modinfo /lib/modules/2.6.32-5-686/kernel/drivers/media/video/gspca/gspca_ov519.ko filename: /lib/modules/2.6.32-5-686/kernel/drivers/media/video/gspca/gspca_ov519.ko license: GPL description: OV519 USB Camera Driver author: Jean-Francois Moine alias: usb:v0813p0002d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9pA518d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9pA511d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9p8519d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9p4519d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9p0530d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9p0519d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9p0518d*dc*dsc*dp*ic*isc*ip* alias: usb:v05A9p0511d*dc*dsc*dp*ic*isc*ip* alias: usb:v054Cp0155d*dc*dsc*dp*ic*isc*ip* alias: usb:v054Cp0154d*dc*dsc*dp*ic*isc*ip* alias: usb:v045Ep028Cd*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep4068d*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep4067d*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep4064d*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep4061d*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep4060d*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep405Fd*dc*dsc*dp*ic*isc*ip* alias: usb:v041Ep4052d*dc*dsc*dp*ic*isc*ip* depends: gspca_main,usbcore vermagic: 2.6.32-5-686 SMP mod_unload modversions 686 parm: frame_rate:Frame rate (5, 10, 15, 20 or 30 fps) (int) luvcview -L luvcview 0.2.6 SDL information: Video driver: x11 A window manager is available Device information: Device path: /dev/video0 { pixelformat = 'JPEG', description = 'JPEG' } { discrete: width = 320, height = 240 } Time interval between frame: { discrete: width = 640, height = 480 } Time interval between frame: { pixelformat = 'RGB3', description = 'RGB3' } { discrete: width = 320, height = 240 } Time interval between frame: { discrete: width = 640, height = 480 } Time interval between frame: { pixelformat = 'BGR3', description = 'BGR3' } { discrete: width = 320, height = 240 } Time interval between frame: { discrete: width = 640, height = 480 } Time interval between frame: { pixelformat = 'YU12', description = 'YU12' } { discrete: width = 320, height = 240 } Time interval between frame: { discrete: width = 640, height = 480 } Time interval between frame: { pixelformat = 'YV12', description = 'YV12' } { discrete: width = 320, height = 240 } Time interval between frame: { discrete: width = 640, height = 480 } Time interval between frame: v4l2-ctl --all Driver Info: Driver name : ov519 Card type : USB Camera Bus info : usb-0000:00:0f.0-1 Driver version: 132864 Capabilities : 0x05000001 Video Capture Read/Write Streaming Format Video Capture: Width/Height : 640/480 Pixel Format : 'JPEG' Field : None Bytes per Line: 640 Size Image : 115790 Colorspace : JPEG (JFIF/ITU601) Video input : 0 (ov519: ok) Audio input : 0 (Microphone) Streaming Parameters Video Capture: Frames per second: invalid (0/0) Read buffers : 2 ==== MISC ==== https://help.ubuntu.com/community/Webcam#Setting%20brightness,%20contrast,%20color%20etc.%20on%20some%20webcams