Gstreamer installed on ubuntu16.04

1, apt-get install

Referring https://gstreamer.freedesktop.org/documentation/installing/on-linux.html?gi-language=c installation instructions, the installation fails, the following tips

 

 Use ubuntu16.04 original source and Tsinghua students have tried, not, for the second method

2, the installation source

a) Download:

Download: https://gstreamer.freedesktop.org/src/

b) extracting

xz -d gstreamer-1.16.0.tar.xz

tar -xvf gstreamer-1.16.0.tar

Then followed by decompression

gst-plugins-base-1.16.0.tar.xz

gst-plugins-bad-1.16.0.tar.xz

gst-plugins-good-1.16.0.tar.xz

gst-plugins-ugly-1.16.0.tar.xz

gst-libav-1.16.0.tar.xz

c) Compile

sudo apt-get install build-essential dpkg-dev flex bison autotools-dev automake liborc-dev autopoint libtool gtk-doc-tools libgstreamer1.0-dev

cd gstreamer-1.16.0

./configure

If an error:

 

解决:sudo apt-get install bison

Execute ./configure again, if an error:

 

解决:sudo apt-get install flex

./configure

sudo make

sudo make install

Before installing other plugins configure environment variables :

sudo vim ~/.bashrc

添加PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

source ~/.bashrc

cd ..

cd gst-plugins-base-1.16.0

sudo apt-get install libxv-dev libasound2-dev libtheora-dev libogg-dev libvorbis-dev

./configure

sudo make

sudo make install

cd ..

cd gst-plugins-good-1.16.0

sudo apt-get install libbz2-dev libv4l-dev libvpx-dev libjack-jackd2-dev libsoup2.4-dev libpulse-dev

./configure

sudo make

sudo make install

cd ..

cd gst-plugins-bad-1.16.0

sudo apt-get install faad libfaad-dev libfaac-dev

./configure

sudo make

sudo make install

cd ..

cd gst-plugins-ugly-1.16.0

sudo apt-get install libx264-dev libmad0-dev

./configure

sudo make

sudo make install

cd ..

cd gst-libav-1.16.0

./configure, error

 

solve:sudo apt-get install yasm

./configure

sudo make

sudo make install

cd ..

 

sudo vim ~/.bashrc

添加LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH

source ~/.bashrc

Guess you like

Origin www.cnblogs.com/walker-lin/p/11520064.html