LoginSignup
9
10

More than 5 years have passed since last update.

gstreamer をソースからビルドする

Last updated at Posted at 2018-06-10

Ubuntu 16.04 にgstreamer 1.14.1 をソースからビルドしてインストールしてみました。
目的は新しい映像伝送プロトコルのSRTを試すため。

準備

必要なライブラリをインストール。

sudo apt build-dep gstreamer1.0
sudo apt build-dep gstreamer1.0-plugins-base
sudo apt build-dep gstreamer1.0-plugins-base-apps 
sudo apt build-dep gstreamer1.0-plugins-good
sudo apt build-dep gstreamer1.0-plugins-bad
sudo apt build-dep gstreamer1.0-plugins-bad-videoparsers 

libsrtもインストールしておく。

ソースコードを取得してビルドしてインストール

gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad の順にこれを行う。

git clone git://anongit.freedesktop.org/gstreamer/gstreamer
cd gstreamer/
git checkout -b work 1.14.1
./autogen.sh 
make -j4
sudo make install
sudo ldconfig

cd ..
git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-base
cd gst-plugins-base/
git checkout -b work 1.14.1
./autogen.sh 
make -j4
sudo make install
sudo ldconfig

cd ..
git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-good
cd gst-plugins-good/
git checkout -b work 1.14.1
./autogen.sh 
make -j4
sudo make install
sudo ldconfig

cd ..
git clone git://anongit.freedesktop.org/gstreamer/gst-plugins-bad
cd gst-plugins-bad/
git checkout -b work 1.14.1
./autogen.sh 
make -j4
sudo make install
sudo ldconfig

 確認

$ which gst-inspect-1.0 
/usr/local/bin/gst-inspect-1.0
$ gst-inspect-1.0 --version
gst-inspect-1.0 version 1.14.1
GStreamer 1.14.1
Unknown package origin

srtのエレメントが利用可能になっていることを確認。

$ gst-inspect-1.0 |grep srt
subparse: subparse_typefind: srt, sub, mpsub, mdvd, smi, txt, dks, vtt
dtls:  dtlssrtpdec: DTLS-SRTP Decoder
dtls:  dtlssrtpenc: DTLS-SRTP Encoder
dtls:  dtlssrtpdemux: DTLS SRTP Demultiplexer
srt:  srtclientsrc: SRT client source
srt:  srtserversrc: SRT Server source
srt:  srtclientsink: SRT client sink
srt:  srtserversink: SRT server sink
srtp:  srtpenc: SRTP encoder
srtp:  srtpdec: SRTP decoder
subenc:  srtenc: Srt encoder
9
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
10