Gstreamermm using C Plugins
- From: Franz Bender <franz bender icloud com>
- To: gtkmm-list gnome org
- Subject: Gstreamermm using C Plugins
- Date: Thu, 29 Oct 2020 11:24:56 +0100
Dear gtkmm-Community,
I’m working on a C++ project involving GStreamer, which is why I use gstreamermm as a C++ bridge. My problem
is that I have to interface with a gstreamer plugin which is not wrapped by gstreamermm. I was unable to
figure out how to implement this into my pipeline.
Specifically I want to use NVidias nvinfer plugin (which is part of their deepstream-neural-network-efforts)
in a C++ tool. What is the preferred way of adding these C-plugins to a Cpp-Gstreamermm Pipeline and setting
their properties? Would I use the Gst::ElementFactory to create the Element?
I would really appreciate a tiny example on how I could add a C plugin to this minimal pipeline example:
Glib::RefPtr<Glib::MainLoop> mainLoop;
Glib::RefPtr<Gst::Pipeline> pipeline;
Gst::init();
mainLoop = Glib::MainLoop::create();
pipeline = Gst::Pipeline::create("Pipeline“);
// Add a pure C plugin, set a property to a value
// and maybe connect a signal
pipeline->set_state(Gst::STATE_PLAYING);
mainLoop->run();
Many thanks in advance for your efforts!
Best regards from Berlin,
Franz :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]