How can I install gstreamer 1.0 in Ubuntu 12.04?

Solution 1:

If you don't have ubuntu-restricted-extras installed you may need to install that, and any other libraries you require from the repositories.

If you want to install gstreamer 1.0, you need to use the backports for Precise from the gstreamer developers ppa, which is the best source at the minute and the most 'official' developer ppa available.

sudo add-apt-repository ppa:gstreamer-developers/ppa
sudo apt-get update
sudo apt-get install gstreamer1.0*

This will install all the base packages and plugins that you require, and is fine to install, even though you also have the earlier version installed as well, although applications will not use gstreamer1.0 unless they have been built with support for it.


For more information regarding ppas, please see these discussions:

  • What are PPAs and how do I use them?
  • Are PPA's safe to add to my system and what are some "red flags" to watch out for?

Solution 2:

Installing the below package should do the magic

sudo apt-get install ubuntu-restricted-extras

Solution 3:

On Ubuntu 16.04, this worked for me, it might on Ubuntu 12.04 as well:

sudo apt-get install gstreamer1.0-libav

Solution 4:

Install GStreamer on Ubuntu or Debian

apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools

pkgconfig path in my pc:

/usr/lib/x86_64-linux-gnu/pkgconfig/gstreamer-1.0.pc

Building Application using Gstreamer

pkg-config --cflags --libs gstreamer-1.0