gstreamermm provides C++ bindings for the GStreamer streaming multimedia library. With gstreamermm it is possible to develop applications that work with multimedia in C++.
gstreamermm is developed over glibmm, libsigc++ and libxml++ and the functionalities they provide. This means that, among other things, referencing and unreferencing of GObjects is handled automatically via glibmm's automatic pointer class, Glib:RefPtr<>, and libsigc++'s slots are used for callbacks and signals.
Include the gstreamermm header:
#include <gstreamermm.h>
(You may include individual headers, such as gstreamermm/pipeline.h
instead.)
If your source file is program.cc
, you can compile it with:
g++ program.cc -o program `pkg-config --cflags --libs gstreamermm-0.10`
Alternatively, if using autoconf, use the following in configure.ac:
PKG_CHECK_MODULES([GSTREAMERMM], [gstreamermm-0.10])
Then use the generated GSTREAMERMM_CFLAGS
and GSTREAMERMM_LIBS
variables in the project Makefile.am
files. For example:
program_CPPFLAGS = $(GSTREAMERMM_CFLAGS) program_LDADD = $(GSTREAMERMM_LIBS)