Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
9
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

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

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
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
9
Help us understand the problem. What are the problem?