[gst-devel] Picture Settings

Tim-Philipp Müller t.i.m at zen.co.uk
Thu Sep 2 18:08:49 CEST 2010


On Tue, 2010-08-31 at 13:38 -0700, Pedro.henrique wrote:

> I need to open the image from the camera at any resolution, and also want
> to know how I can move the image, example: put running on the top right, and
> appears this error, can someone help me?
>
> gst-launch ksvideosrc device-index=0 ! video/x-raw-rgb, width=1024,
> height=720 ! directdrawsink
> 
> I tried also
> 
> gst-launch ksvideosrc device-index=0 ! video/x-raw-rgb, width=1024,
> height=720 ! dshowvideosink

> Seeting Pipeline to Paused . . .
> ERROR : Pipeline doesn't want Pause.
> ERROR : from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0: Could
> not negotiate format
> Addictional debug info : 
> 
> ..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2719):
> gst_base_src_start(): /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0
> 
> Check your filtered caps, if any

Are you sure that the camera supports this resolution natively? Are you
sure that the camera/driver supports RGB output?

What do these commands output:

 gst-launch-0.10 -v ksvideosrc device-index=0 ! fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 ! video/x-raw-rgb !
fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 !
video/x-raw-rgb,width=1024 ! fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 !
video/x-raw-rgb,width=1024,height=720 ! fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 ! video/x-raw-yuv !
fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 ! video/x-raw-yuv !
fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 ! video/jpeg ! fakesink

 gst-launch-0.10 -v ksvideosrc device-index=0 ! video/x-dv ! fakesink


Also: have you tried adding ffmpegcolorspace ! videoscale in front of
your video sinks?

Cheers
 -Tim





More information about the gstreamer-devel mailing list