new proggy I never checked in
[platform/upstream/gstreamer.git] / docs / manual / intro-motivation.xml
1 <chapter id="cha-motivation">
2   <title>Motivation</title>
3   <para> 
4     Linux has historically lagged behind other operating systems in the multimedia 
5     arena. Microsoft's Windows[tm] and Apple's MacOS[tm] both have strong support 
6     for multimedia devices, multimedia content creation,
7     playback, and realtime processing. Linux, on the other hand, has a poorly integrated 
8     collection of multimedia utilities and applications available, which can hardly compete 
9     with the professional level of software available for MS Windows and MacOS.
10   </para>
11
12   <sect1 id="sec-motivation-problems">
13     <title>Current problems</title>
14     <para> 
15       We descibe the typical problems in todays media handling on Linux.
16     </para>
17     <sect2 id="sec-motivation-duplicate">
18       <title>Multitude of duplicate code</title>
19       <para> 
20         The Linux user who wishes to hear a sound file must hunt through their collection of 
21         sound file players in order to play the tens of sound file formats in wide use today. 
22         Most of these players basically reimplement the same code over and over again.
23       </para>
24       <para>
25         The Linux developer who wishes to embed a video clip in their application must use 
26         crude hacks to run an external video player. There is no library available that a
27         developer can use to create a custom media player.
28       </para>
29
30     </sect2>
31     <sect2 id="sec-motivation-goal">
32       <title>'One goal' media players/libraries</title>
33       <para>
34         Your typical MPEG player was designed to play MPEG video and audio. Most of
35         these players have implemented a complete infrastructure focused on 
36         achieving their only goal: playback. No provisions were made to add
37         filters or special effects to the video or audio data.
38       </para> 
39       <para>
40         If I wanted to convert an MPEG2 video stream into an AVI file, my best
41         option would be to take all of the MPEG2 decoding algorithms out
42         of the player and duplicate them into my own AVI encoder. These 
43         algorithms cannot easily be shared accross applications.
44       </para> 
45       <para>
46         Attempts have been made to create libraries for handling various media types.
47         Because they focus on a very specific media type (avifile, libmpeg2, ...),
48         significant work is needed to integrate them due to a lack of a common API.
49         GStreamer allows you to wrap these libraries with a common API, which 
50         significantly simplifies integration and reuse.
51       </para> 
52     </sect2>
53   
54     <sect2 id="sec-motivation-plugin">
55       <title>Non unified plugin mechanisms</title>
56       <para> 
57         Your typical media player might have a plugin for different media
58         types. Two media players will typically implement their own plugin
59         mechanism so that the codecs cannot be easily exchanged. The plugin system
60         of the typical media player is also very tailored to the specific needs
61         of the application.
62       </para> 
63       <para> 
64         The lack of a unified plugin mechanism also seriously hinders the 
65         creation of binary only codecs. No company is willing to port their
66         code to all the different plugin mechanisms.
67       </para> 
68       <para> 
69         While GStreamer also uses it own plugin system it offers a very rich
70         framework for the plugin developper and ensures the plugin can be used
71         in a wide range of applications, transparently interacting with other
72         plugins. The Framework that GStreamer provides for the plugins is
73         flexible enough to host even the most demanding plugins.
74       </para> 
75     </sect2>
76
77     <sect2 id="sec-motivation-network">
78       <title>Provision for network transparency</title>
79       <para> 
80         No infrastructure is present to allow network transparent media
81         handling. A distributed MPEG encoder will typically duplicate the
82         same encoder algorithms found in a non-distributed encoder.
83       </para> 
84       <para> 
85         No provisions have been made for emerging technologies such as
86         the <ulink url="http://developer.gnome.org/arch/component/bonobo.html"
87           type="http">GNOME object embedding using Bonobo</ulink>.
88       </para> 
89       <para> 
90         The GStreamer cores does not use network transparent technologies at the
91         lowest level as it only adds overhead for the local case. 
92         That said, it shouldn't be hard to create a wrapper around the
93         core components. 
94       </para> 
95     </sect2>
96
97     <sect2 id="sec-motivation-catchup">
98       <title>Catch up with the Windows(tm) world</title>
99       <para> 
100         We need solid media handling if we want to see Linux succeed on
101         the desktop.
102       </para> 
103       <para> 
104         We must clear the road for commercially backed codecs and multimedia 
105         applications so that Linux can become an option for doing multimedia.
106       </para> 
107     </sect2>
108   </sect1>
109 </chapter>