Gstreamer

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
Line 22: Line 22:
 
<source lang="bash">
 
<source lang="bash">
 
time gst-launch filesrc location=./in.wma ! asfdemux ! ffdec_wmav2 ! fakesink
 
time gst-launch filesrc location=./in.wma ! asfdemux ! ffdec_wmav2 ! fakesink
 +
</source>
 +
 +
==Building==
 +
To build GStreamer, you need to have some packages installed:
 +
<source lang="bash">
 +
sudo apt-get install bison flex libglib2.0 libxml2-dev
 
</source>
 
</source>

Latest revision as of 11:17, 25 July 2012

Command line utilities:

gst-inspect [plugin] either lists all avaliable plugins, or gives details about the specified plugin
gst-launch <pipeline> runs a GStreamer pipeline

The plugins fall into 4 categories:

  • gst-plugins-base
  • gst-plugins-good
  • gst-plugins-bad
  • gst-plugins-ugly

Your system will probably only come with the base package, possibly the good as well.

[edit] Play WMA

gst-launch filesrc location=./in.wma ! asfdemux ! ffdec_wmav2 ! alsasink

[edit] Benchmark

time gst-launch filesrc location=./in.wma ! asfdemux ! ffdec_wmav2 ! fakesink

[edit] Building

To build GStreamer, you need to have some packages installed:

sudo apt-get install bison flex libglib2.0 libxml2-dev
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox