GStreamer Application Development Manual (0.8.9.2) | ||
---|---|---|
<<< Previous | Things to check when writing an application | Next >>> |
GStreamer comes with a default set of command-line utilities that can help in application development. We will discuss only gst-launch and gst-inspect here.
gst-launch is a simple script-like commandline application that can be used to test pipelines. For example, the command gst-launch sinesrc ! alsasink will run a pipeline which generates a sine-wave audio stream and plays it to your ALSA audio card. gst-launch also allows the use of threads (using curly brackets, so "{" and "}") and bins (using brackets, so "(" and ")"). You can use dots to imply padnames on elements, or even omit the padname to automatically select a pad. Using all this, the pipeline gst-launch filesrc location=file.ogg ! oggdemux name=d { d. ! theoradec ! ffmpegcolorspace ! xvimagesink } { d. ! vorbisdec ! alsasink } will play an Ogg file containing a Theora video-stream and a Vorbis audio-stream. You can also use autopluggers such as decodebin on the commandline. See the manual page of gst-launch for more information.
gst-inspect can be used to inspect all properties,
signals, dynamic parameters and the object hierarchy of an element.
This acn be very useful to see which GObject
properties or which signals (and using what arguments) an element
supports. Run gst-inspect fakesrc to get an idea
of what it does. See the manual page of gst-inspect
for more information.
<<< Previous | Home | Next >>> |
Conversion plugins | Up | Integration |