On Jan 17, 5:15 pm, Brian Johnson <[email protected]> wrote: > no thats fine and also tells me what what i thought was the issue > seems in fact to be the case. It sems you are using an older driver > version that was claimin to support video formats it did not acutally > support. Plese grab the latest one from the git and recopile it. The > othing thing is it is necessary to use libv4l to do format conversion > since many applications do not natively support the formats used in > our driver. Information about using libv4l shuld be included in the > README with our driver. Hopefully doing this will fix things for you.
I'm not sure if this is failing because I'm doing it remotely, but I attempted to create another .jpg with mplayer (in the same way I generated th one posted) using the testing example from the README. I got the following response from mplayer: mplayer tv:// -tv driver=v4l2:width=640:height=480:fps=25:device=/dev/ video0 -vo jpeg MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team CPU: AMD Athlon(tm) XP 2000+ (Family: 6, Model: 8, Stepping: 1) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0 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) 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: ioctl set mute failed: Invalid argument v4l2: ioctl query control failed: Invalid argument v4l2: ioctl query control failed: Invalid argument jpeg: Parsing suboptions. jpeg: Progressive JPEG disabled. jpeg: Baseline JPEG enabled. jpeg: Suboptions parsed OK. ========================================================================== Cannot find codec matching selected -vo and video format 0x30323953. Read DOCS/HTML/en/codecs.html! ========================================================================== v4l2: ioctl set mute failed: Invalid argument v4l2: 0 frames successfully processed, 0 frames dropped. Exiting... (End of file) Here's what v4l-info looks like now: ### v4l2 device info [/dev/video0] ### general info VIDIOC_QUERYCAP driver : "sn9c20x" card : "SN9C20x USB 2.0 Webcam Driver" bus_info : "usb-0000:00:02.2-2.1" version : 32.9.1 capabilities : 0x5000001 [VIDEO_CAPTURE,READWRITE,STREAMING] standards inputs VIDIOC_ENUMINPUT(0) index : 0 name : "Webcam" type : CAMERA audioset : 0 tuner : 0 std : 0x0 [] status : 0x0 [] video capture VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE) index : 0 type : VIDEO_CAPTURE flags : 0 description : "SN9C20X I420 (YUV 4:2:0)" pixelformat : 0x30323953 [S920] VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE) index : 1 type : VIDEO_CAPTURE flags : 0 description : "Bayer 8bit (BGGR)" pixelformat : 0x31384142 [BA81] VIDIOC_ENUM_FMT(2,VIDEO_CAPTURE) index : 2 type : VIDEO_CAPTURE flags : 0 description : "JPEG (YUV 4:2:2)" pixelformat : 0x4745504a [JPEG] VIDIOC_ENUM_FMT(3,VIDEO_CAPTURE) index : 3 type : VIDEO_CAPTURE flags : 0 description : "" pixelformat : 0x00000000 [....] VIDIOC_G_FMT(VIDEO_CAPTURE) type : VIDEO_CAPTURE fmt.pix.width : 640 fmt.pix.height : 480 fmt.pix.pixelformat : 0x30323953 [S920] fmt.pix.field : ANY fmt.pix.bytesperline : 960 fmt.pix.sizeimage : 460800 fmt.pix.colorspace : SRGB fmt.pix.priv : 0 controls VIDIOC_QUERYCTRL(BASE+0) id : 9963776 type : INTEGER name : "Brightness" minimum : 0 maximum : 255 step : 1 default_value : 127 flags : 0 VIDIOC_QUERYCTRL(BASE+1) id : 9963777 type : INTEGER name : "Contrast" minimum : 0 maximum : 255 step : 1 default_value : 127 flags : 0 ### video4linux device info [/dev/video0] ### general info VIDIOCGCAP name : "SN9C20x USB 2.0 Webcam Driver" type : 0x1 [CAPTURE] channels : 1 audios : 0 maxwidth : 640 maxheight : 480 minwidth : 48 minheight : 32 channels VIDIOCGCHAN(0) channel : 0 name : "Webcam" tuners : 0 flags : 0x0 [] type : CAMERA norm : 0 tuner ioctl VIDIOCGTUNER: Invalid argument audio ioctl VIDIOCGAUDIO: Invalid argument picture VIDIOCGPICT brightness : 32639 hue : 0 colour : 0 contrast : 32639 whiteness : 13107 depth : 12 palette : unknown buffer ioctl VIDIOCGFBUF: Invalid argument window VIDIOCGWIN x : 0 y : 0 width : 640 height : 480 chromakey : 0 flags : 0 Thanks, Ben Salmon --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
