Gstreamer
Media library supporting arbitrary formats and filter graphs.
GStreamer is a framework for constructing graphs of various filters
(termed elements here) that will handle streaming media. Any discreet
(packetizable) media type is supported, with provisions for automatically
determining source type. Metadata can be passed with all data to provide
formatting/framing information. Plugins are heavily used to provide for
all elements, allowing one to construct plugins outside of the GST
library, even released binary-only if license require (please don't).
GStreamer borrows heavily from both the OGI media pipeline and
Microsoft's DirectShow, hopefully taking the best of both and leaving the
cruft behind. Its interface is still very fluid (I've redesigned the
metadata handling twice already), and thus can be changed to increase the
sanity/noise ratio.
The GStreamer library should be initialized with gst_init() before
it can be used. You should pass a pointer to the main argc and argv variables so that GStreamer can
process its own command line options, as shown in the following example.
int
main (int argc, char *argv[])
{
// initialize the GStreamer library
gst_init (&argc, &argv);
...
}
Use gst_version() to query the library version at runtime or use the GST_VERSION_* macros
to find the version at compile time.
gst_main() and gst_main_quit() enter and exit the main loop.
Check out both OGI's
pipeline and Microsoft's DirectShow for some background.
@argc:
@argv:
@major:
@minor:
@micro:
The major version of GStreamer at compile time
The minor version of GStreamer at compile time
The micro version of GStreamer at compile time