This is a small server that allows you to watch digital television on your computer and your local network.
wget https://github.com/phpbg/watchtv/releases/download/1.1.0/watchtv-1.1.0.tar.gz
tar xf watchtv-1.1.0.tar.gz
cd watchtv/
sudo ./install.sh
Use this map to know your broadcasting technology.
You can run the server and the client on the same device if you want.
Desktop:
Follow this guide
You can copy m3u and epg URLs from main channels page (links at bottom). I highly recommend you disable caching channels in IPTV plugin configuration and in kodi PVR settings
IMPORTANT: there is a bug in dvbv5 that may crash your raspberry sooner or later. Please wait for bug resolution before using this on your raspberries: bug report. If you experience the issue I highly suggest you install and use dvbjet from https://github.com/lightful/DVBdirect , it is faster and stable.
A raspberry zero-w is enough, although I recommend you something more reliable:
Install requirements :
Those requirements are already packaged in most ditributions: Ubuntu / raspbian
$ sudo apt install php-cli dvb-tools
Debian (as root)
# apt install php-cli dvb-tools
Archlinux
$ sudo pacman -S php v4l-utils
Fedora (as root)
# dnf install php-cli v4l-utils
$ tar xf watchtv-1.1.0.tar.gz
$ cd watchtv
$ php server.php
If you want the server to start automatically at boot, install it as a service.
watchtv.service
ExecStart
path, or copy the files extracted to /opt/watchtv
User
and Group
or create watchtv user with useradd -U watchtv -M -G video
watchtv.service
to /etc/systemd/system/
$ sudo cp watchtv.service /etc/systemd/system/
$ sudo systemctl daemon-reload
$ sudo systemctl start watchtv
$ sudo systemctl enable watchtv
To check logs run $ journalctl -u watchtv
See here for a complete list of DVB digital devices that should be compatible. Tested:
Your video may be interlaced.
With mpv, try pressing d
to activate deinterlace
If it works, you can make it permanent with deinterlace=yes
in ~/.config/mpv/mpv.conf
When you use the web interface with edge, you need to tell windows to open channel with, for example, mpv.
C:\\Program Files\\mpv\\mpv.exe
or update the downloaded file with the correct pathAfter cloning the project run:
git submodule init
git submodule update
Build a release
#Make sure log level is set to INFO in server.php
composer install --no-dev --optimize-autoloader
cd ..
tar --exclude='watchtv/.git' --exclude='watchtv/.idea' --exclude='watchtv/channels.conf' -czf watchtv.tar.gz watchtv/