1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 Media library supporting arbitrary formats and filter graphs.
7 <!-- ##### SECTION Long_Description ##### -->
9 GStreamer is a framework for constructing graphs of various filters
10 (termed elements here) that will handle streaming media. Any discreet
11 (packetizable) media type is supported, with provisions for automatically
12 determining source type. Formatting/framing information is provided with
13 a powerful negotiation framework. Plugins are heavily used to provide for
14 all elements, allowing one to construct plugins outside of the GST
15 library, even released binary-only if license require (please don't).
19 GStreamer borrows heavily from both the <ulink
20 url="http://www.cse.ogi.edu/sysl/">OGI media pipeline</ulink> and
21 Microsoft's DirectShow, hopefully taking the best of both and leaving the
22 cruft behind. Its interface is still very fluid and thus can be changed
23 to increase the sanity/noise ratio.
27 The <application>GStreamer</application> library should be initialized with gst_init() before
28 it can be used. You should pass a pointer to the main argc and argv variables so that GStreamer can
29 process its own command line options, as shown in the following example.
33 main (int argc, char *argv[])
35 /* initialize the GStreamer library */
36 gst_init (&argc, &argv);
42 It's allowed to pass two NULL pointers to gst_init() in case you don't want to pass the command
43 line args to GStreamer.
47 You can also use a popt table to initialize your own parameters as shown in the next code
50 static gboolean stats = FALSE;
54 main (int argc, char *argv[])
56 struct poptOption options[] = {
57 { "stats", 's', POPT_ARG_NONE|POPT_ARGFLAG_STRIP, &stats, 0,
58 "Show pad stats", NULL},
62 /* initialize the GStreamer library */
63 gst_init_with_popt_table (&argc, &argv, options);
70 Use gst_version() to query the library version at runtime or use the GST_VERSION_* macros
71 to find the version at compile time.
74 gst_main() and gst_main_quit() enter and exit the main loop. GStreamer doesn't currently require
75 you to us a mainloop but can intergrate with it without problems.
78 <!-- ##### SECTION See_Also ##### -->
80 Check out both <ulink url="http://www.cse.ogi.edu/sysl/">OGI's
81 pipeline</ulink> and Microsoft's DirectShow for some background.
84 <!-- ##### FUNCTION gst_init ##### -->
93 <!-- ##### FUNCTION gst_init_get_popt_table ##### -->
101 <!-- ##### FUNCTION gst_init_with_popt_table ##### -->
109 <!-- # Unused Parameters # -->
114 <!-- ##### FUNCTION gst_init_check ##### -->
124 <!-- ##### FUNCTION gst_init_check_with_popt_table ##### -->
133 <!-- # Unused Parameters # -->
137 <!-- ##### FUNCTION gst_version ##### -->
147 <!-- ##### FUNCTION gst_main ##### -->
154 <!-- ##### FUNCTION gst_main_quit ##### -->
161 <!-- ##### FUNCTION gst_has_threads ##### -->
169 <!-- ##### FUNCTION gst_use_threads ##### -->
177 <!-- ##### VARIABLE g_log_domain_gstreamer ##### -->
179 The variable that holds the GStreamer log domain
183 <!-- ##### MACRO GST_VERSION_MAJOR ##### -->
185 The major version of GStreamer at compile time
190 <!-- ##### MACRO GST_VERSION_MINOR ##### -->
192 The minor version of GStreamer at compile time
197 <!-- ##### MACRO GST_VERSION_MICRO ##### -->
199 The micro version of GStreamer at compile time