Thanks GWater and Gijs ,

I figured it out thanks to your suggestions.

Just had to

sudo modprobe videodev
sudo insmod ./sn9c20x.ko


then to automate this to remain loaded on future reboots, I will try
what Gijs suggested and if I have problems I'll let you know

echo "videodev >> /etc/modules"
Repeat for the other modules.

Thanks,

Skype is working using my webcam, MPlayer using webcam works like
this, as long as I use the ldconfig parameters mentioned in this
thread.

Thanks again


On May 29, 12:29 am, Gijs Hillenius <[email protected]> wrote:
> On 28 mei 2009, at 20:07, Josua Grawitter <[email protected]>  
> wrote:
>
>
>
> > Am Donnerstag 28 Mai 2009 15:35:41 schrieb Joseph Olstad:
> >> Claudio, did you try loading MPlayer like this?
>
> >> Try this command instead
> >> LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv://     -tv
> >> driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11
>
> >> See if that makes a difference.  I did this and it worked with the  
> >> new
> >> sn9c20x the first time I tested it , I also tested with skype using
> >> the LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype
> >> and video in Skype worked for me as well (sound with skype was  
> >> another
> >> story though).
>
> >> HOWEVER, now I have a new problem, for some reason, the driver was
> >> loaded, now it doesn't seem to be loaded anymore after I ran insmod
> >> once , tested ok first time I ran it, then several days later
> >> attempted to use the webcam again but I can't now, says /dev/video0
> >> doesn't exist and I get an error inserting the kernel module.  I  
> >> tried
> >> recompiling and inserting again.   It appears that I need to run
> >> insmod after I reboot?  If so, what are the potential issues that
> >> could come up there? I am using Ubuntu 9.04 , how do I make the  
> >> kernel
> >> module come back up after rebooting automatically?  Or is it some
> >> other issue like a temp file that is locked in /tmp or something ? (I
> >> didn't try cleaning the /tmp folder yet)
>
> >> Here is output from dmesg | tail
> >> $ dmesg|tail
> >> [10161.472157] ath5k phy0: noise floor calibration failed (2412MHz)
> >> [10161.580170] ath5k phy0: noise floor calibration failed (2417MHz)
> >> [10281.472188] ath5k phy0: noise floor calibration failed (2412MHz)
> >> [10281.576168] ath5k phy0: noise floor calibration failed (2417MHz)
> >> [11552.798806] sn9c20x: Unknown symbol video_ioctl2
> >> [11552.800383] sn9c20x: Unknown symbol video_devdata
> >> [11552.801942] sn9c20x: Unknown symbol video_unregister_device
> >> [11552.802367] sn9c20x: Unknown symbol video_device_alloc
> >> [11552.802586] sn9c20x: Unknown symbol video_register_device
> >> [11552.803665] sn9c20x: Unknown symbol video_device_release
>
> >> and from "sudo insmod sn9c20x.ko"
> >> $ sudo insmod sn9c20x.ko
> >> [sudo] password for joe:
> >> insmod: error inserting 'sn9c20x.ko': -1 Unknown symbol in module
>
> >> I'll have to review the installation procedure again and try it  
> >> again,
> >> but perhaps there's something else going on.  How can I automatically
> >> have this kernel module load every time I start my notebook computer
> >> with Ubuntu 9.04?
>
> >> Thanks for the assistance.
>
> >> On May 28, 3: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 onlinehttps://groups.google.com/group/
>
> > All you need is "videodev":
> > # modprobe videodev
>
> And if that works, add these modules to /etc/modules ..
>
> echo "videodev >> /etc/modules"
> Repeat for the other modules.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to