Setup Tvheadend
Description
Tvheadend Guide für 4.X
Installation
RECOMMENDED 4.x:
latest 4.x deb => https://bintray.com/tvheadend/deb/tvheadend
install:
(Compiled on: 3.16.0-0.bpo.4-amd64 #1 SMP Debian 3.16.7-ckt11-1~bpo70+1 (2015-06-08) x86_64 GNU/Linux)
latest builds with transcoding support
Build 4.x from Source (with transcoding)
cd /home
apt-get install build-essential git pkg-config libssl-dev bzip2 wget
apt-get install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
git clone https://github.com/tvheadend/tvheadend.git
cd tvheadend/
./configure --enable-libffmpeg_static
#If configure fails install missing libraries/packages
# --enable-hdhomerun_static (for hdhomerun support)
# --enable-libffmpeg_static (h264 support)
AUTOBUILD_CONFIGURE_EXTRA=--enable-libffmpeg_static ./Autobuild.sh -t precise-amd64
# use -t precise-i386 for 32bit
cd ..
# u will find tvheadend.dev in /home/hts
dpkg -i tvheadend-xxx.deb
Alles anzeigen
Configure
Starting/Stopping
Tvheadend has autostart by default. However to start/stop/restart manually:
restart: service tvheadend restart
stop: service tvheadend stop
start: service tvheadend start
Tvheadend Settings location:
Configure Tvheadend from Scratch
- Add a new Network.
- Make Sure DVB-Adapter is active and assigned to the Network
- Wait till all Muxes and Services have been scanned.
- Start creating Channels and map corresponding services.
Predefined ChannelList
Follows horschte's work on kodinerds:
(He offers a predefined channel list and a set of picons)
http://www.kodinerds.net/index…a-19-2-Senderliste-Logos/
Automatic Channel Logos
With the new tvheadend version you can use "Picons".
Picons are basically a set of channel logos which can be automatically mapped against your frequences.
1. Download Picons
2. Create a folder: home/hts/Picons and extract zip-file to this Location
3. Go to -> Configuration -> General -> Base
4. Set "Picon Path" to "file:///home/hts/Picons"
Now all channel logos should be mapped automatically
Observe Tvheadend with Monit
Tvheadend has autostart by default. But what happens if tvheadend crashs/freeze sometime unexpected?
If you want to make sure that tvheadend is always started you can observe it with Monit.
Simple create the following file in -> /etc/monit/conf.d/tvheadend
check process tvheadend with pidfile /var/run/tvheadend.pid
start program = "/etc/init.d/tvheadend start"
stop program = "/etc/init.d/tvheadend stop"
if failed host localhost port 9981 then restart
if failed host localhost port 9982 then restart
if 5 restarts within 5 cycles then timeout
This will by default check every 30sec if tvheadend is still active.
After you created this file reload Monit config via Terminal using:
monit reload
tvheadend in PLEX
the following plex plugin offers tvheadend integration in a plex channel (with transcoding in plex)
https://github.com/realriot/tvheadend-ng.bundle
FAQ
Q:Tvheadend doesnt startup correctly/webpage is not shown
A: Backup and remove your settings from: /home/hts/.hts/tvheadend/; check HTTP_Port is defined in /etc/default/tvheadend
Questions / Problems / Diskussions
Click here to get to the diskussions thread
Version 1.0 // 08.10.2014
Version 2.0 // Changed layout to match guidelines
Version 2.1 // 16.07.2015 Update Guide to 4.x, Added discussion thread, Added known Issue