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
|
|
|
|
2003-12-29 14:15:02 +00:00
|
|
|
<!-- Part 1: Overview -->
|
2004-12-15 17:32:49 +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 -->
|
2004-12-15 17:32:49 +00:00
|
|
|
<!ENTITY INIT SYSTEM "basics-init.xml">
|
|
|
|
<!ENTITY ELEMENTS SYSTEM "basics-elements.xml">
|
|
|
|
<!ENTITY BINS SYSTEM "basics-bins.xml">
|
|
|
|
<!ENTITY PADS SYSTEM "basics-pads.xml">
|
|
|
|
<!ENTITY DATA SYSTEM "basics-data.xml">
|
|
|
|
<!ENTITY HELLOWORLD SYSTEM "basics-helloworld.xml">
|
|
|
|
|
|
|
|
<!-- Part 3: Advanced Concepts -->
|
|
|
|
<!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 SCHEDULERS SYSTEM "advanced-schedulers.xml">
|
|
|
|
<!ENTITY AUTOPLUGGING SYSTEM "advanced-autoplugging.xml">
|
2005-01-03 15:10:48 +00:00
|
|
|
<!ENTITY DATAACCESS SYSTEM "advanced-dataaccess.xml">
|
2004-12-15 17:32:49 +00:00
|
|
|
|
|
|
|
<!-- Part 4: Higher-level interfaces -->
|
|
|
|
<!ENTITY XML SYSTEM "highlevel-xml.xml">
|
|
|
|
<!ENTITY COMPONENTS SYSTEM "highlevel-components.xml">
|
|
|
|
|
|
|
|
<!-- Appendices -->
|
2004-12-23 14:26:14 +00:00
|
|
|
<!ENTITY CHECKLIST SYSTEM "appendix-checklist.xml">
|
|
|
|
<!ENTITY INTEGRATION SYSTEM "appendix-integration.xml">
|
2005-01-31 11:30:14 +00:00
|
|
|
<!ENTITY LICENSING SYSTEM "appendix-licensing.xml">
|
2004-12-15 17:32:49 +00:00
|
|
|
<!ENTITY WIN32 SYSTEM "appendix-win32.xml">
|
|
|
|
<!ENTITY QUOTES SYSTEM "appendix-quotes.xml">
|
|
|
|
|
|
|
|
<!ENTITY GStreamer "<application>GStreamer</application>">
|
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>
|
2002-03-24 14:06:02 +00:00
|
|
|
<author>
|
|
|
|
<firstname>Steve</firstname>
|
|
|
|
<surname>Baker</surname>
|
|
|
|
<authorblurb>
|
|
|
|
<para>
|
|
|
|
<email>stevebaker_org@yahoo.co.uk</email>
|
|
|
|
</para>
|
|
|
|
</authorblurb>
|
|
|
|
</author>
|
2002-04-07 23:32:16 +00:00
|
|
|
<author>
|
|
|
|
<firstname>Andy</firstname>
|
|
|
|
<surname>Wingo</surname>
|
|
|
|
<authorblurb>
|
|
|
|
<para>
|
|
|
|
<email>wingo@pobox.com</email>
|
|
|
|
</para>
|
|
|
|
</authorblurb>
|
|
|
|
</author>
|
2004-12-15 17:32:49 +00:00
|
|
|
<author>
|
|
|
|
<firstname>Ronald</firstname>
|
|
|
|
<othername>S.</othername>
|
|
|
|
<surname>Bultje</surname>
|
|
|
|
<authorblurb>
|
|
|
|
<para>
|
|
|
|
<email>rbultje@ronald.bitfreak.net</email>
|
|
|
|
</para>
|
|
|
|
</authorblurb>
|
|
|
|
</author>
|
2000-08-16 21:38:57 +00:00
|
|
|
</authorgroup>
|
|
|
|
|
2004-01-28 15:08:17 +00:00
|
|
|
<legalnotice id="misc-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="
|
2004-05-01 20:00:44 +00:00
|
|
|
http://www.opencontent.org/opl.shtml"
|
2004-12-15 17:32:49 +00:00
|
|
|
type="http">http://www.opencontent.org/opl.shtml</ulink>).
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</legalnotice>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<title>&GStreamer; Application Development Manual (&GST_VERSION;)</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
|
|
|
|
</bookinfo>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<!-- ############# Introduction & Overview - part ############### -->
|
2000-08-16 21:38:57 +00:00
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<part id="part-overview">
|
|
|
|
<title>Overview</title>
|
2000-08-16 21:38:57 +00:00
|
|
|
<partintro>
|
2002-04-07 23:32:16 +00:00
|
|
|
<para>
|
2004-12-15 17:32:49 +00:00
|
|
|
&GStreamer; is an exremely powerful and versatile framework for
|
|
|
|
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
|
|
|
|
and power often come at a cost of greater complexity (consider,
|
|
|
|
for example, <ulink
|
|
|
|
type="http" url="http://www.omg.org/">CORBA</ulink>), writing new
|
|
|
|
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 ############# -->
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
<part id="part-basics">
|
2004-09-08 23:18:55 +00:00
|
|
|
<title>Basic Concepts</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;
|
|
|
|
&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
|
|
|
|
low-level features and internals of &GStreamer;, such as threads,
|
|
|
|
scheduling, synchronization, metadata, interfaces and dynamic
|
|
|
|
parameters.
|
2000-08-16 21:38:57 +00:00
|
|
|
</para>
|
|
|
|
</partintro>
|
|
|
|
|
2004-12-15 17:32:49 +00:00
|
|
|
&QUERYEVENTS;
|
|
|
|
&METADATA;
|
|
|
|
&INTERFACES;
|
|
|
|
&CLOCKS;
|
|
|
|
&DPARAMS;
|
|
|
|
&THREADS;
|
|
|
|
&SCHEDULERS;
|
|
|
|
&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>
|
|
|
|
</partintro>
|
2000-08-22 21:18:18 +00:00
|
|
|
|
2004-12-15 17:32:49 +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-23 14:26:14 +00:00
|
|
|
&CHECKLIST;
|
|
|
|
&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>
|