MrFreaky schrieb:
yes it compiles great:

make -C /lib/modules/2.6.28-6-generic/build SUBDIRS=/home/studio/
microdia modules
make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.28-6-
generic'
  CC [M]  /home/studio/microdia/sn9c20x-usb.o
  CC [M]  /home/studio/microdia/sn9c20x-v4l2.o
  CC [M]  /home/studio/microdia/sn9c20x-sysfs.o
  CC [M]  /home/studio/microdia/sn9c20x-dev.o
  CC [M]  /home/studio/microdia/sn9c20x-queue.o
  CC [M]  /home/studio/microdia/sn9c20x-bridge.o
  CC [M]  /home/studio/microdia/omnivision.o
  CC [M]  /home/studio/microdia/micron.o
  CC [M]  /home/studio/microdia/hv7131r.o
  CC [M]  /home/studio/microdia/sn9c20x-debugfs.o
  LD [M]  /home/studio/microdia/sn9c20x.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/studio/microdia/sn9c20x.mod.o
  LD [M]  /home/studio/microdia/sn9c20x.ko
make[1]: se sale del directorio `/usr/src/linux-headers-2.6.28-6-
generic'

Keeping on following the instructions is just fine too:

stu...@studio-desktop:~/microdia$ sudo insmod ./sn9c20x.ko
insmod: error inserting './sn9c20x.ko': -1 Unknown symbol in module
stu...@studio-desktop:~/microdia$ sudo modprobe videodev
stu...@studio-desktop:~/microdia$ sudo modprobe compat-ioctl32
stu...@studio-desktop:~/microdia$ sudo insmod ./sn9c20x.ko

Then this command, produces this output:

LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so mplayer tv:// \
    -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/video0 -vo x11

MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz (Family: 6,
Model: 15, Stepping: 11)
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
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
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: [x11] 640x480 => 640x480 Planar YV12
[swscaler @ 0xf86610]SwScaler: using unscaled yuv420p -> rgb32 special
converter
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
v4l2: select timeout
v4l2: select timeout ??% ??,?% 0 0

and so on....

The video that it produces...: 
http://groups.google.com/group/microdia/web/microdia_capture.jpg?hl=en

but then, its using another compression and resolution than it should.
How do i switch this to a different compression?

doing a ctrl+c:

MPlayer interrupted by signal 2 in module: video_read_frame
v4l2: select timeout
libv4l2: error dequeuing buf: Invalid argument


MPlayer interrupted by signal 8 in module: free_demuxer
GNOME screensaver enabled


Thanks for that information.

You can look up the video format in the dmesg output.

Currently the possibilities are:
- RAW (bayer pattern)
- JPEG
- i420

If you have USB 2.0 and libv4l >=0.5.8 the driver will default to i420.
If you have an older version of libv4l or USB 1.0 or 1.1 it will default to JPEG. Or sometimes to bayer.

GWater

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to