gstreamermm  1.10.0
gstreamermm Reference Manual

Description

gstreamermm provides C++ bindings for the GStreamer streaming multimedia library. With gstreamermm it is possible to develop applications that work with multimedia in C++. For instance, see Gst::Element, Gst::Bin and Gst::Pipeline.

Features

Basic Usage

Some form of the Gst::init() method must be called before using the library's classes, functions, etc. To get a deeper understanding of how to set up pipelines, deal with elements, pads, etc., see the GStreamer Application Development Manual.

The following includes the gstreamermm header:

#include <gstreamermm.h>

(You may include individual headers, such as gstreamermm/pipeline.h instead.)

Compiling

If your source file is program.cc, you can compile it with:

g++ program.cc -o program `pkg-config --cflags --libs gstreamermm-1.0`

Alternatively, if using autoconf, use the following in configure.ac:

PKG_CHECK_MODULES([GSTREAMERMM_1_0], [gstreamermm-1.0])

Then use the generated GSTREAMERMM_1_0_CFLAGS and GSTREAMERMM_1_0_LIBS variables in the project Makefile.am files. For example:

program_CPPFLAGS = $(GSTREAMERMM_1_0_CFLAGS)
program_LDADD = $(GSTREAMERMM_1_0_LIBS)