Installation Tvheadend Server on an Enigma2 Box

There are 15 replies in this Thread which was already clicked 7,172 times. The last Post () by matrix_007.

    • Official Post

    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

    • Official Post

    Is there an alternative way to start tvheadend without killing and editing the enigma boot (just start it with enigma also working in the background)

    Yes that is explained in the thread, by editing enigma2 sh

  • If i folow the guide yes tvheadend starts but the box is unusable in other ways (hangs halfway to enigma interface boot)

    Let me be more clear.

    What i want to do is run tvheadend --fork (it won't see the tuners build in) and then map port 2 of the internal tuner on my dm7080hd and link it with minisatip

    and using port 1 in original enigma2 so i can still use the box.

    If i folow the guide the progress bar goes half way and freezes if i run enigma2 from terminal it loads and they can work just fine i can use the tuners and tvheadend can too but i can't use multiple lnb's with the tuners.

    if i make a script and run tvheadend --fork it loads and enigma2 starts normaly and i like it like this, but

    the more interesting question how to run minisatip without killing enigma2 and mapping only port 2


    <-------- not a programmer


    i think this will work better because i can then asign diseqc without encountering the driver issue.

    Edited 3 times, last by didov3 ().

    • Official Post

    :thinking face: mmmmm, i am not familiar with minisatip but i did find its help file here


    minisatip/README.md at master · catalinii/minisatip
    minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards - minisatip/README.md at master · catalinii/minisatip
    github.com


    so as i read your post above, you have TVheadend and e2 working together but the issue comes with minisatip


    Perhaps add a delay to the start of minisatip into its start script

    It looks like all other options are covered in the help section.


    Code
    minisatip --help


    Let us know how you get on :goodluck:

  • The hard part is that both tvheadend and minisatip both conflict with enigma2 .... :D

    Also ading sleep to bin/bash script hangs the whole startup and achieves nothing...

    it could be posible to tie it up to let's say a softcam's startup script (atleast in enigma2 you have a way to start/restart it)

    Edited 2 times, last by didov3 ().

  • Hi got a question here,

    I tried this just for fun on my Vu Duo.

    TVHeadend starts and I can see the both tuners.

    When I try to scan I doesn't find a single channel on Astra or Hotbird.

    I am using a monoblock quad LNB with DM900 (Astra / Hotbird) and without starting thvheadend on the Vu which also works with Simple tuner seetings (Astra / Hotbird).
    Any idea how to make this work please ?

  • I keep getting this during the scan


    2023-02-05 13:47:18.125 linuxdvb: BCM7335 FE #0 : DVB-S #0 - poll TIMEOUT

    2023-02-05 13:47:18.267 linuxdvb: BCM7335 FE #0 : DVB-S #0 - retune nodata

    2023-02-05 13:47:25.784 linuxdvb: BCM7335 FE #0 : DVB-S #0 - poll TIMEOUT

    2023-02-05 13:47:26.318 linuxdvb: BCM7335 FE #0 : DVB-S #0 - retune nodata

    2023-02-05 13:47:27.015 mpegts: 10832.25H in Astra - scan no data, failed

    2023-02-05 13:47:27.015 subscription: 0009: "scan" unsubscribing

    2023-02-05 13:47:27.125 mpegts: 10891.25H in Astra - tuning on BCM7335 FE #0 : DVB-S #0

    2023-02-05 13:47:27.409 subscription: 000B: "scan" subscribing to mux "10891.25H", weight

  • no predfined muxes are populating the dropdown box for me - tvheadend server is running on Openatv image on Formuler F1 box ? can i install a supplemental file using telnet to have muxes available ?

  • Hi.

    I have same DM900, with openatv 6.4 and try the tvheadend.

    After many attempts, i gave up because i had the same issue as you.

    Find Tuner, find MUXES but FAIL scan (no services).

    After that, try other combinations.


    ... Install in a VM with debian 11 with tvheadend, and same result (even installed satip as server in DM900).

    .... Another attempt was use another box as standalone system (like the begining of this post). All config well and have signal 80 or 90 % (green bars) :)

    and click Force Scan... gives FAIL no services


    I dont know why 😂

    After all i tried tvheadend enigma2 based plugin (no success)

    Try with debian server and tvheadend last version (same result as above).


    If someone knows or have some hints about this please share :)


    Best regards to all.


Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!