[gst-devel] Newbie question on plugins

Luca Ognibene skaboy81 at virgilio.it
Mon Apr 11 04:12:26 CEST 2005


On Mon, Apr 11, 2005 at 11:42:50AM +0800, John Darrington wrote:
> Hi,
> 
> I'm trying to write a video plugin.
> 
> So  I took the template from
> anoncvs at cvs.freedesktop.org:/cvs/gstreamer
> 
> and run it thought this command
> 
> gst-launch-0.8 xvideosrc !  myplugin  ! xvimagesink
> 
> No problem.
> 
> 
> Now I want to customise it, so I change the line 
> 		 GST_STATIC_CAPS("ANY")
> to read
> 
>  GST_STATIC_CAPS ("video/x-raw-rgb, "
>           	  "framerate = (int) [ 1, 100 ], "
> 		  "width =  (int) [ 1, 2147483647 ], "
>                   "height = (int) [ 1, 2147483647 ] ")
> 
> But now when I try to run the pipeline, I get 
> 
>  erroneous pipeline: could not link videotestsrc0 to testplugin0
> 
I don't have xvideosrc installed right now so i can't check but i think
thata xvideosrc uses video/x-raw-yuv and your plugin requires
video/x-raw-rgb. You should add a colorspace converter plugin between
the elements (xvideosrc ! ffmpegcolorspace ! myplugin ! xvimagesink).

hope this works 

ciao
Luca





More information about the gstreamer-devel mailing list