Hi again,
I tried a slightly different command:
gst-launch-0.10 v4l2src ! video/x-raw-yuv,width=640,height=480 ! xvimagesink

(gst-launch-0.10:6239): GLib-WARNING **: g_set_prgname() called multiple times
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device 
'/dev/video0' cannot capture at 640x480
Additional debug info:
gstv4l2object.c(1854): gst_v4l2_object_set_format (): 
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for YUYV @ 640x480: Input/output error
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

and I KNOW this camera works at that resolution and video format. 
I setup the same camera on the other laptop that previously had OpenSUSE 
installed and it worked with kernel version 2.6.31-r10 (x86, gentoo this 
time).
The broken one is 2.6.31-r6 amd 64bit. 

are 
CONFIG_USB_VIDEO_CLASS=m
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
the only kernel parameters that matter? I tried with both the usb audio module 
enabled and disabled. (built in for the audio) The camera has a mic, but I 
don't care about it. 

Thanks,
Chris

>Hi Christopher,

>On Friday 05 March 2010 18:43:13 Christopher Harvey wrote:
>> I've been trying to fix a problem with one of my computers that is
>> preventing me from using gstreamer with uvc cameras for a while now. I
>> asked on the gstreamer lists recently, but got no answer.
>> 
>> Firstly, my camera runs fine with guvcview, and I haven't had problems with
>> this camera on other computers. (Namely a default OpenSUSE install, even
>> with gstreamer)
>> 
>> I have a gentoo computer here that refuses to run the camera with
>> gstreamer.
>> 
>> ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device
>> '/dev/video0' cannot capture at 320x240
>> Additional debug info:
>> gstv4l2object.c(1919): gst_v4l2_object_set_format ():
>> /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
>> Call to S_FMT failed for YU12 @ 320x240: Invalid argument
>
>It's quite simple, your webcam doesn't support the YU12 format requested by 
>gstreamer. You need to select another format (YUYV should work).

>> Before I dive into gstreamer source code I wanted to see if anybody here
>> happened to have any tips for uvc cameras and gstreamer. (Yes Cameras, I
>> tried a few)
>> 
>> Here is some system information:
>> $ uname -a
>> Linux Tool 2.6.31-gentoo-r6 #7 SMP PREEMPT Sat Feb 20 13:32:41 EST 2010
>> x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD
>> GNU/Linux
>> 
>> Bus 001 Device 003: ID 046d:08ca Logitech, Inc. Mic (Fusion)
>> 
>> [I--] [ ~] media-libs/gstreamer-0.10.25 (0.10) (tried 0.10.24 as well)
>> 
>> # zcat /proc/config.gz | grep V4L
>> CONFIG_VIDEO_V4L2_COMMON=y
>> # CONFIG_VIDEO_ALLOW_V4L1 is not set
>> # CONFIG_VIDEO_V4L1_COMPAT is not set
>> CONFIG_VIDEO_V4L2=y
>> CONFIG_V4L_USB_DRIVERS=y
>> 
>> Does this look familiar to anybody?
>
>-- 
>Regards,
>
>Laurent Pinchart
_______________________________________________
Linux-uvc-devel mailing list
Linux-uvc-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to