If you want to compile it from source you can run the following commands.
First, install some dependencies:
sudo apt-get update
sudo apt-get install autoconf automake libtool build-essential ubuntu-restricted-extras autopoint flex bison gtk-doc-tools
Then, download the sourcecode:
wget http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.6.3.tar.xz
Extract the file and change to the directory of the extracted file:
tar xvf gstreamer-1.6.3.tar.xz
cd gstreamer-1.6.3
Now, run the following command:
./autogen.sh
You should see no errors here and it should return the line "Now type 'make' to compile gstreamer.
"
Compile the code:
make
At the end of the output, you should see no errors in the lines beginning with make[4]
, make[1]
, make[2]
, or make[3]
.
Run the following command to test:
./tools/gst-launch-1.0 -v fakesrc num_buffers=5 ! fakesink
If you see no errors, proceed.
Finally, install gstreamer 1.6.3:
sudo make install
sudo ldconfig
Click here to see more plugins (ugly, bad, good, base).
You have two options,the easy way and the hard way. First:
THE HARD WAY
Here is how to compile the plugins. First install some dependencies:
sudo apt-get build-dep orc gst-plugins-base1.0 gst-plugins-good1.0 gst-plugins-bad1.0 gst-plugins-ugly1.0 gst-libav1.0
Next, make a directory to work in and download the source packages:
mkdir PLUGINS
cd PLUGINS
wget http://gstreamer.freedesktop.org/src/orc/orc-0.4.24.tar.xz
wget http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.6.3.tar.xz
wget http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.6.3.tar.xz
wget http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.6.3.tar.xz
wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.6.3.tar.xz
wget http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.6.3.tar.xz
Extract the archives:
tar xvf gst*lib*xz
tar xvf g*p*b*e*z
tar xvf g*p*g*g*d*z
tar xvf g*p*b*d*z
tar xvf g*p*y*z
tar xvf orc*
cd orc
./autogen.sh
make
sudo make install
cd ..
Ignore any warnings; there should be no errors.
base plugins
cd g*base*
./configure
If there are plugins listed under configure: *** Plug-ins with dependencies that will NOT be built:
you may need to install dependencies for them.
For example, if ogg
is listed, run the following command to search for available packages:
apt-cache search libogg | grep dev
Among the listed packages should be libogg-dev
. To install it, just use apt-get like so:
sudo apt-get install libogg-dev
I could not find dependencies that satisfy ivorbisdec
so don't worry about that one unless you really need it. Run ./configure again after installing dependencies and then proceed if you are satisfied.
make
sudo make install
cd ..
Again, there should be no errors on the lines near the end of the output: make[4]
, make[3]
, make[2]
, and make[1]
.
good plugins
cd g*good*
./configure
Do the same here with the dependencies. I was not able to find the dependencies for the following plugins:
directsoundsink
osxaudio
osxvideosink
sunaudio
waveformsink
Again, run ./configure
after adding dependencies and proceed when you are satisfied:
make
sudo make install
bad plugins
cd g*bad*
./configure
There was a whole list of plugins not built here, I didn't even try to track down. If you have problems with GStreamer later on like if something doesn't work, you can check but I wouldn't bother here unless there are issues.
make
sudo make install
cd ..
Do the same for the remaining plugins.
THE EASY WAY
To install ppa versions through apt-get, run the following commands:
sudo add-apt-repository ppa:dan-witt/gstreamer
sudo apt-get update
sudo apt-get install gstreamer1.0
This will install gstreamer and all the plugins version 1.6.
Click here for more info about the ppa.