Tvheadend 4.3-InnesPatched1

The Tvheadend 4.3-InnesPatched1 is a patched version of the TVheadend 4.3 application. The Innes patch is allowing to support the DVB-T to UDP gateway feature, which is not supported in the TVheadend 4.3.

Innes has submitted this software patch as contributor to the TVheadend communauty in September 2019 so that is it integrated soon in a next official TVheadend release. Waiting this, the patched version Tvheadend 4.3-InnesPatched1 is available for download below. Follow the procedure to install it.

2019-10-15 Tvheadend 4.3-InnesPatched1 download

BUG FIX, NEW FEATURES, MINOR UPDATES
  • Add support for DVB-T to UDP gateway feature
    • Based on TVheadend application, version 4.3
COMPATIBILITIES
  • Raspberry Pi 3 Model B+:
    • OS: Raspbian GNU/Linux 9.4 (stretch)
    • SD card: provided by Raspberry
    • Extension card: DVB TV µHAT
  • Raspberry Pi 4 Model B:
    • OS: Raspbian GNU/Linux 10 (buster)
    • SD card: provided by Raspberry
    • Extension card: DVB TV µHAT

INFORMATION


RASPBERRY PI

RASPBERRY PI: INSTALLATION
RASPBERRY PI: GET IP ADDRESS

To know the Rapberry Pi IP address, open a terminal windows and enter :

ifconfig
RASPBERRY PI: GET OS VERSION

To know the OS version of your raspberry, open a terminal window and enter:

lsb release -a

TVHEADEND

TVHEADEND 4.3-INNESPATCH1: INSTALLATION

Open the Chromium Web browser from your Raspberry Pi (Raspberry GUI > menu Internet), and download Tvheadend 4.3-InnesPatched1 on the Raspberry with the button above. The download is authorized only if you are allowed to. You are invited so to enter first your Innes website connection identifiers. For further information, contact sales@innes.pro.

The file tvheadend_4.3-InnesPatched1~raspbianstretch_armhf.deb is copied in the default directory /home/pi/Downloads

Open a terminal prompt (menu Accessories then Terminal) and type the linux commands:

sudo su 
cd /home/pi/Downloads
apt install ./tvheadend_4.3-InnesPatched1~raspbianstretch_armhf.deb

When asked, press Y to continue the installation.

To complete the Tvheadend 4.3-InnesPatched1 application installation like any TVheadend application, follow the instruction:

Note preciously these connection identifiers which will be required later

It is shown that the Tvheadend 4.3-InnesPatched1 application configuration Web interface can be accessed with the URL:

​http://<raspberry-pi_ip_addr>:9981/extjs.html

Wait for the end of the installation.

When the installation is completed, you can remove the .deb temporary file:

rm tvheadend_4.3-InnesPatched1~raspbianstretch_armhf.deb
TVHEADEND GUI

The Tvheadend 4.3-InnesPatched1 application configuration Web interface can be accessed with the URL:

​http://<raspberry-pi_ip_addr>:9981/extjs.html

Innes does not bring support for the TVheadend application using. So you are invited to visit official Web site or TVheadend tutorials. For any question, contact sales@innes.fr

https://www.raspberrypi.org
https://tvheadend.org/
https://kodi.wiki/view/Tvheadend
TVHEADEND FIRST INSTALLATION

From any computer, type the following URL into your web browser to connect to the TVheadend configuration interface: ​http://<raspberrypi_ip_addr>:9981/extjs.html

When never launcher before, you are invited to follow a first installation procedure.

Follow the different steps:

Press Next. You can see a list of the TV channels that can be watched.

Innes does not bring support for the TVheadend application using. So you are invited to visit official Web site or TVheadend tutorials. For any question, contact sales@innes.fr

https://www.raspberrypi.org
https://tvheadend.org/
https://kodi.wiki/view/Tvheadend
TVHEADEND: GET VERSION

To know the TVheadend version, in the TVheadend GUI, go to the menu About. The version is Tvheadend 4.3-InnesPatched1

TVHEADEND 4.3-INNESPATCH1: CUSTOM COMMAND TO START ONE OR SEVERAL UDP STREAMS

To start streaming a TV channel over UDP, enter the following URL in a Web browser: http://<raspberrypi_ip_addr>:9981/udpstream/start/channelnumber/<local_channel_number>?address=<udp_dest_addr>&port=<udp_port>

With

