Hey erwin,
please don't use the old uvcvideo driver I gave you.
1) Donwload again the last version:

svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk

2) Change the Makefile as I suggested you (only for Ubuntu distros):
change this line
INSTALL_MOD_DIR := usb/media
with

INSTALL_MOD_DIR := ubuntu/media/usbvideo

3) Unload uvcvdieo and reload it with quirks parameter
sudo modprobe -r uvcvideo
sudo modprobe -v uvcvideo quirks=16


4) Then try again both:
luvcview -f yuv
mplayer tv:// -tv
driver=v4l2:device=/dev/video0:outfmt=yuy2:width=640:height=480:fps=50 -vo
x11 -v -v -v

2008/7/9 erwin <[EMAIL PROTECTED]>:

> i did it now i got this
> [EMAIL PROTECTED]:~$ mplayer tv:// -tv
> driver=v4l2:device=/dev/video0:outfmt=yuy2:width=640:height=480:fps=50
> -vo x11 -v -v -v
> MPlayer 2:1.0~rc1-0ubuntu13.2+medibuntu1 (C) 2000-2006 MPlayer Team
> CPU: Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz (Family: 6, Model:
> 23, Stepping: 6)
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> this_opt = option: v
> Setting v=(null)
> Config pushed level is now 2
> Config pushed level is now 3
> Setting
> tv=driver=v4l2:device=/dev/video0:outfmt=yuy2:width=640:height=480:fps=50
> Setting vo=x11
> get_path('codecs.conf') -> '/home/erwin/.mplayer/codecs.conf'
> Reading /home/erwin/.mplayer/codecs.conf: Can't open
> '/home/erwin/.mplayer/codecs.conf': No such file or directory
> Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf':
> No such file or directory
> Using built-in default codecs.conf.
> CommandLine: 'tv://' '-tv'
> 'driver=v4l2:device=/dev/video0:outfmt=yuy2:width=640:height=480:fps=50'
> '-vo' 'x11' '-v' '-v' '-v'
> init_freetype
> get_path('font/font.desc') -> '/home/erwin/.mplayer/font/font.desc'
> font: can't open file: /home/erwin/.mplayer/font/font.desc
> font: can't open file: /usr/share/mplayer/font/font.desc
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> Using nanosleep() timing
> get_path('input.conf') -> '/home/erwin/.mplayer/input.conf'
> Can't open input config file /home/erwin/.mplayer/input.conf: No such
> file or directory
> Parsing input config file /etc/mplayer/input.conf
> Input config file /etc/mplayer/input.conf parsed: 67 binds
> Opening joystick device /dev/input/js0
> Can't open joystick device /dev/input/js0: No such file or directory
> Can't init input joystick
> Setting up LIRC support...
> 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.
> get_path('.conf') -> '/home/erwin/.mplayer/.conf'
>
> [[[init getch2]]]
>
> Playing tv://.
> get_path('sub/') -> '/home/erwin/.mplayer/sub/'
> STREAM: [tv] tv://
> STREAM: Description: TV Input
> STREAM: Author: Benjamin Zores, Albeu
> STREAM: Comment:
> s->pos=0  newpos=0  new_bufpos=0  buflen=0
> TV file format detected.
> Selected driver: v4l2
>  name: Video 4 Linux 2 input
>  author: Martin Olschewski <[EMAIL PROTECTED]>
>  comment: first try, more to come ;-)
> v4l2: video fd: /dev/video0: 3
> v4l2: ioctl get standard failed: Invalid argument
> Selected device: USB2.0 UVC PC Camera
>  Capabilites:  video capture  streaming
>  supported norms:
>  inputs: 0 = Camera 1;
>  Current input: 0
>  Format YUYV   (16 bits, YUV 4:2:2 (YUYV)): Packed YUY2
>  Current format: YUYV
> v4l2: set format: YUYV
> v4l2: ioctl set format failed: Input/output error
> v4l2: set input: 0
> Selected norm: pal
> v4l2: ioctl enum norm failed: Invalid argument
> Error: Cannot set norm!
> v4l2: set width: 640
> v4l2: ioctl set width failed: Input/output error
> v4l2: set height: 480
> Selected input hasn't got a tuner!
> ==> Found video stream: 0
> v4l2: get format: YUYV
> v4l2: get fps: nan
> v4l2: get width: 640
> v4l2: get height: 480
> Using a ring buffer for maximum 2 frames, 1 MB total size.
> v4l2: ioctl set mute failed: Invalid argument
> v4l2: set Brightness: 25 [0, 128]
> v4l2: set Hue: 0 [0, 5]
> v4l2: set Saturation: 7 [0, 9]
> v4l2: set Contrast: 10 [0, 10]
> [V] filefmt:9  fourcc:0x32595559  size:640x480  fps:50.00  ftime:=0.0200
> get_path('sub/') -> '/home/erwin/.mplayer/sub/'
> X11 opening display: :0.0
> vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
> vo: X11 running at 1280x800 with depth 24 and 32 bpp (":0.0" => local
> display)
> [x11] Detected wm supports NetWM.
> [x11] Detected wm supports FULLSCREEN state.
> [x11] Detected wm supports ABOVE state.
> [x11] Detected wm supports BELOW state.
> [x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
> Disabling DPMS
> DPMSDisable stat: 1
> xscreensaver_disable()
> 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: Packed YUY2)
> Trying filter chain: vo
> vo_x11: query_format was called: 32595559 (Packed YUY2)
> vo_debug: query(Packed YUY2) returned 0x0 (i=0)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> SwScale params: -1 x -1 (-1=no scaling)
> Trying filter chain: scale vo
> vo_x11: query_format was called: 50343434 (Planar 444P)
> scale: query(Planar 444P) -> 0
> vo_x11: query_format was called: 50323234 (Planar 422P)
> scale: query(Planar 422P) -> 0
> vo_x11: query_format was called: 32315659 (Planar YV12)
> scale: query(Planar YV12) -> 1
> vo_x11: query_format was called: 30323449 (Planar I420)
> scale: query(Planar I420) -> 1
> vo_x11: query_format was called: 56555949 (Planar IYUV)
> scale: query(Planar IYUV) -> 1
> vo_x11: query_format was called: 39555659 (Planar YVU9)
> scale: query(Planar YVU9) -> 0
> vo_x11: query_format was called: 39304649 (Planar IF09)
> scale: query(Planar IF09) -> 0
> vo_x11: query_format was called: 50313134 (Planar 411P)
> scale: query(Planar 411P) -> 0
> vo_x11: query_format was called: 3231564e (Planar NV12)
> scale: query(Planar NV12) -> 0
> vo_x11: query_format was called: 3132564e (Planar NV21)
> scale: query(Planar NV21) -> 0
> vo_x11: query_format was called: 32595559 (Packed YUY2)
> scale: query(Packed YUY2) -> 0
> vo_x11: query_format was called: 59565955 (Packed UYVY)
> scale: query(Packed UYVY) -> 0
> vo_x11: query_format was called: 42475220 (BGRA)
> scale: query(BGRA) -> 3
> vo_x11: query_format was called: 42475220 (BGRA)
> vo_debug: query(Packed YUY2) returned 0x4C5 (i=0)
> VDec: using Packed YUY2 as output csp (no 0)
> Movie-Aspect is undefined - no prescaling applied.
> VO Config (640x480->640x480,flags=0,'MPlayer',0x32595559)
> scale: query(Planar 444P) -> 0
> scale: query(Planar 422P) -> 0
> scale: query(Planar YV12) -> 1
> scale: query(Planar I420) -> 1
> scale: query(Planar IYUV) -> 1
> scale: query(Planar YVU9) -> 0
> scale: query(Planar IF09) -> 0
> scale: query(Planar 411P) -> 0
> scale: query(Planar NV12) -> 0
> scale: query(Planar NV21) -> 0
> scale: query(Packed YUY2) -> 0
> scale: query(Packed UYVY) -> 0
> scale: query(BGRA) -> 3
> vo_x11: query_format was called: 42475220 (BGRA)
> SwScale: scaling 640x480 Packed YUY2 to 640x480 BGRA
> SwScaler: reducing / aligning filtersize 1 -> 4
> SwScaler: reducing / aligning filtersize 1 -> 4
> SwScaler: reducing / aligning filtersize 1 -> 1
> SwScaler: reducing / aligning filtersize 1 -> 1
>
> SwScaler: BICUBIC scaler, from yuyv422 to rgb32 using MMX2
> SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
> SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
> SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
> SwScaler: using MMX YV12->BGR32 Converter
> SwScaler: 640x480 -> 640x480
> vo_x11: query_format was called: 42475220 (BGRA)
> REQ: flags=0x4C7  req=0x0
> VO: [x11] 640x480 => 640x480 BGRA
> VO: Description: X11 ( XImage/Shm )
> VO: Author: Aaron Holtzman <[EMAIL PROTECTED]>
> vo_x11: query_format was called: 42475220 (BGRA)
> Sharing memory.
> SwScaler: using unscaled rgb32 -> rgb32 special converter
> Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
> ==========================================================================
> Audio: no sound
> Freeing 0 unused audio chunks.
> Starting playback...
> v4l2: going to capture
> v4l2: select timeout
> *** [scale] Exporting mp_image_t, 640x480x16bpp YUV packed, 614400 bytes
> (imgfmt: 32595559, planes: (nil),(nil),(nil) strides: 0,0,0, chroma:
> 0x0, shift: h:0,v:0)
> *** [vo] Allocating mp_image_t, 640x480x32bpp BGR packed, 1228800 bytes
> (imgfmt: 42475220, planes: 0xb4eb8040,(nil),(nil) strides: 2560,0,0,
> chroma: 0x0, shift: h:0,v:0)
> get_path('subfont.ttf') -> '/home/erwin/.mplayer/subfont.ttf'
> Unicode font: 255 glyphs.
> OSD chg: 3  V: no  pb:-1
> OSD chg: 2  V: no  pb:-1
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> No bind found for key 'MOUSE_BTN0'.
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> v4l2: select timeout ??% ??,?% 0 0
> V:   0.0  39/ 39 ??% ??% ??,?% 0 0
> *** uninit(0xAC9)
> Uninit video: raw
> DEMUXER: freeing demuxer at 0x8a46a08
> v4l2: select timeout
>
>
> MPlayer interrupted by signal 8 in module: free_demuxer
> - MPlayer crashed by bad usage of CPU/FPU/RAM.
>  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
>  disassembly. Details in
> DOCS/HTML/en/bugreports_what.html#bugreports_crash.
> - MPlayer crashed. This shouldn't happen.
>  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
>  gcc version. If you think it's MPlayer's fault, please read
>  DOCS/HTML/en/bugreports.html and follow the instructions there. We
> can't and
>  won't help unless you provide this information when reporting a
> possible bug.
>
> *** uninit(0xC9)
> Successfully enabled DPMS
> gnome_screensaver_control()
> [[[uninit getch2]]]
> vo: uninit ...
> max framesize was 614400 bytes
> [EMAIL PROTECTED]:~$
>
>
>
> On Tue, 2008-07-08 at 23:38 +0200, Laurent Pinchart wrote:
> > Hi Erwin,
> >
> > On Tuesday 08 July 2008, erwin wrote:
> > > Ok folks these are all the things i tried:
> > > [EMAIL PROTECTED]:~$ sudo lsusb -d 174f:8a31 -v | grep "14 Video"
> > > [sudo] password for erwin:
> > >       bFunctionClass         14 Video
> > >       bInterfaceClass        14 Video
> > >       bInterfaceClass        14 Video
> > >       bInterfaceClass        14 Video
> > >       bInterfaceClass        14 Video
> > >       bInterfaceClass        14 Video
> > >       bInterfaceClass        14 Video
> > > [EMAIL PROTECTED]:~$ lsmod | grep uvcvideo
> > > uvcvideo               48644  0
> > > compat_ioctl32          2304  1 uvcvideo
> > > videodev               29312  1 uvcvideo
> > > v4l1_compat            15364  2 uvcvideo,videodev
> > > v4l2_common            18432  2 uvcvideo,videodev
> > > usbcore               138632  8
> > > uvcvideo,usbhid,hci_usb,usb_storage,libusual,uhci_hcd,ehci_hcd
> > > [EMAIL PROTECTED]:~$ luvcview -L
> > > luvcview version 0.2.1
> > > Video driver: x11
> > > A window manager is available
> > > video /dev/video0
> > > /dev/video0 does not support read i/o
> > > { pixelformat = 'YUYV', description = 'YUV 4:2:2 (YUYV)' }
> > > { discrete: width = 640, height = 480 }
> > >         Time interval between frame: 1/20,
> > > { discrete: width = 160, height = 120 }
> > >         Time interval between frame: 1/24,
> > > { discrete: width = 176, height = 144 }
> > >         Time interval between frame: 1/24,
> > > { discrete: width = 320, height = 240 }
> > >         Time interval between frame: 1/24,
> > > { discrete: width = 352, height = 288 }
> > >         Time interval between frame: 1/24,
> > > { discrete: width = 800, height = 600 }
> > >         Time interval between frame: 1/7,
> > > { discrete: width = 1024, height = 768 }
> > >         Time interval between frame: 1/7,
> > > { discrete: width = 1280, height = 800 }
> > >         Time interval between frame: 1/7,
> > > { discrete: width = 1280, height = 960 }
> > >         Time interval between frame: 1/7,
> > > { discrete: width = 1280, height = 1024 }
> > >         Time interval between frame: 1/7,
> > >
> > > then i tried
> > > luvcview -f yuv -s 640x480blank
> > > luvcview -f yuv -s 160x120
> > > luvcview -f yuv -s 176x144blank
> > > luvcview -f yuv -s 320x240no
> > > luvcview -f yuv -s 352x288error 5
> > > luvcview -f yuv -s 800x600too big
> > > luvcview -f yuv -s 1024x768too big
> > > luvcview -f yuv -s 1280x800too big
> > > luvcview -f yuv -s 1280x960too big
> > > luvcview -f yuv -s 1280x1024too big
> > > but i had only snapshot or green screen, but no streaming.
> >
> > Could you please try to set the quirks parameter to 16 when loading the
> > driver ? 'modprobe uvcvideo quirks=16' or 'insmod uvcvideo.ko quirks=16'
> > should do the job.
> >
> > If this works better I'll fix the driver to support your camera out of
> the
> > box.
> >
> > Best regards,
> >
> > Laurent Pinchart
>
> _______________________________________________
> Linux-uvc-devel mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/linux-uvc-devel
>



-- 
Marco Argiolas
[EMAIL PROTECTED]
[EMAIL PROTECTED]
skype: arjos85
msn: [EMAIL PROTECTED]
_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to