Installation Tvheadend Server on an Enigma2 Box

How To Install Tvheadend TV Streaming Server and Video Recorder on any Enigma2 Box

General Info:


Tvheadend is a TV streaming server for Linux which supports DVB-S, DVB-S2, DVB-S2X, DVB-C, DVB-T, DVB-T2, ATSC, IPTV.

The configuration takes place via a web interface, which can be called up in the browser.

The playback takes place e.g. via Kodi, Android or IOS.

It is possible to configure Tvheadend in such a way that any PC in the network can receive the server's TV signal.


The instructions describe how to set up the TVH server as a standalone solution on an Enigma2 box, parallel operation would also be possible

maybe there will be users who would like to describe it.


Precondition:


An Enigma2 box with openATV 6.4 or newer

Putty for Telnet/SSH access.

Filiezilla for FTP access.

A TVHClient e.g. Android TV, IOS or Android mobile phone to access the server.

PC with web browser.

Time and fun crafting


Preparation:


Current openATV 6.4 image or newer must be installed.

Images from December 25th, 2020 have a ready compiled version of the TVH server on the feed.


Connect to the box with telnet and install the software.

Info if the tvheadend installation is not found, wait until an image is available for download from December 25th, 2020


Code
opkg update
opkg install tvheadend

stop enigma2


Code
init 4


initial start of the TVHServer

the parameter -C starts the TVH server without requiring a user login, should only be used for the first installation

Code
tvheadend -C


access the WEB GUI with a PC WEB browser

Code
http://<IP of the BOX>:9981/


0a44a7287cf8bfc7ea46d0.png


Set languages in the example I set everything to German.

after Save & Next the wizard starts again so don't be surprised.

click Save & Next again


57f8fe860d2d219664f1f.png



Defining the local network and the standard user.


In my example

I define my local network and, as an admin user, take the same information as to access the Enigma2 box.


8abde44484083091573c3d.png




Configuration of TV adapter

I have an Enigma DVB-S2 Twin Box for testing


374071.png



configuration of networks

in my example for Astra 19.2


5b40cdeef38e36db4b50.png



the scan will take a long time, you can wait or just click Next.

the scan continues working in the background.


38068e4.png


Assign the services found to a channel list


f79f6a724b5.png


Completion of the initial configuration


d47bcc.png



New login with admin account and advanced configuration:


In my example, I had set root as the admin user.



b3032c095b3.png


2a9bfb687aa53394db96e3.jpg




Adjust tuner configuration

the wizard configures the tuner only quite simply

If you have more than one SAT position or Unicable you have to adjust your configuration accordingly.


Example Astra 19.2 and Hotbird 13.0


Customize the networks


Rename the default network DVB-S network to DVB-S Astra 19.2



64a10178b1308910782af52e9.jpg



Creation of the HotBird network

32f34940349645.png




Assigning the network to a TV adapter


41cdf97e57041e.jpg


In my example, I have tuner B connected to a Unicable Switch with SAT Position A Astra and B Hotbird

Info SCR (ID) and MHZ from your Unicabke switch or click here from the Enigma2 configuration

Find your model from the list: scr1="1284" corresponds to SCR (ID) 0 in THV Server and 1284 to the frequency (MHZ).


I test access on the PC with Install VLC Player


54e3f0c130dc40a4.png



c0a8de.png


Setting up Conditional Access (CA) (OSCAM):


Under General Default view level on Advanced and the Refresh page, then tick Conditional Access.

Save and refresh the page once in a while


b55cd5c22cc.png


I will not explain how to set up OSCAM here, only what needs to be set in TVH Server

in example access to an OSCAM Home Share


36dade36a1cf8d.png



You can see whether the connection has worked by looking at the green symbol.


cf029ac.png



Quick test


33d6fb916e5.png



d37f49f.png



Configure recording folder:


So that recordings do not use the internal flash, an internal or external HDD must be used.

Please set the folder name as you know it from the Enigma2 world accordingly.


/media/hdd/movie


I use the following options


Insert channel name in file name:

Insert date in file name:

Fetch artwork for new recordings.:

Fetch artwork for unidentifiable broadcasts.:


ec18b956dd7.jpg



TVH Server Start Automatically.


So far the server only works if you have previously stopped Enigma2 and started the server

As said at the beginning, this is a guide for a standalone server after this change, Enigma2 will no longer start, but the TVH server!

the standalone solution is just intended for decommissioned Enigma2 boxes that were no longer used anyway.


Connect to the box with Filezilla:


If the access did not work, please assign a password to the ROOT account beforehand so that FTP access is activated.


via telnet


Code
passwd root


Save the Enigma2,sh start scripts (if you want to go back

in my case I renamed the file as Enigm2.sh_old

997a7abf89b1307.png


68f97e800635b71bb.png



create a new enigma2.sh with the following content

please use Notepad++ or similar as editor


Bash
#!/bin/sh
export HOME=/home/root
/usr/bin/tvheadend


892c7231cab8b6564b8d7.png


in Filezilla click on create new file

Edit file rights to 775 and save


with telnet

Code
sync
reboot


restart the box and the TVH Server Standalone starts automatically.



Optional information:


The config files of the installation are in the folder: /home/root/.hts

the entire folder e.g. Save if you want to make a backup or delete if you want to start over with the configuration.


Info on the web


GitHub - tvheadend/tvheadend: Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV,SAT>IP and other formats through the unix pipe as input sources.
Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV,SAT&gt;IP and other formats through the unix pipe as input…
github.com

Overview - Tvheadend

Tvheadend 4.0



This has been translated from German

Thanks @Captain from the ATV forum

Replies 6

  • Thank you for your time for the training. I would like to ask you for some guidance on the installation tvheadend inside the receiver under the Kodi without the need for a computer.

    In other words, is it possible to watch satellite channels through Kodi in the receiver?

    I installed the Kodi, but I have a problem watching Live TV through tuners.

    Thank you for your advice.

  • How do you go back to enigma2 in case you dont want to use tvh anymore?

    Also what are the recommended requirements for transcoding?

    Im using one box just for streaming (zgemma) but the built in transcoding isnt great, so i thought maybe it works better on tvh?

  • In which folder should I put the list of muxes for DVB-T2?


    Select pre-def muxes is empty.


    Screenshot-2023-08-07-at-10-56-40-Tvheadend.png

  • How do you go back to enigma2 in case you dont want to use tvh anymore?

    I returned the Amiko Viper Combo so I flash openatv via usb.
    After that I got fault code 99.
    Then I sent the commands with putty:
    init 3
    init 6

    And so I returned the E2

    Thanks 1
  • TVHeadend on E2 Amiko Viper Combo, I can't watch 2 different IPTV programs. When one works, it gives the message for the other:

    no free adapter. Is that normal? Because I am running 5 different streams on the Raspberry Pi.

    I'm still waiting for an answer, where to put the list of dvb-t2 muxes?


    Raspberry Pi LibreELEC have in folder;


    /storage/.kodi/addons/service.tvheadend42/dvb-scan/dvb-t/


    /storage/.kodi/addons/service.tvheadend43/dvb-scan/dvb-t/

  • Tried with a Dinobot 4kplus everything installed successfully however it doesn't get any muxes, looks like the tuner is dead in tvheadend, however under Enigma 2 the tuner works fine.


    any suggestion?

  • Join the discussion!