<raspberrypi_ip_addr> = IP address of the Raspberry Pi main board
<local_channel_number> = local channel number of the TV channel
<udp_dest_addr> = destination IP address of the UDP stream. It can be a multicast address
<udp_port> = UDP destination port

You can find the local channel number of your service in the TVheadend GUI in the menu Configuration > DVB Inputs > Services view example

It is possible to start several UDP stream at a time with the conditions that the service to stream are hosted on the same multiplex:

For example:

http://192.168.1.133:9981/udpstream/start/channelnumber/21?address=224.1.1.1&port=1111

Then

http://192.168.1.133:9981/udpstream/start/channelnumber/22?address=225.1.1.2&port=1112

To check the number of opened UDP streams, go to the menu Status > Connections. There is one line per opened UDP stream.

TVHEADEND 4.3-INNESPATCH1: CUSTOM COMMAND TO STOP A UDP STREAM

To stop an UDP stream, enter the following URL in a Web browser:

http://<raspberrypi_ip_addr>:9981/udpstream/stop/channelnumber/<local_channel_number>?address=<udp_dest_addr>&port=<udp_port>

For example:

http://192.168.1.133:9981/udpstream/stop/channelnumber/21?address=224.1.1.1&port=1111

TVHEADEND 4.3-INNESPATCH1: START A UDP STREAM AUTOMATICALLY AFTER BOOTING UP

To start automatically an UDP stream as soon as Raspberry Pi boot has reboot, you have to modify the custom file /lib/systemd/system/tvheadend.service:

Open a terminal window, and enter the appropriate command like explained.

Change the file read/write permissions:

sudo chmod a+w /lib/systemd/system/tvheadend.service

Edit the file /lib/systemd/system/tvheadend.service and uncomment the following line:

ExecStartPost=/usr/bin/curl "http://127.0.0.1:9981/udpstream/start/channelnumber/<local_channel_number>?address=<udp_dest_addr>&port=<udp_port>"

Replace the values to match your data, with:

<local_channel_number> = local channel number of the TV channel
<udp_dest_addr> = destination IP address of the UDP stream. It can be a multicast address
<udp_port> = UDP destination port

For example,

ExecStartPost=/usr/bin/curl "http://127.0.0.1:9981/udpstream/start/channelnumber/25?address=224.1.2.5&port=1235"

TVheadend HTTP server readiness delay:

If the connection does not start automatically, that means that:

ExecStartPort=/bin/sleep 20

Warning: Some TVheadend background tasks like the initial EPG Grab at startup or the network start-up scan may delay also the TVheadend HTTP server readiness of several minutes. When they are running, these background tasks appear in the table of the TVheadend menu Status > Subscription. It is advised to inactivate them so that the feature TVheadend DVB-T to UDP can run immediately after boot-up. For further information, read the appropriate appendix below. If you want to keep these background tasks anyway, you can enjoy to fine tune upper value for this delay.

Save the file /lib/systemd/system/tvheadend.service and reboot the Raspberry Pi.

TVHEADEND: APPENDIX TO RELAUNCH A DVB-T MULTIPLEX SCANNING

Note: In case bad RF DVB-T conditions, you can change the tune repeats to 3 instead of 1. Think to increase the HTTP server readiness delay according to (ex: 10 additionnal seconds)

TVHEADEND: APPENDIX TO INACTIVATE STARTUP SCAN

Once scanning is successful, inactivate the start-up scan background task which may delay the TVheadend HTTP server readiness:

TVHEADEND: APPENDIX TO INACTIVATE EPG GRABBER

Once scanning is successful, inactivate the EPG grabber background task which may delay the TVheadend HTTP server readiness:

TVHEADEND: APPENDIX TO CHECK TUNER/DEMODULATEUR STATUS

To see the tuner status (lock frequency, BER, SNR, bandwidth), go in the menu Status > Stream. Check that:

view tuner status

TVHEADEND: APPENDIX TO CHECK RUNNING SUBSCRIPTIONS

To see the running subscriptions, go in the menu Status > Subscriptions. The feature DVB-T to UDP gateway is the subscription whose the title is UDP.

view running subscriptions

TVHEADEND: APPENDIX TO CHECK RUNNING CONNECTIONS

To see the running connections, go in the menu Status > Connections. The feature DVB-T to UDP gateway is the connections whose the type is UDP.

view running connections

Innes does not bring support for the TVheadend application using. So you are invited to visit official Web site or TVheadend tutorials. For any question, contact sales@innes.fr

https://www.raspberrypi.org
https://tvheadend.org/
https://kodi.wiki/view/Tvheadend