Compiling getstream on Raspbian

This article gives instructions on how to compile getstream for Raspian on a Raspberry Pi. The version of the Raspberry Pi should not matter. It can be 1, 2 or even 3. I have tested this on a Raspberry Pi 2. Whilst being able to stream all channels of four DVB-T transponders, the Raspberry Pi was not able to simultaneously play one of the channels without lag or instabilities.

Getstream is a extraordinary lightweight and efficient streaming application that can stream DVB transponders onto the LAN. The homepage of getstream can be found at http://silicon-verl.de/home/flo/projects/streaming

Here we go:

cd # go to directory of downloaded getstream
yum install -y gcc libevent-devel glib2-devel tar glib-devel

apt install libevent-dev libglib2.0 libglib2.0-dev
cd /usr/include/glib-2.0
ln -s /usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h
git clone git://pax.zz.de/getstream.git

cd # change to the right directlry of the git clone
make

#Configure getstream
mv getstream /usr/bin # or copy the bin in the /usr/bin file
yum -y install libevent
cat <<EOF > /etc/systemd/system/tv.service
 [Unit]
Description=TV Service
After=syslog.target network.target

[Service]
Type=simple
ExecStart=/usr/bin/getstream -c /etc/getstream.conf

[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable tv.service

#enable firewall port