gst_parse_bin_from_description and pad creation

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst_parse_bin_from_description and pad creation

laura la
Hi All,

I'm trying to use rsvgoverlay plugin from gst-plugins-bad, it overlays
a .svg file above a video. It has two sinks, "data_sink" for the .svg
data, and "sink" for video data.

The gst-launch command works fine:

gst-launch v4l2src device=/dev/video0 ! ffmpegcolorspace ! rsvgoverlay
location=/usr/share/icons/gnome/scalable/places/gnome-foot.svg !
ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=640,height=480 !
ffmpegcolorspace ! ximagesink

or

gst-launch -v videotestsrc ! ffmpegcolorspace ! rsvgoverlay
location=foo.svg ! ffmpegcolorspace ! autovideosink

Here are a couple more examples in the plugin code itself:

http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/rsvg/gstrsvgoverlay.c

I need to create the GstElement using gst_parse_bin_from_description:

GstElement * overlay = gst_parse_bin_from_description ("rsvgoverlay
location=foo.svg", TRUE, NULL);

and then link it to other elements of the stream. This isn't working.

Here is a simplified code snippet with working and not working ways to
create the GstElement. http://pastebin.com/uiqDZR1Y

This works:
overlay = gst_element_factory_make ("rsvgoverlay", "overlay");
g_object_set (overlay, "location", "foo.svg", NULL);

But I using  gst_parse_bin_from_description I get errors about
negotiating format. I think during linking it's trying to use
"data_sink" instead of "sink" in rsvgoverlay element. But I'm not 100%
sure.

I tried variations of the pipeline description, for example
ffmpegcolorspace ! rsvgoverlay location=foo.svg ! ffmpegcolorspace but
it doesn't work either.

Here is a GST_DEBUG=4 log file in case you want to take a look:
http://ubuntuone.com/p/Z4L

I'm a participant in the GNOME Outreach program for Women 2010, I'm
working on Cheese application, and the idea is to add funny .svg hats
that follow you around with face recognition. See more here:
http://programmermusings.blogspot.com/
http://projects.gnome.org/cheese/

Bye!
Laura

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

How to compile Gstreamer in VS2010?

jiqingkai
Hi All,

     I'm trying to build gstreamer with Visual Studio 2010.

     I installed these tools listed in readme.txt successfully. But fatal error occurs  when I start Visual Studio 2010

to compile the Gstreamer.

      The following is I done:

    >. Windows Installer XML (WiX) 3.5 or later (e.g. http://wix.sourceforge.net/releases/3.5.2430.0/Wix35.msi)
    >. Perl 5.10+ (32-bit, x86-compatible)
       a. You can skip this step if you're only interested in building GStreamer itself and not the dependencies.
       b. Recommended ActiveState Perl (http://www.activestate.com/downloads/) on Windows
          1. Download the LibXML package (these steps may be different in future releases)
             a. Load the perl package manager ("ppm" command)
             b. Select the Edit > Preferences menu
             c. Under "Add Repository" select "University of Winnipeg" from the "suggested" list and select "Add"
             d. Select "OK"
             e. Scroll down the list and right click on "XML-LibXML" and "XML-LibXML-Common" both and select install
             f. Select File > Run Marked Actions
    >. DirectX SDK (November 2008 or later)
a. Download this, for example, from http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=5493f76a-6d37-478d-ba17-28b1cca4865a&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f5%2f8%2f2%2f58223f79-689d-47ae-bdd0-056116ee8d16%2fDXSDK_Nov08.exe
>. Python 2.6  (32-bit, x86-compatible)
       b. Download, for example, from http://www.python.org/download/releases/2.6.6/
       c. Install to C:\Python26
    >. PyGobject (2.14)
    >.Setup Visual Studio 2008+
            Add Custom Rules Path
                1. Select the Tools > Options... menu.
                2. Expand "Projects and Solutions" and select "VC++ Project Settings"
                3. In "Rule File Search Paths", add the top-level directory for this code (e.g. C:\OSSBuild\)
                   a. If needed, separate other search paths with a semicolon (;).
 
 
 



------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst_parse_bin_from_description and pad creation

Stefan Sauer
In reply to this post by laura la
Am 22.01.2011 02:46, schrieb laura la:

> Hi All,
>
> I'm trying to use rsvgoverlay plugin from gst-plugins-bad, it overlays
> a .svg file above a video. It has two sinks, "data_sink" for the .svg
> data, and "sink" for video data.
>
> The gst-launch command works fine:
>
> gst-launch v4l2src device=/dev/video0 ! ffmpegcolorspace ! rsvgoverlay
> location=/usr/share/icons/gnome/scalable/places/gnome-foot.svg !
> ffmpegcolorspace ! videoscale ! video/x-raw-yuv,width=640,height=480 !
> ffmpegcolorspace ! ximagesink
>
> or
>
> gst-launch -v videotestsrc ! ffmpegcolorspace ! rsvgoverlay
> location=foo.svg ! ffmpegcolorspace ! autovideosink
>
> Here are a couple more examples in the plugin code itself:
>
> http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/ext/rsvg/gstrsvgoverlay.c
>
> I need to create the GstElement using gst_parse_bin_from_description:
>
> GstElement * overlay = gst_parse_bin_from_description ("rsvgoverlay
> location=foo.svg", TRUE, NULL);
>
> and then link it to other elements of the stream. This isn't working.
>
> Here is a simplified code snippet with working and not working ways to
> create the GstElement. http://pastebin.com/uiqDZR1Y
>
> This works:
> overlay = gst_element_factory_make ("rsvgoverlay", "overlay");
> g_object_set (overlay, "location", "foo.svg", NULL);
>
This code is much more recommended for applications as its more directly
expression what you like to do. gst_parse_bin_from_description() might struggle
with the two sinj-pads.

Stefan


> But I using  gst_parse_bin_from_description I get errors about
> negotiating format. I think during linking it's trying to use
> "data_sink" instead of "sink" in rsvgoverlay element. But I'm not 100%
> sure.
>
> I tried variations of the pipeline description, for example
> ffmpegcolorspace ! rsvgoverlay location=foo.svg ! ffmpegcolorspace but
> it doesn't work either.
>
> Here is a GST_DEBUG=4 log file in case you want to take a look:
> http://ubuntuone.com/p/Z4L
>
> I'm a participant in the GNOME Outreach program for Women 2010, I'm
> working on Cheese application, and the idea is to add funny .svg hats
> that follow you around with face recognition. See more here:
> http://programmermusings.blogspot.com/
> http://projects.gnome.org/cheese/
>
> Bye!
> Laura
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel