<qandaentry>
<question id="gstreamer-versions-explained">
- <para>There seem to be different GStreamer versions, like 0.8 and 0.10?
+ <para>There seem to be different GStreamer versions, like 0.10 and 1.0?
What's up with that?</para>
</question>
<answer>
<para>
- GStreamer-0.8 and GStreamer-0.10 are the main version
+ GStreamer-0.10 and GStreamer-1.0 are the main version
'series' currently in use. For all practical purposes
you should think of them as two completely different libraries
which just happen to have a similar name. They can be installed
in parallel and are completely independent.
</para>
<para>
- For the 0.8 version you will need the 0.8 plugins and bindings
- (gst-plugins 0.8.x, gst-ffmpeg 0.8.x, gst-python 0.8.x etc.), while
- for the 0.10 version you will need the 0.10 plugins and bindings
- (ie. gst-plugins-base 0.10.x, gst-plugins-good 0.10.x,
- gst-plugins-ugly 0.10.x, gst-plugins-bad 0.10.x, gst-ffmpeg 0.10.x,
- gst-python 0.10.x). The micro version for each main version does
+ For the 0.10 version you will need the 0.10 plugins and bindings
+ (gst-plugins 0.10.x, gst-ffmpeg 0.10.x, gst-python 0.10.x etc.), while
+ for the 1.0 version you will need the 1.0 plugins and bindings
+ (ie. gst-plugins-base 1.0.x, gst-plugins-good 1.0.x,
+ gst-plugins-ugly 1.0.x, gst-plugins-bad 1.0.x, gst-ffmpeg 1.0.x,
+ gst-python 1.0.x). The micro version for each main version does
not have to match exactly, only the major versions needs to be the
same (ie. it may be that the current gst-plugins-good version is
- 0.10.6 and the current GStreamer core version is 0.10.13).
- GStreamer-0.10 will not see or use any of the GStreamer-0.8 plugins
+ 1.0.6 and the current GStreamer core version is 1.0.13).
+ GStreamer-1.0 will not see or use any of the GStreamer-0.10 plugins
and vice versa.
</para>
<para>
All GStreamer command line tools are suffixed with their main
- version, e.g. gst-launch-0.8 and gst-launch-0.10, or gst-inspect-0.8
- and gst-inspect-0.10. The corresponding GStreamer command line
- tools without a suffix (e.g. gst-launch) will default to the highest
- major version.
+ version, e.g. gst-launch-0.10 and gst-launch-1.0, or gst-inspect-0.10
+ and gst-inspect-1.0.
</para>
<para>
- Applications will use either GStreamer-0.8 or GStreamer-0.10, since
- the 0.8 and 0.10 API/ABI are not compatible.
+ Applications will use either GStreamer-0.10 or GStreamer-1.0, since
+ the 0.10 and 1.0 API/ABI are not compatible.
</para>
<para>
Odd-numbered versions such as 0.9.x, 0.11.x, etc. are unstable
<answer>
<para>
- You should download GStreamer-0.10. GStreamer-0.8 is not developed
- any longer and has not been maintained for almost two years (you
- may still find it packaged for your disto though, but that's most
- likely for legacy applications).
+ You should download GStreamer-1.0. GStreamer-0.10 is end-of-life.
</para>
</answer>
</qandaentry>
First of all, verify that you have a working registry and that you can
inspect them by typing
<programlisting>
-$ gst-inspect fakesrc
+$ gst-inspect-1.0 fakesrc
</programlisting>
This should print out a bunch of information about this particular element.
If this tells you that there is "no such element or plugin", you haven't
that you really should have : fakesrc and fakesink. They do nothing except
pass empty buffers. Type this at the command-line :
<programlisting>
-$ gst-launch -v fakesrc num-buffers=3 ! fakesink
+$ gst-launch-1.0 -v fakesrc silent=0 num-buffers=3 ! fakesink silent=0
</programlisting>
This will print out output that looks similar to this :
<programlisting>
link the audiotestsrc element to an output element that matches your hardware.
A (non-complete) list of output plug-ins for audio is
<itemizedlist>
+<listitem><para>pulsesink for Pulseaudio output</para></listitem>
<listitem><para>osssink for OSS output</para></listitem>
<listitem><para>esdsink for ESound output</para></listitem>
-<listitem><para>artsdsink for aRTs output (not ported to 0.10 yet)</para></listitem>
<listitem><para>alsasink for ALSA output</para></listitem>
<listitem><para>alsaspdifsink for ALSA S/PDIF output</para></listitem>
<listitem><para>jackaudiosink for JACK output</para></listitem>
</itemizedlist>
-First of all, run gst-inspect on the output plug-in you want to use to
-make sure you have it installed. For example, if you use OSS, run
+First of all, run gst-inspect-1.0 on the output plug-in you want to use to
+make sure you have it installed. For example, if you use Pulseaudio, run
<programlisting>
-$ gst-inspect osssink
+$ gst-inspect-1.0 pulsesink
</programlisting>
and see if that prints out a bunch of properties for the plug-in.
</para>
<para>
Then try to play the sine tone by running
<programlisting>
-$ gst-launch audiotestsrc ! audioconvert ! audioresample ! osssink
+$ gst-launch-1.0 audiotestsrc ! audioconvert ! audioresample ! pulsesink
</programlisting>
and see if you hear something. Make sure your volume is turned up,
but also make sure it is not too loud and you are not wearing your headphones.
command-line tool, which comes standard with GStreamer.
Invoked without any arguments,
<programlisting>
-$ gst-inspect
+$ gst-inspect-1.0
</programlisting>
will print out a listing of installed plugins.
To learn more about a particular plugin, pass its name on the command line.
For example,
<programlisting>
-$ gst-inspect volume
+$ gst-inspect-1.0 volume
</programlisting>
will give you information about the volume plugin.
</para>
- <para>
-Also, if you install the gst-editor package, you will have a graphical
-plugin browser available, gst-inspect-gui.
- </para>
</answer>
</qandaentry>
<answer>
<para>
You access the GStreamer command line interface using the command gst-launch.
-To decode an mp3 and play it through OSS, you could use
+To decode an mp3 and play it through Pulseaudio, you could use
<programlisting>
-gst-launch filesrc location=thesong.mp3 ! mad ! audioconvert !
-audioresample ! osssink
+gst-launch-1.0 filesrc location=thesong.mp3 ! mad ! pulsesink
</programlisting>.
More examples can be found in the gst-launch man page.
</para>
<para>
To automatically detect the right codec in a pipeline, try
<programlisting>
-gst-launch filesrc location=my-random-media-file.mpeg ! decodebin !
- audioconvert ! pulsesink
+gst-launch-1.0 filesrc location=my-random-media-file.mpeg ! decodebin !
+ pulsesink
</programlisting>.
or
<programlisting>
-gst-launch filesrc location=my-random-media-file.mpeg ! decodebin !
+gst-launch-1.0 filesrc location=my-random-media-file.mpeg ! decodebin !
videoconvert ! xvimagesink
</programlisting>
Something more complicated:
<programlisting>
-gst-launch filesrc location=my-random-media-file.mpeg ! decodebin name=decoder
+gst-launch-1.0 filesrc location=my-random-media-file.mpeg ! decodebin name=decoder
decoder. ! videoconvert ! xvimagesink
decoder. ! audioconvert ! pulsesink
</programlisting>
We also have a basic media playing plugin that will take care of most things
for you. This plugin is called playbin. Try this:
<programlisting>
-gst-launch playbin uri=file:///home/joe/my-random-media-file.mpeg
+gst-launch-1.0 playbin uri=file:///home/joe/my-random-media-file.mpeg
</programlisting>
This should play the file if the format is supported, ie. you have all the
necessary demuxing and decoding and some output plugins installed.