Claudiio, Can you try loading the module with debug loggin turned on # sudo rmmod sn9c20x # sudo insmod ./sn9c20x.ko log_level=15
Then after running mplayer the dmesg log should have much more information about what our driver is doing On Sun, May 31, 2009 at 11:11 AM, Claudio Miranda <[email protected]> wrote: > > > Hi GWater, thank for the reply, see the output > > $ dmesg | grep sn9c20x > [ 244.453421] sn9c20x: SN9C20X USB 2.0 Webcam - 0C45:6270 plugged-in. > [ 244.472261] sn9c20x: I2C slave 0x5d returned error during write to > address 0xff > [ 244.564715] sn9c20x: Detected MT9V111 Sensor. > [ 244.564770] sn9c20x: Webcam device 0C45:6270 is now controlling > video device /dev/video0 > [ 244.626720] sn9c20x: Using yuv420 output format > [ 244.626754] usbcore: registered new interface driver sn9c20x > [ 244.626757] sn9c20x: SN9C20x USB 2.0 Webcam Driver v2009.04 loaded > [ 449.259341] sn9c20x: [E] Empty buffer queue. > > > I typed the command, as Olstad suggested, but unfortunately the result > was the same as my original post. > > Do you think a strace would be useful ? > > Thanks for your time and assistance. > > Claudio Miranda > > On May 28, 4:56 am, GWater <[email protected]> wrote: >> I'm sorry no one answered before. >> >> There's one more thing you can do: >> Try the whole mplayer thing again and afterwards post the output of >> $ dmesg | grep sn9c20x >> >> Hopefully this will give me an idea of where the problem could be. >> >> GWater >> >> On 28 Mai, 05:59, Claudio Miranda <[email protected]> wrote: >> >> > Hey guys, sorry to bore you, but do can you help me ? >> >> > Thanks >> >> > Claudio >> >> > On May 17, 4:28 pm, Claudio Miranda <[email protected]> wrote: >> >> > > Hi folks, >> >> > > Some months ago, before microdia module was renamed to sn9c20x, the my >> > > webcam worked very nice (mplayer, skype, shots). >> > > Then I had the good idea to update my microdia git copy, built and >> > > installed, but it doesn't work >> > > Launched mplayer, it displays a blue scree, >> > > seehttp://microdia.googlegroups.com/web/mplayer-webcam-shot1.png >> >> > > My webcam >> > > Bus 005 Device 017: ID 0c45:6270 Microdia U-CAM PC Camera NE878 >> >> > > I have update my local microdia copy this afternoon >> > > $ git pull >> >> > > And have loaded the modules as this >> >> > > sudo modprobe videodev >> > > sudo insmod ./sn9c20x.ko >> >> > > There were no sn9c20x or microdia modules loaded before. >> >> > > Linux version >> > > $ uname -a >> > > Linux foxhound 2.6.24-22-generic #1 SMP Mon Nov 24 18:32:42 UTC 2008 >> > > i686 GNU/Linux >> >> > > Configure v4l2 >> >> > > $ export LD_PRELOAD=/usr/local/lib/libv4l/v4l2convert.so >> > > $ ls -l /usr/local/lib/libv4l/v4l2convert.so >> > > -rwxr-xr-x 1 claudio claudio 13K 2009-04-30 00:42 /usr/local/lib/ >> > > libv4l/v4l2convert.so* >> >> > > The v4l library as compiled and installed on 04/30 >> >> > > launch mplayer >> >> > > $ mplayer tv:// -tv driver=v4l2:width=640:fps=25:height=480:device=/ >> > > dev/video0 >> >> > > See the output below. Can you help me make this work ? >> >> > > Thanks ! >> >> > > MPlayer 1.0rc2-4.2.4 (C) 2000-2007 MPlayer Team >> > > CPU: Genuine Intel(R) CPU T2400 @ 1.83GHz (Family: 6, >> > > Model: 14, Stepping: 8) >> > > CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 >> > > Compiled with runtime CPU detection. >> > > 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: SN9C20x 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 (0x30323953) >> > > 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: ioctl set mute failed: Invalid argument >> > > xscreensaver_disable: Could not find XScreenSaver window. >> > > ========================================================================== >> > > Opening video decoder: [raw] RAW Uncompressed Video >> > > VDec: vo config request - 640 x 480 (preferred colorspace: Planar >> > > YV12) >> > > VDec: using Planar YV12 as output csp (no 0) >> > > Movie-Aspect is undefined - no prescaling applied. >> > > VO: [xv] 640x480 => 640x480 Planar YV12 >> > > Selected video codec: [rawyv12] vfm: raw (RAW YV12) >> > > ========================================================================== >> > > Audio: no sound >> > > Starting playback... >> > > No bind found for key 'c'. >> > > V: 0.0 39/ 39 ??% ??% ??,?% 0 0 > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
