2001-12-15 23:13:04 +00:00
|
|
|
<?xml version='1.0'?>
|
2003-10-08 14:34:09 +00:00
|
|
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
|
|
|
|
<!ENTITY % image-entities SYSTEM "image.entities">
|
|
|
|
%image-entities;
|
2003-10-08 18:21:41 +00:00
|
|
|
<!ENTITY % version-entities SYSTEM "version.entities">
|
|
|
|
%version-entities;
|
2004-09-08 23:18:55 +00:00
|
|
|
<!ENTITY % url-entities SYSTEM "url.entities">
|
|
|
|
%url-entities;
|
|
|
|
|
|
|
|
<!ENTITY EXAFOOT "
|
|
|
|
<footnote>
|
2004-12-15 17:32:49 +00:00
|
|
|
<para>
|
|
|
|
The code for this example is automatically extracted from
|
|
|
|
the documentation and built under <filename>examples/manual</filename>
|
|
|
|
in the GStreamer tarball.
|
|
|
|
</para>
|
2004-09-08 23:18:55 +00:00
|
|
|
</footnote>
|
|
|
|
">
|
2000-08-16 21:38:57 +00:00
|
|
|
|
2006-01-30 21:11:38 +00:00
|
|
|
<!ENTITY TITLEPAGE SYSTEM "titlepage.xml">
|
|
|
|
|
2003-12-29 14:15:02 +00:00
|
|
|
<!-- Part 1: Overview -->
|
2006-01-30 21:11:38 +00:00
|
|
|
<!ENTITY INTRO SYSTEM "intro-preface.xml">
|
|
|
|
<!ENTITY MOTIVATION SYSTEM "intro-motivation.xml">
|
|
|
|
<!ENTITY CONCEPTS SYSTEM "intro-basics.xml">
|
2000-08-18 20:35:48 +00:00
|
|
|
|
2003-12-29 14:15:02 +00:00
|
|
|
<!-- Part 2: Basic Concepts -->
|
2006-01-30 21:11:38 +00:00
|
|
|
<!ENTITY INIT SYSTEM "basics-init.xml">
|
|
|
|
<!ENTITY ELEMENTS SYSTEM "basics-elements.xml">
|
|
|
|
<!ENTITY BINS SYSTEM "basics-bins.xml">
|
|
|
|
<!ENTITY BUS SYSTEM "basics-bus.xml">
|
|
|
|
<!ENTITY PADS SYSTEM "basics-pads.xml">
|
|
|
|
<!ENTITY DATA SYSTEM "basics-data.xml">
|
|
|
|
<!ENTITY HELLOWORLD SYSTEM "basics-helloworld.xml">
|
2004-12-15 17:32:49 +00:00
|
|
|
|
|
|
|
<!-- Part 3: Advanced Concepts -->
|
2006-01-30 21:11:38 +00:00
|
|
|
<!ENTITY QUERYEVENTS SYSTEM "advanced-position.xml">
|
|
|
|
<!ENTITY METADATA SYSTEM "advanced-metadata.xml">
|
|
|
|
<!ENTITY INTERFACES SYSTEM "advanced-interfaces.xml">
|
|
|
|
<!ENTITY CLOCKS SYSTEM "advanced-clocks.xml">
|
|
|
|
<!ENTITY DPARAMS SYSTEM "advanced-dparams.xml">
|
|
|
|
<!ENTITY THREADS SYSTEM "advanced-threads.xml">
|
|
|
|
<!ENTITY AUTOPLUGGING SYSTEM "advanced-autoplugging.xml">
|
|
|
|
<!ENTITY DATAACCESS SYSTEM "advanced-dataaccess.xml">
|
2004-12-15 17:32:49 +00:00
|
|
|
|
|
|
|
<!-- Part 4: Higher-level interfaces -->
|
2006-01-30 21:11:38 +00:00
|
|
|
<!ENTITY XML SYSTEM "highlevel-xml.xml">
|
|
|
|
<!ENTITY COMPONENTS SYSTEM "highlevel-components.xml">
|
2004-12-15 17:32:49 +00:00
|
|
|
|
|
|
|
<!-- Appendices -->
|
2006-01-30 21:11:38 +00:00
|
|
|
<!ENTITY CHECKLIST SYSTEM "appendix-checklist.xml">
|
|
|
|
<!ENTITY PORTING SYSTEM "appendix-porting.xml">
|
|
|
|
<!ENTITY INTEGRATION SYSTEM "appendix-integration.xml">
|
|
|
|
<!ENTITY LICENSING SYSTEM "appendix-licensing.xml">
|
|
|
|
<!ENTITY WIN32 SYSTEM "appendix-win32.xml">
|
|
|
|
<!ENTITY QUOTES SYSTEM "appendix-quotes.xml">
|
2004-12-15 17:32:49 +00:00
|
|
|
|
|
|
|
<!ENTITY GStreamer "<application>GStreamer</application>">
|
2006-02-02 11:24:19 +00:00
|
|
|
<!ENTITY GstPWG "<emphasis>GStreamer Plugin Writer's Guide</emphasis>">
|
2000-08-16 21:38:57 +00:00
|
|
|
]>
|
|
|
|
|
2001-02-16 12:14:30 +00:00
|
|
|
<book id="index">
|
2006-01-30 21:11:38 +00:00
|
|
|
&TITLEPAGE;
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<!-- ############# Introduction & Overview - part ############### -->
|
2000-08-16 21:38:57 +00:00
|
|
|
|
2006-02-02 11:24:19 +00:00
|
|
|
<part id="part-introduction">
|
|
|
|
<title>Introduction</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
<partintro>
|
2006-02-02 11:24:19 +00:00
|
|
|
<para><!-- synchronize with PWG -->
|
2007-01-26 13:07:36 +00:00
|
|
|
&GStreamer; is an extremely powerful and versatile framework for
|
2004-12-15 17:32:49 +00:00
|
|
|
creating streaming media applications. Many of the virtues of the
|
|
|
|
&GStreamer; framework come from its modularity: &GStreamer; can
|
|
|
|
seamlessly incorporate new plugin modules. But because modularity
|
2006-05-05 14:09:21 +00:00
|
|
|
and power often come at a cost of greater complexity, writing new
|
2004-12-15 17:32:49 +00:00
|
|
|
applications is not always easy.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This guide is intended to help you understand the &GStreamer;
|
|
|
|
framework (version &GST_VERSION;) so you can develop applications
|
|
|
|
based on it. The first chapters will focus on development of a
|
|
|
|
simple audio player, with much effort going into helping you
|
|
|
|
understand &GStreamer; concepts. Later chapters will go into
|
|
|
|
more advanced topics related to media playback, but also at
|
|
|
|
other forms of media processing (capture, editing, etc.).
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
&INTRO;
|
|
|
|
&MOTIVATION;
|
|
|
|
&CONCEPTS;
|
2000-08-16 21:38:57 +00:00
|
|
|
|
|
|
|
</part>
|
|
|
|
|
|
|
|
<!-- ############ Basic concepts - part ############# -->
|
|
|
|
|
2006-02-02 11:24:19 +00:00
|
|
|
<part id="part-building">
|
|
|
|
<title>Building an Application</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
<partintro>
|
|
|
|
<para>
|
2004-12-15 17:32:49 +00:00
|
|
|
In these chapters, we will discuss the basic concepts of &GStreamer;
|
|
|
|
and the most-used objects, such as elements, pads and buffers. 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. You will get a first glance at the &GStreamer; API, which should
|
|
|
|
be enough for building elementary applications. Later on in this
|
|
|
|
part, you will also learn to build a basic command-line application.
|
2000-08-18 20:35:48 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
2004-12-15 17:32:49 +00:00
|
|
|
Note that this part will give a look into the low-level API and
|
|
|
|
concepts of &GStreamer;. Once you're going to build applications,
|
|
|
|
you might want to use higher-level APIs. Those will be discussed
|
|
|
|
later on in this manual.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
&INIT;
|
|
|
|
&ELEMENTS;
|
|
|
|
&BINS;
|
2005-06-29 09:25:51 +00:00
|
|
|
&BUS;
|
2004-12-15 17:32:49 +00:00
|
|
|
&PADS;
|
|
|
|
&DATA;
|
|
|
|
&HELLOWORLD;
|
2000-08-19 16:36:24 +00:00
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
|
|
|
|
<!-- ############ Advanced GStreamer - part ############# -->
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<part id="part-advanced">
|
|
|
|
<title>Advanced &GStreamer; concepts</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
<partintro>
|
|
|
|
<para>
|
2004-12-15 17:32:49 +00:00
|
|
|
In this part we will cover the more advanced features of &GStreamer;.
|
|
|
|
With the basics you learned in the previous part you should be
|
|
|
|
able to create a <emphasis>simple</emphasis> application. However,
|
|
|
|
&GStreamer; provides much more candy than just the basics of playing
|
|
|
|
back audio files. In this chapter, you will learn more of the
|
2005-06-29 09:25:51 +00:00
|
|
|
low-level features and internals of &GStreamer;.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Some parts of this part will serve mostly as an explanation of
|
|
|
|
how &GStreamer; works internally; they are not actually needed for
|
|
|
|
actual application development. This includes chapter such as the
|
|
|
|
ones covering scheduling, autoplugging and synchronization. Other
|
|
|
|
chapters, however, discuss more advanced ways of
|
|
|
|
pipeline-application interaction, and can turn out to be very useful
|
|
|
|
for certain applications. This includes the chapters on metadata,
|
|
|
|
querying and events, interfaces, dynamic parameters and pipeline
|
|
|
|
data manipulation.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
&QUERYEVENTS;
|
|
|
|
&METADATA;
|
|
|
|
&INTERFACES;
|
|
|
|
&CLOCKS;
|
|
|
|
&DPARAMS;
|
|
|
|
&THREADS;
|
|
|
|
&AUTOPLUGGING;
|
2005-01-17 15:08:51 +00:00
|
|
|
&DATAACCESS;
|
2000-08-22 21:18:18 +00:00
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<!-- ############ Higher-level APIs in GStreamer - part ############# -->
|
2000-08-16 21:38:57 +00:00
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<part id="part-highlevel">
|
|
|
|
<title>Higher-level interfaces for &GStreamer; applications</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
<partintro>
|
|
|
|
<para>
|
2004-12-15 17:32:49 +00:00
|
|
|
In the previous two parts, you have learned many of the internals
|
|
|
|
and their corresponding low-level interfaces into &GStreamer;
|
|
|
|
application programming. Many people will, however, not need so
|
|
|
|
much control (and as much code), but will prefer to use a standard
|
|
|
|
playback interface that does most of the difficult internals for
|
|
|
|
them. In this chapter, we will introduce you into the concept of
|
|
|
|
autopluggers, playback managing elements, XML-based pipelines and
|
|
|
|
other such things. Those higher-level interfaces are intended to
|
|
|
|
simplify &GStreamer;-based application programming. They do, however,
|
|
|
|
also reduce the flexibility. It is up to the application developer
|
|
|
|
to choose which interface he will want to use.
|
2002-04-07 23:32:16 +00:00
|
|
|
</para>
|
2000-08-16 21:38:57 +00:00
|
|
|
</partintro>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
&COMPONENTS;
|
|
|
|
&XML;
|
2000-08-16 21:38:57 +00:00
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
</part>
|
2004-12-15 07:30:55 +00:00
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
<!-- ############ Appendices - part ############# -->
|
|
|
|
|
2004-01-28 15:08:17 +00:00
|
|
|
<part id="part-appendices">
|
2000-08-16 21:38:57 +00:00
|
|
|
<title>Appendices</title>
|
|
|
|
<partintro>
|
|
|
|
<para>
|
2004-12-15 17:32:49 +00:00
|
|
|
By now, you've learned all about the internals of &GStreamer; and
|
|
|
|
application programming using the &GStreamer; framework. This part
|
|
|
|
will go into some random bits that are useful to know if you're
|
|
|
|
going to use &GStreamer; for serious application programming. It
|
|
|
|
will touch upon things related to integration with popular desktop
|
|
|
|
environments that we run on (GNOME, KDE, OS X, Windows), it will
|
|
|
|
shortly explain how applications included with &GStreamer; can help
|
|
|
|
making your life easier, and some information on debugging.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
2005-06-29 09:25:51 +00:00
|
|
|
<para>
|
|
|
|
In addition, we also provide a porting guide which will explain
|
2005-12-11 17:49:10 +00:00
|
|
|
easily how to port &GStreamer;-0.8 applications to &GStreamer;-0.10.
|
2005-06-29 09:25:51 +00:00
|
|
|
</para>
|
2000-08-16 21:38:57 +00:00
|
|
|
</partintro>
|
2000-08-22 21:18:18 +00:00
|
|
|
|
2006-01-30 21:11:38 +00:00
|
|
|
<!--
|
|
|
|
Idea:
|
|
|
|
* Debugging and error handling
|
|
|
|
- 'error' signal in pipelines
|
|
|
|
- checking return values and how to handle them
|
|
|
|
- using signals for pipeline states
|
|
|
|
- gst-debug
|
|
|
|
- programs
|
|
|
|
* Desktop integration
|
|
|
|
- Linux/UNIX
|
|
|
|
. {x,xv}imagesink
|
|
|
|
. {oss,alsa}sink
|
|
|
|
. {v4l,v4l2,oss,alsa}src
|
|
|
|
- GNOME
|
|
|
|
. GConf ({video,audio}{src,sink})
|
|
|
|
. gnomevfssrc, gnomevfssink
|
|
|
|
. popt
|
|
|
|
. app examples (RB, Totem, gnome-media, ...)
|
|
|
|
- KDE
|
|
|
|
. kiosrc
|
|
|
|
. app examples (JuK, AmaroK)
|
|
|
|
. ask Scott/Mark
|
|
|
|
- Mac OS X
|
|
|
|
. native video/audio sink
|
|
|
|
- Windows
|
|
|
|
. build etc.
|
|
|
|
* Quotes from devs
|
|
|
|
- table please...
|
|
|
|
-->
|
2004-12-15 17:32:49 +00:00
|
|
|
|
2004-12-23 14:26:14 +00:00
|
|
|
&CHECKLIST;
|
2005-06-29 09:25:51 +00:00
|
|
|
&PORTING;
|
2004-12-23 14:26:14 +00:00
|
|
|
&INTEGRATION;
|
2005-01-31 11:30:14 +00:00
|
|
|
&LICENSING;
|
2004-12-15 17:32:49 +00:00
|
|
|
&WIN32;
|
|
|
|
"ES;
|
2001-01-08 01:27:07 +00:00
|
|
|
|
2000-08-16 21:38:57 +00:00
|
|
|
</part>
|
|
|
|
</book>
|