2001-12-15 23:13:04 +00:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
|
|
|
|
<!ENTITY % magic-entities SYSTEM "magic">
|
|
|
|
%magic-entities;
|
2000-08-16 21:38:57 +00:00
|
|
|
|
2001-12-15 23:13:04 +00:00
|
|
|
<!ENTITY INTRO SYSTEM "intro.xml">
|
|
|
|
<!ENTITY MOTIVATION SYSTEM "motivation.xml">
|
|
|
|
<!ENTITY GOALS SYSTEM "goals.xml">
|
2000-08-18 20:35:48 +00:00
|
|
|
|
2001-12-15 23:13:04 +00:00
|
|
|
<!ENTITY INIT SYSTEM "init.xml">
|
|
|
|
<!ENTITY ELEMENTS SYSTEM "elements.xml">
|
|
|
|
<!ENTITY PADS SYSTEM "pads.xml">
|
|
|
|
<!ENTITY CONNECTIONS SYSTEM "connections.xml">
|
|
|
|
<!ENTITY BINS SYSTEM "bins.xml">
|
|
|
|
<!ENTITY BUFFERS SYSTEM "buffers.xml">
|
|
|
|
<!ENTITY STATES SYSTEM "states.xml">
|
2000-08-22 21:18:18 +00:00
|
|
|
|
2001-12-15 23:13:04 +00:00
|
|
|
<!ENTITY HELLOWORLD SYSTEM "helloworld.xml">
|
|
|
|
<!ENTITY FACTORIES SYSTEM "factories.xml">
|
|
|
|
<!ENTITY AUTOPLUGGING SYSTEM "autoplugging.xml">
|
|
|
|
<!ENTITY HELLOWORLD2 SYSTEM "helloworld2.xml">
|
2000-08-22 21:18:18 +00:00
|
|
|
|
2001-12-15 23:13:04 +00:00
|
|
|
<!ENTITY THREADS SYSTEM "threads.xml">
|
|
|
|
<!ENTITY QUEUES SYSTEM "queues.xml">
|
|
|
|
<!ENTITY COTHREADS SYSTEM "cothreads.xml">
|
|
|
|
<!ENTITY DYNAMIC SYSTEM "dynamic.xml">
|
|
|
|
<!ENTITY TYPEDETECTION SYSTEM "typedetection.xml">
|
|
|
|
<!ENTITY UTILITY SYSTEM "utility.xml">
|
|
|
|
|
|
|
|
<!ENTITY XML SYSTEM "xml.xml">
|
|
|
|
<!ENTITY PLUGINS SYSTEM "plugins.xml">
|
|
|
|
<!ENTITY DEBUGGING SYSTEM "debugging.xml">
|
|
|
|
<!ENTITY PROGRAMS SYSTEM "programs.xml">
|
|
|
|
<!ENTITY COMPONENTS SYSTEM "components.xml">
|
|
|
|
<!ENTITY QUOTES SYSTEM "quotes.xml">
|
2000-08-16 21:38:57 +00:00
|
|
|
]>
|
|
|
|
|
2001-02-16 12:14:30 +00:00
|
|
|
<book id="index">
|
2000-08-16 21:38:57 +00:00
|
|
|
<bookinfo>
|
|
|
|
|
|
|
|
<authorgroup>
|
|
|
|
<author>
|
|
|
|
<firstname>Wim</firstname>
|
|
|
|
<surname>Taymans</surname>
|
|
|
|
<authorblurb>
|
|
|
|
<para>
|
|
|
|
<email>wim.taymans@chello.be</email>
|
|
|
|
</para>
|
|
|
|
</authorblurb>
|
|
|
|
</author>
|
|
|
|
</authorgroup>
|
|
|
|
|
2001-02-16 12:14:30 +00:00
|
|
|
<legalnotice id="legalnotice">
|
2000-08-16 21:38:57 +00:00
|
|
|
<para>
|
|
|
|
This material may be distributed only subject to the terms and
|
|
|
|
conditions set forth in the Open Publication License, v1.0 or later (the
|
|
|
|
latest version is presently available at <ulink url="
|
|
|
|
http://www.opencontent.org/openpub/"
|
|
|
|
type="http">http://www.opencontent.org/openpub/</ulink> )
|
|
|
|
</para>
|
|
|
|
</legalnotice>
|
|
|
|
|
2000-09-09 16:36:10 +00:00
|
|
|
<title><application>GStreamer</application> Application Development Manual</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
|
|
|
|
</bookinfo>
|
|
|
|
|
|
|
|
<!-- ############# Overview - part ############### -->
|
|
|
|
|
|
|
|
<part id="overview"><title>Overview</title>
|
|
|
|
<partintro>
|
|
|
|
<para>
|
2000-09-09 16:36:10 +00:00
|
|
|
The first chapter of the book gives you an overview of <application>GStreamer</application>
|
|
|
|
design goals. Chapter 2 rapidly covers the basics of <application>GStreamer</application>
|
2000-08-16 21:38:57 +00:00
|
|
|
programming. In chapter 3 we will move on to the examples.
|
2001-07-07 11:34:54 +00:00
|
|
|
Since <application>GStreamer</application> adheres to the GTK+/glib2 programming model, the reader is
|
|
|
|
assumed to understand the basics of GTK+ and the glib2.0 object model.
|
2000-08-16 21:38:57 +00:00
|
|
|
For a gentle introduction to GTK+, you may wish to read the <emphasis>GTK+
|
|
|
|
Tutorial</emphasis> or Eric Harlow's book <emphasis>Developing Linux
|
|
|
|
Applications with GTK+ and GDK</emphasis>.
|
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
|
|
|
<!-- ############ Introduction - chapter ############# -->
|
|
|
|
&INTRO;
|
|
|
|
|
|
|
|
&MOTIVATION;
|
|
|
|
|
|
|
|
&GOALS;
|
|
|
|
</part>
|
|
|
|
|
|
|
|
<!-- ############ Basic concepts - part ############# -->
|
|
|
|
|
|
|
|
<part id="basic-concepts"><title>Basic concepts</title>
|
|
|
|
<partintro>
|
|
|
|
<para>
|
2000-09-09 16:36:10 +00:00
|
|
|
We will first describe the basics of the <application>GStreamer</application> programming by
|
2000-08-16 21:38:57 +00:00
|
|
|
introducing the different objects needed to create a media pipeline.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
We will use a visual representation of these objects so that we can
|
|
|
|
visualize the more complex pipelines you will learn to build later on.
|
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
|
|
|
<!-- ############ Basic concepts - chapter ############# -->
|
2001-07-07 15:10:29 +00:00
|
|
|
&INIT;
|
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
&ELEMENTS;
|
|
|
|
|
2001-01-06 02:35:17 +00:00
|
|
|
&PLUGINS;
|
|
|
|
|
2001-01-04 23:35:50 +00:00
|
|
|
&PADS;
|
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
&CONNECTIONS;
|
|
|
|
|
|
|
|
&BINS;
|
|
|
|
|
|
|
|
&BUFFERS;
|
|
|
|
|
|
|
|
&STATES;
|
2001-01-06 02:35:17 +00:00
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
<!-- ############ Building Apps - part ############# -->
|
|
|
|
|
|
|
|
<part id="build-app"><title>Building an application</title>
|
|
|
|
|
|
|
|
<partintro>
|
|
|
|
<para>
|
|
|
|
With the basic concepts out of the way, you're ready to start building a
|
2000-09-09 16:36:10 +00:00
|
|
|
full-scale <application>GStreamer</application> application.
|
2000-08-18 20:35:48 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
We assume the reader is familiar with GTK+/GNOME programming.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2000-08-18 20:35:48 +00:00
|
|
|
&HELLOWORLD;
|
|
|
|
|
2000-08-19 16:36:24 +00:00
|
|
|
&FACTORIES;
|
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
|
|
|
|
<!-- ############ Advanced GStreamer - part ############# -->
|
|
|
|
|
2000-09-09 16:36:10 +00:00
|
|
|
<part id="advanced"><title>Advanced <application>GStreamer</application> concepts</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
|
|
|
|
<partintro>
|
|
|
|
<para>
|
2000-09-09 16:36:10 +00:00
|
|
|
In this part we will cover the more advanced features of <application>GStreamer</application>.
|
2000-08-22 21:18:18 +00:00
|
|
|
With the basics you learned in the prevous part you should be
|
|
|
|
able to create a 'simple' pipeline. If you want more control over
|
|
|
|
the media types and the pipeline you should use the more
|
2000-09-09 16:36:10 +00:00
|
|
|
low-level features of <application>GStreamer</application>.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2000-08-22 21:18:18 +00:00
|
|
|
&THREADS;
|
|
|
|
|
|
|
|
&QUEUES;
|
|
|
|
|
|
|
|
&COTHREADS;
|
|
|
|
|
|
|
|
&DYNAMIC;
|
|
|
|
|
|
|
|
&TYPEDETECTION;
|
|
|
|
|
2001-07-07 14:17:22 +00:00
|
|
|
&AUTOPLUGGING;
|
|
|
|
|
|
|
|
&HELLOWORLD2;
|
|
|
|
|
2000-08-22 21:18:18 +00:00
|
|
|
&UTILITY;
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
|
|
|
|
<!-- ############ XML in GStreamer - part ############# -->
|
|
|
|
|
2000-09-09 16:36:10 +00:00
|
|
|
<part id="xml-gstreamer"><title>XML in <application>GStreamer</application></title>
|
2000-08-16 21:38:57 +00:00
|
|
|
|
|
|
|
<partintro>
|
|
|
|
<para>
|
2000-09-09 16:36:10 +00:00
|
|
|
<application>GStreamer</application> has the posibility to externalize the pipelines
|
2000-08-22 21:18:18 +00:00
|
|
|
you create using an XML format. You can load a previously
|
|
|
|
created pipeline by loading the XML file.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2000-08-22 21:18:18 +00:00
|
|
|
&XML;
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ############ Appendices - part ############# -->
|
|
|
|
|
|
|
|
<part id="appendices">
|
|
|
|
<title>Appendices</title>
|
|
|
|
|
|
|
|
<partintro>
|
|
|
|
<para>
|
2000-09-09 16:36:10 +00:00
|
|
|
<application>GStreamer</application> comes prepackaged with a few programs.
|
2001-02-22 23:18:51 +00:00
|
|
|
and some usefull debugging options.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
2000-08-22 21:18:18 +00:00
|
|
|
|
2001-02-22 23:18:51 +00:00
|
|
|
&DEBUGGING;
|
|
|
|
|
2000-08-22 21:18:18 +00:00
|
|
|
&PROGRAMS;
|
|
|
|
|
2000-09-13 19:04:55 +00:00
|
|
|
&COMPONENTS;
|
|
|
|
|
2001-01-08 01:27:07 +00:00
|
|
|
"ES;
|
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
</book>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|