Paweł Jabłoński schrieb:
I changed a few parameters (i think it's gain and exposure but the datasheet is a bit unclear). Anyway - I expect the image to brighten up and shine and make us all very happy.Great work! It is working now! Congratulations! There are some limitations: - Mplayer is working fine, the best that without LD_PRELOAD too :-) - Skype - only with your start script start script it is working too :-) (only things I had to change were library path and skype) and script name because of apparmor limits) I see that skype is working better (brightness) when I start mplayer first flash is not working (blask screen) , after LD_PRELOAD I see garbage and firefox crashed - kopete crashed Brightness is worse than in Windows (too dark picture with not very good light (bulb about 100W) LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so kopete paw...@hpw:~/webcam/microdia> VIDIOC_ENUM_FMT: Zły argument VIDIOC_ENUM_FMT: Zły argument terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc KCrash: Application 'kopete' crashing... - ekiga complain about wrong video format - amsn almost works, but picture is flashing, brightnes and picture controls working dmesg usb 1-6: USB disconnect, address 7 microdia: Microdia USB 2.0 Webcam unplugged microdia: Microdia USB 2.0 Webcam releases control of video device /dev/video0 usb 1-6: new high speed USB device using ehci_hcd and address 8 usb 1-6: configuration #1 chosen from 1 choice microdia: Microdia USB 2.0 Webcam - 0C45:627C plugged-in. microdia: Detected SN9C20X Bridge microdia: Detected HV7131R Sensor microdia: Microdia USB 2.0 Webcam is now controlling video device /dev/video0 usb 1-6: New USB device found, idVendor=0c45, idProduct=627c usb 1-6: New USB device strings: Mfr=0, Product=1, SerialNumber=0 usb 1-6: Product: USB20 Camera microdia: [E] Empty buffer queue. paw...@hpw:~> mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo xv MPlayer dev-SVN-r27637-4.3-openSUSE Linux 11.0 (i686)-Packman (C) 2000-2008 MPlayer Team CPU: Genuine Intel(R) CPU T2500 @ 2.00GHz (Family: 6, Model: 14, Stepping: 8) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. Warning unknown option fourcc at line 2 Can't open joystick device /dev/input/js0: No such file or directory Can't init input joystick mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Playing tv://. TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski <[email protected]> comment: first try, more to come ;-) Selected device: Microdia USB 2.0 Webcam Driver Capabilites: video capture read/write streaming supported norms: inputs: 0 = Webcam;v4l2: ioctl get input failed: Invalid argument Current input: 1 Current format: unknown (0x4745504a) v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument tv.c: norm_from_string(pal): Bogus norm parameter, setting default. v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! Selected input hasn't got a tuner! v4l2: Cannot get fps v4l2: ioctl set mute failed: Invalid argument v4l2: ioctl query control failed: Invalid argument v4l2: ioctl query control failed: Invalid argument ========================================================================== Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder) ========================================================================== Audio: no sound Starting playback... VDec: vo config request - 640 x 480 (preferred colorspace: Planar 422P) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] VDec: using Planar 422P as output csp (no 1) Movie-Aspect is undefined - no prescaling applied. SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 9 -> 8 [swscaler @ 0x896b0a0]BICUBIC scaler, from yuv422p to yuv420p using MMX2 [swscaler @ 0x896b0a0]using 4-tap MMX scaler for horizontal luminance scaling [swscaler @ 0x896b0a0]using 4-tap MMX scaler for horizontal chrominance scaling [swscaler @ 0x896b0a0]using 1-tap MMX "scaler" for vertical scaling (YV12 like) [swscaler @ 0x896b0a0]640x480 -> 640x480 VO: [xv] 640x480 => 640x480 Planar YV12 v4l2: ioctl set mute failed: Invalid argument v4l2: 592 frames successfully processed, -590 frames dropped. Exiting... (Quit) --~--~---------~--~----~------------~-------~--~----~ Lets make microdia webcams plug'n play, (currently plug'n pray) To post to this group, send email to [email protected] Visit us online https://groups.google.com/group/microdia -~----------~----~----~----~------~----~------~--~---
Great!I'll write a few functions to make exposure and gain adjustable so you can improve image quality yourself.
GWater
signature.asc
Description: OpenPGP digital signature
