[gst-devel] A question regarding to dynamic Caps Filter change

Stefan Kost ensonic at hora-obscura.de
Mon May 11 11:15:14 CEST 2009


Zheng, Huan schrieb:
>
> Hi, dear developers
>
> I know that gstreamer supports dynamic change the pipeline, say
> replace an element inside pipeline.
>
>  
>
> I’m wondering whether I can dynamically change caps filter.
>
> Say change from videosrc ! video/x-raw-yuv, width=320, height=240 !
> ffmpegcolorspace ! xvimagesink
>
>                    To    videosrc ! video/x-raw-yuv, width=640,
> height=480 ! ffmpegcolorsapce ! xvimagesink
>
>  
>
> If can, sample code would be highly appreciated!
>
new_caps = gst_caps_from_string ("video/x-raw-yuv, width=640, height=480");
g_object_set(caps_filter, "caps", new_caps, NULL);
gst_caps_unref (new_caps);

Stefan
>
>  
>
>  
>
> Best Regards, Zheng, Huan(ZBT)
>
> OTC/SSD/SSG
>
> Intel Asia-Pacific Research & Developement Ltd
>
> Tel: 021-6116 6435
>
> Inet: 8821 6435
>
> Cub: 3W035
>
>  
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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