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.
32 <title>Initializing the gstreamer library</title>
35 main (int argc, char *argv[])
37 /* initialize the GStreamer library */
38 gst_init (&argc, &argv);
45 It's allowed to pass two NULL pointers to gst_init() in case you don't want to pass the command
46 line args to GStreamer.
50 You can also use a popt table to initialize your own parameters as shown in the next code
53 <title>Initializing own parameters when initializing gstreamer</title>
55 static gboolean stats = FALSE;
59 main (int argc, char *argv[])
61 struct poptOption options[] = {
62 { "stats", 's', POPT_ARG_NONE|POPT_ARGFLAG_STRIP, &stats, 0,
63 "Show pad stats", NULL},
67 /* initialize the GStreamer library */
68 gst_init_with_popt_table (&argc, &argv, options);
76 Use gst_version() to query the library version at runtime or use the GST_VERSION_* macros
77 to find the version at compile time.
80 gst_main() and gst_main_quit() enter and exit the main loop. GStreamer doesn't currently require
81 you to us a mainloop but can intergrate with it without problems.
84 <!-- ##### SECTION See_Also ##### -->
86 Check out both <ulink url="http://www.cse.ogi.edu/sysl/">OGI's
87 pipeline</ulink> and Microsoft's DirectShow for some background.
90 <!-- ##### FUNCTION gst_init ##### -->
99 <!-- ##### FUNCTION gst_init_check ##### -->
109 <!-- ##### FUNCTION gst_init_with_popt_table ##### -->
117 <!-- # Unused Parameters # -->
122 <!-- ##### FUNCTION gst_init_check_with_popt_table ##### -->
131 <!-- # Unused Parameters # -->
135 <!-- ##### FUNCTION gst_init_get_popt_table ##### -->