Posts by =[M.I.T.M]=

    Eventually it didn't connect because of the user "tvheadend" under dvbapi section in oscam.conf. You'll need to provide an user which is in your oscam.user config.

    Or it's beacuse of some other issue but more info shall be provided by TVH (debug) log, especially when you try to connect to OSCam.

    What was the error message on TVH side?

    Any suggestions on Oscam's mess?

    This is my config which runs perfectly.


    oscam.conf:

    oscam.dvbapi:

    and additionally in oscam.server I've set disablecrccws = 1 in readers' config.

    You're using TVH as your backend to deliver IPTV within your environment, right. So TVH is the one that shall connect to your OSCam.

    Why do you have multiple users in OSCam? For example, just "tvheadend" would be enough.

    This user shall be in your oscam.user and as "user" under [dvbapi] section in oscam.conf


    TVH will then serve connected clients like Kodi, VLC, etc. Those respective users shall be configured in TVH only.


    Kodi will connect to TVH usually thru htsp protocol, while VLC will use "pass" (if I am not mistaken).

    So TVH (user) config shall be made accordingly and then it shall be working.


    But still I'd suggest to get also your OSCam config a bit more structured and sorted.

    your config looks weird. not sure if it's related to copy+paste.

    oscam.dvbapi should only contain CAIDs with P: (prioritize) or I: (ignore) flags


    also there's possibly some mess-up with users in your config.

    what's your oscam.user config?


    apart from that:

    Code
    disablecrccws = 1
    
    disablecrccws_only_for = 

    makes no sense to have them both set. choose either or, not both.


    EDIT: pls. also share oscam.server config but remove/replace sensitive information

    Hi,

    If patching and compiling of TVH on your sys went thru without errors and TVH runs afterwards as expected, the issue must be related so something else.


    Are you using DVBAPI to connect from TVH to OSCam?

    Where do you get your 098D from? Locally or remotely?

    ok, will give it a try, thank you for the hint.


    EDIT: thanks again - indeed it works this way and I'm able to watch encrypted channels (098D) thru DVBAPI connection to a OSCam 1.20-11714 which runs on a dedicated Debian VM.

    really?

    so taking the patched TVH addon for CE 19.5 from here and then replace the tvheadend.bin by the one available in the official LE 10.0.3 TVH addon should do the trick?

    almost can't believe that...

    Hi,


    is there some patched addon of TVH for LibreElec 10.0.3 (Kodi Matrix 19.4) for Raspberry Pi3 available?

    AFAIK, Coreelec cannot be used with RPi3 devices or am I wrong (at least I didn't find a proper image...)

    OSCam would run on a dedicated VM, hence, I'm just looking for a patched TVH for Kodi on RPi3.


    Many thanks!

    guys, what "CW Mode" option shall be selected in TVH 4.3 in CA section when it comes to a dvbapi connection to OSCam 1.20 build 11714?

    currently I use "standard/auto" but I wonder if any of the other options might be better for some reason? can someone explain?

    TVH_CW_Mode.png


    thanks!

    Hi,


    My guide was based on the assumption that required packages are already installed on a system.


    If not the case, recommend to do the following as very first step.


    Code
    apt update && apt upgrade -y
    sudo dpkg-reconfigure tzdata
    reboot
    sudo apt install build-essential git ccache libpcre3-dev pkg-config libssl-dev bzip2 wget unzip libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev gettext cmake libiconv-hook-dev liburiparser-dev debhelper libcurl4-gnutls-dev python2-minimal libdvbcsa-dev python3-requests libx264-dev libx265-dev libvpx-dev libopus-dev dvb-apps libva-dev libva-drm2 libva-x11-2 libsystemd-dev ffmpeg libavcodec-extra libavcodec-extra58 libavdevice-dev libavfilter-dev libavfilter-extra libpcre2-dev libpcre2-16-0 libpcre2-32-0 librecode0 recode libhdhomerun-dev


    That will install everything required as packages.

    On Debian 11.5 / Ubuntu 20.04.5 you should be able to compile TVH and build a *.deb package by following below exemplary steps.

    Of course, libdvbcsa should be patched already and libdvbcsa-dev shall be uninstalled.

    If not already uninstalled, do it at first:

    Code
    sudo apt-get purge libdvbcsa-dev -y
    sudo apt autoremove -y

    Next, git clone TVH, patch and compile:

    Code
    mkdir /var/tmp/tvheadend
    git clone https://github.com/tvheadend/tvheadend.git /var/tmp/tvheadend
    cd /var/tmp/tvheadend
    git config apply.whitespace nowarn
    git apply /var/tmp/patches/tvheadend/tvheadend43.patch
    ./configure --disable-ffmpeg_static --disable-libfdkaac_static --disable-libtheora_static --disable-libopus_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --disable-libfdkaac --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-avahi --disable-dbus_1 --disable-bintray_cache --disable-execinfo --disable-hdhomerun_static --disable-hdhomerun_client --enable-libav --enable-pngquant --enable-trace --enable-vaapi --infodir=/usr/share/info --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --cc=cc --arch=x86_x64 --platform=linux --python=python3 --sysconfdir=/config
    make -j$(nproc)

    then, if successful, try if compiled TVH binary runs with

    Code
    ./build.linux/tvheadend --noacl

    next, if TVH runs and can be accessed via its web UI, build the package by manipulating the related autobuild.sh script like this:

    Code
    cd /var/tmp/tvheadend/Autobuild
    nano debian.sh
    add argument '-d' to dpkg-buildpackage to remove libdvbcsa-dev dependancy: dpkg-buildpackage -d -b -us -uc
    save debian.sh
    AUTOBUILD_CONFIGURE_EXTRA="--disable-ffmpeg_static --disable-libfdkaac_static --disable-libtheora_static --disable-libopus_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --disable-libfdkaac --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-avahi --disable-dbus_1 --disable-bintray_cache --disable-execinfo --disable-hdhomerun_static --disable-hdhomerun_client --enable-libav --enable-pngquant --enable-trace --enable-vaapi --infodir=/usr/share/info --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --cc=cc --arch=x86_x64 --platform=linux --python=python3 --sysconfdir=/config" ./Autobuild.sh -j$(nproc)

    finally, install built TVH package. For example:

    Code
    cd /var/tmp
    dpkg -i tvheadend_4.3-2038~g5f9404117-dirty_amd64.deb

    that's it! Good luck :smiling face with sunglasses:

    start tvheadend binary with argument

    Code
    --noacl

    rather than with -C


    Once you've compiled and built a *.deb package and installed this afterwards, it will be started as a service via system.d which is also enabled by default. So nothing you need to worry about.

    I decided to use latest TVH from github. You can get it via

    Code
    git clone https://github.com/tvheadend/tvheadend.git

    by this you'll pull latest version which is not "stable" branch but for me (at least) it works perfectly and stable.


    Before that, git clone patched libdvbcsa

    Code
    https://github.com/glenvt18/libdvbcsa.git

    and compile.


    Then patch TVH 4.3 with provided patch from here. It should be on first pages of this thread.


    Lastly, compile patched TVH and install

    I'm currently struggling to make the patched TVH binary in the way that I can run it afterwards.


    First,libdvbcsa was patched & installed before and old libdvbcsa-dev got purged, like this:

    Code
    git clone https://github.com/glenvt18/libdvbcsa
    cd libdvbcsa
    git config apply.whitespace nowarn
    git apply libdvbcsa.patch
    ./bootstrap
    ./configure
    make
    sudo apt-get purge libdvbcsa-dev
    make install

    Next, TVH got patched and then make it (successfully)

    Code
    cd tvheadend
    git config apply.whitespace nowarn
    git apply tvheadend43.patch
    make clean
    ./configure --disable-dvbcsa --disable-ffmpeg_static --disable-libfdkaac_static --disable-libtheora_static --disable-libopus_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --disable-libfdkaac --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-avahi --disable-dbus_1 --disable-bintray_cache --disable-execinfo --disable-hdhomerun_static --disable-hdhomerun_client --enable-libav --enable-pngquant --enable-trace --enable-vaapi --infodir=/usr/share/info --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --python=python3 --sysconfdir=/config
    make

    If I now want to run tvheadend binary, I get:

    Code
    root@tvh-ubuntu-focal:~/tvheadend/build.linux# ./tvheadend 
    ./tvheadend: symbol lookup error: ./tvheadend: undefined symbol: dvbcsa_bs_key_set_ecm

    OS: Ubuntu 20.04.5


    Any ideas where my mistake is?


    Thanks!


    EDIT:

    ok, missed to purge also libdvbcsa1

    Now I can run the binary. What's the default user and PWD for web ui access?


    But, packaging it is still not possible with

    Code
    ./Autobuild.sh -t xenial-amd64

    It results in:

    Hi there,


    I wanted to test with the patched TVH 4.3 and have build the image and container successfully.

    But, for some reason this release of TVH doesn't recognize my Kathrein EXIP-418 Sat>IP Server.

    However, v4.3~26713c1 (running on my Synology NAS on DSM 6.2.6) does recognize the EXIP. But this build is not patched.


    It's not a matter of the network config of the container (I think), since I used "host" and Host is within same network (VLAN) as my EXIP.

    Hence I suspect it to be an issue of the version 4.3-2036~g81838dbb6-dirty


    How can I test the same thing probably with those patched libdvbcsa, etc with one of previous (older) builds?


    Edit: Or shall I try with macvlan for this specific container first? Never used this before because of no real need but in this case it might would make sense?


    Thanks!