Tvheadend (TVH)

Tvheadend (TVH) is server software that can read video streams from LinuxTV sources and publish them as streams viewable on devices like Smart TVs over an IP internet. It can be used as a recorder too. Input sources can include: DVB-S, DVB-C/T, ATSC, IPTV and SAT>IP, to name a few. Multiple TVH servers can be combined to form a network. The following instructions show how to compile the TVH code for the ODROID-C2.


Install the necessary software components using the following commands:

$ sudo apt-get install cmake git libssl-dev libdvbcsa-dev ffmpeg liburiparser-dev openssl libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev dvb-apps libiconv-hook-dev
Now, we need to download source code:
$ wget
Move it to a working directory and then extract it:
$ cd ~
$ unzip -d tvheadend
Enter the relevant directory and build:
$ cd tvheadend/tvheadend-master
$ ./configure
$ make
You should observe build errors at this point.

To rectify this, download the following files to ~/tvheadend/tvheadend-master from the git repository:

Replace the original files with these versions:

$ cp config.guess build.linux/ffmpeg/libtheora
$ cp config.sub build.linux/ffmpeg/libtheora
Now we can repeat the build steps:
$ make
$ sudo make install
For the first time that you run Tvheadend, you will need to run it with the option -C:
$ tvheadend -C
You will then need to set up the configuration through the UI (IP:9981) and terminate it by pressing CTRL+C. Then you can run it with other options like:
$ screen -m -s tvheadend
$ tvheadend
For the latter, you need to have PuTTY connected all the time, otherwise it will terminate.

Be the first to comment

Leave a Reply