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-devNow, we need to download source code:
$ wget https://github.com/tvheadend/tvheadend/archive/master.zipMove it to a working directory and then extract it:
$ cd ~ $ unzip master.zip -d tvheadendEnter the relevant directory and build:
$ cd tvheadend/tvheadend-master $ ./configure $ makeYou 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/libtheoraNow we can repeat the build steps:
$ make $ sudo make installFor the first time that you run Tvheadend, you will need to run it with the option -C:
$ tvheadend -CYou 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 tvheadendor:
$ tvheadendFor the latter, you need to have PuTTY connected all the time, otherwise it will terminate.