<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi,<br></div>You have two options doing it in gstreamermm:<br></div> * using parser (so you use gst-launch syntax):<br>      Glib::RefPtr<Gst::Element> element = Gst::Parse::launch("fakesrc ! ... ! nvh264enc ! ...");<br></div>      element->set_state(Gst::STATE_PLAYING); // or any other stuff<br></div><div>  Please note that element can be casted to Gst::Bin, if you need it.<br></div> * constructing pipeline from scratch:<br></div>  Glib::RefPtr<Gst::Element> fakesrc = Gst::ElementFactory::create_element("fakesrc"), encoder = Gst::ElementFactory::create_element("nvh264enc"); // and other elements<br></div>  Glib::RefPtr<Gst::Pipeline> pipeline = Gst::Pipeline::create();<br></div>  pipeline->add(fakesrc)->add(encoder); // and other elements<br></div>  fakesrc->link(encoder); // and other elements<br></div>  pipeline->set_state(Gst::STATE_PLAYING); // or any other operation<br></div>  You can find very basic example of creating simple pipelines this way in the "examples" directory in the repository, e.g. <a href="https://git.gnome.org/browse/gstreamermm/tree/examples/basics/bus.cc">https://git.gnome.org/browse/gstreamermm/tree/examples/basics/bus.cc</a><br><br></div>Feel free to reach me, if you have more detailed questions about gstreamermm<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-11 13:33 GMT+01:00 LC <span dir="ltr"><<a href="mailto:lienes.cirules@gmail.com" target="_blank">lienes.cirules@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
I am going to use gstreamermm api where various plugins can be used.<br>
Currently i need nvenc element like nvh264enc and another element rtmpdump.<br>
<br>
Is it possible to includes all installed plugins in gstreamermm api that<br>
comes with gstreamer written in c.<br>
Maybe there is a chance to parse those pipelines where nvh264enc included ?<br>
<br>
I saw that python binding allows me to do things like this:<br>
<br>
from gi.repository import Gst, GObject<br>
....<br>
main_bin = Gst.parse_bin_from_<wbr>description( "fakesink ! .....! nvh264enc!<br>
..."<br>
...<br>
<br>
And it works!<br>
<br>
Is it possible with gstreamermm.h ?<br>
<br>
Thanks!<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Gstreamermm-and-abilities-to-use-different-plugins-tp4680615.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Gstreamermm-and-<wbr>abilities-to-use-different-<wbr>plugins-tp4680615.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Pozdrawiam<br>Marcin Kolny</div>
</div>