[gst-devel] v4lsrc camera resolution

Benoit Fouet benoit.fouet at purplelabs.com
Thu Sep 7 18:14:25 CEST 2006


Hi,

Bebjak, Michal wrote:

>Hello,
>
>I have a question according to the v4lsrc element. I'm trying to start a simple pipeline like this:
>
>gst-launch-0.10 -v v4lsrc ! ffmpegcolorspace ! ximagesink
>
>It worked well, but the camera resolution is only width=(int)176, height=(int)144. So I tried to start it with:
>
>gst-launch-0.10 -v v4lsrc ! 'video/x-raw-yuv,height=320,width=480' ! ffmpegcolorspace ! ximagesink
>
>but I got these following messages:
>
>gst-launch-0.10 -v v4lsrc ! 'video/x-raw-yuv,height=320,width=480' ! ffmpegcolorspace ! ximagesink
>Setting pipeline to PAUSED ...
>Pipeline is live and does not need PREROLL ...
>Setting pipeline to PLAYING ...
>New clock: GstSystemClock
>ERROR: from element /pipeline0/v4lsrc0: Could not get/set settings from/on resource.
>Additional debug info:
>v4lsrc_calls.c(264): gst_v4lsrc_grab_frame (): /pipeline0/v4lsrc0:
>Device is not in streaming mode
>Execution ended after 1978000 ns.
>Setting pipeline to PAUSED ...
>Setting pipeline to READY ...
>Setting pipeline to NULL ...
>FREEING pipeline ...
>
>Can someone please help me to set a higher resolution? I'm using the spca5xx driver and Labtec webcam pro.
>  
>
maybe it supports only "standards" format... have you tried something
like height=480,width=640 ?
i don't know if this is a problem in your pipeline, though... does it
work with height=144,width=176 ?
if so... try also height=288,width=352 to keep the aspect ratio in "cif
world" ('cause 640x480 will bring you to "vga world")

Hope that helps,

-- Ben

>Thank you!
>
>Michal
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>gstreamer-devel mailing list
>gstreamer-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  
>




More information about the gstreamer-devel mailing list