Building Gstreamer 1.2 from source

From MyLabWiki
Revision as of 13:36, 8 February 2014 by Alex (Talk | contribs)

Jump to: navigation, search


This page summarizes how I install Gstreamer 1.2 form source without having any impact on gstreamer installed by the OS. The key trick is to install everything in an isolated directory using the --prefix configure option and set up a local runtime environment pointing to the prefix.

In the following I will use the prefix /home/user/gst/runtime and everything built from source will be installed under this directory.

Environment setup

Create a file called and source it from the terminal before executing programs or gstreamer packages. This must be done in every terminal that you want to use gstreamer in.

 $ cat
 export PATH=$PATH:$PFX/bin
 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$PFX/lib/pkgconfig
 $ .

This should not be done globally unless you know what you are doing, in which case you probably wouldn't need to read this page.



Oil Runtime Compiler

As of Ubuntu 13.10 it must be installed from source as the one available in Ubuntu is not new enough. The latest orc is avaialble here:

Binary packages

  • libx264-dev — Provides H.264 encoder.
  • libgudev-1.0-dev — Required for the new uvch264src
  • yasm — Assembler needed for gst-libav

Build order

Gstreamer source packages are available from:

  1. Setup environment
  2. Build ORC using --prefix=/home/user/gst/runtime
  3. Build opus 1.1 from source if you need it
  4. Build gstreamer using --prefix=/home/user/gst/runtime
  5. Build gst-plugins-base using --enable-orc --prefix=/home/user/gst/runtime
  6. Build gst-plugins-good using --enable-orc --prefix=/home/user/gst/runtime
  7. Build gst-plugins-bad using --enable-orc --prefix=/home/user/gst/runtime
  8. Build gst-plugins-ugly using --enable-orc --prefix=/home/user/gst/runtime
  9. Build gst-libav using --enable-orc --prefix=/home/user/gst/runtime