[gst-devel] How to change colorspace on the fly
Julien Isorce
julien.isorce at gmail.com
Fri Apr 11 14:15:54 CEST 2008
replace xvimagesink by ximagesink.
ffmpegcolorspace is there not really needed because videotestsrc can output
rgb.
You forgot to add myplugin into the bin. (libass)
Julien
2008/4/11, AlannY <alanny at starlink.ru>:
>
> Thijs Vermeir wrote:
> > Hi,
>
> >
> > You can use ffmpegcolorspace like this:
> > gst-launch -v videotestsrc ! ffmpegcolorspace ! video/x-raw-rgb !
> fakesink
> >
> > But you don't need ffmpegcolorspace because the videotestsrc can
> > also output video in rgb. (Try gst-inspect videotestsrc)
> >
> > To force videotestsrc to use rgb use something like this:
> > gst-launch -v videotestsrc ! video/x-raw-rgb ! fakesink
> >
> > Gr,
> > Thijs
> >
>
>
> And how to do it programmaly? I'm trying, but everything I get
> video/x-raw-yuv ;-(
>
> (example)
> source = gst_element_factory_make("videotestsrc", "source");
> colorspace = gst_element_factory_make("ffmpegcolorspace", "colorspace");
> myplugin = gst_element_factory_make("myplugin", "myplugin");
> video_sink = gst_element_factory_make("xvimagesink", "video_sink");
>
> gst_bin_add_many(GST_BIN(pipeline), source, colorspace, libass,
> video_sink, NULL);
>
> caps = gst_caps_new_simple("video/x-raw-rgb", NULL);
> gst_element_link_filtered(source, colorspace, caps);
> gst_caps_unref(caps);
>
> gst_element_link(colorspace, myplugin);
> gst_element_link(mypluin, video_sink);
>
> Nothing works. Myplugin still receives video/x-raw-yuv
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20080411/d9d086ee/attachment.htm>
More information about the gstreamer-devel
mailing list