Oscam Icam TVHeadend

There are 308 replies in this Thread which was already clicked 89,456 times. The last Post () by damyaugust.

  • 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!

  • 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.

  • Hi guys.


    I have followed the steps of @=[MITM]= in post #81 to install patched TVH on Ubuntu 20.04 with Oscam r11715, apparently without errors, but Sky is still dark. TVH reports:


    Configure arguments:


    --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking --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 --jobs=4



    Compiler:


    Using C compiler: ccache cc


    Using LD flags: -ldvbcsa


    Build for arch: x86_x64



    Binaries:


    Using PYTHON: python3


    Using GZIP: gzip


    Using BZIP2: bzip2



    Options:


    pie yes


    ccdebug no


    cardclient yes


    cwc yes


    cccam yes


    capmt yes


    constcw yes


    linuxdvb yes


    satip_server yes


    satip_client yes


    hdhomerun_client no


    hdhomerun_static no


    iptv yes


    tsfile yes


    dvbscan yes


    timeshift yes


    trace yes


    avahi no


    zlib yes


    libav yes


    ffmpeg_static no


    libx264 yes


    libx264_static no


    libx265 yes


    libx265_static no


    libvpx yes


    libvpx_static no


    libtheora yes


    libtheora_static no


    libvorbis yes


    libvorbis_static no


    libfdkaac no


    libfdkaac_static no


    libopus yes


    libopus_static no


    nvenc no


    vaapi yes


    mmal no


    omx no


    inotify yes


    epoll yes


    pcre no


    pcre2 yes


    uriparser yes


    ccache yes


    tvhcsa yes


    bundle no


    pngquant yes


    kqueue no


    dbus_1 no


    android no


    gtimer_check no


    slow_memoryinfo no


    libsystemd_daemon no


    pcloud_cache yes


    ddci yes


    cclang_threadsan no


    gperftools no


    execinfo no


    mmx yes


    sse2 yes


    W_unused_result yes


    f_stack_protector yes


    f_stack_protector_strong yes


    f_stack_check yes


    f_PIE yes


    fdatasync yes


    getloadavg yes


    atomic32 yes


    atomic64 yes


    atomic_time_t yes


    atomic_ptr yes


    bitops64 yes


    lockowner yes


    qsort_r yes


    gmtoff yes


    recvmmsg yes


    sendmmsg yes


    ifnames yes


    py_gzip yes


    bin_pkg_config yes


    bin_xgettext yes


    bin_msgmerge yes


    bin_gzip yes


    bin_bzip2 yes


    ssl yes


    linuxdvbapi yes


    linuxdvb_ca yes


    upnp yes


    hwaccels yes


    inotify_h yes


    inotify_init1 yes


    dvbcsa yes


    epoll_create1 yes


    mpegts yes


    mpegts_dvb yes



    Packages:


    openssl 1.1.1f


    zlib 1.2.11


    libpcre2-8 10.34


    liburiparser 0.9.3


    libavfilter 7.57.100


    libswresample 3.5.100


    libavresample 4.0.0


    libswscale 5.5.100


    libavformat 58.29.100


    libavcodec 58.54.100


    libavutil 56.31.100


    libva 1.7.0


    libva-drm 1.7.0



    Installation paths:


    Prefix: /usr


    Binaries: ${prefix}/bin


    Libraries: ${prefix}/lib


    Data files: ${prefix}/share


    Man pages: /usr/share/man


    Is there a way to know if I've done it correctly? Do I have to implement any other settings or modify the .m3u links like when patching Oscam?


    A little light, please.

  • 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?

  • 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?

    Hi. Thanks.

    1. Yes. TVH and Oscam connect via DVBAPI.

    2. Remotely. I understand that my provider uses Oscam Icam because it recommends patching Oscam for Icam. I chose your option to patch TVH because I use Ubuntu and it seemed easier to me.

  • What's your oscam.conf, oscam.dvbapi and log when you try to watch a channel which uses 098D?

    Oscam.conf:


    [global]

    logfile = stdout;/var/log/oscam.log

    clienttimeout = 10000

    fallbacktimeout = 5500

    bindwait = 40

    nice = -1

    maxlogsize = 200

    waitforcards = 0

    waitforcards_extra_delay = 550

    preferlocalcards = 1

    lb_nbest_readers = 2

    lb_min_ecmcount = 3

    lb_max_ecmcount = 250

    lb_reopen_seconds = 900

    lb_retrylimit = 800

    lb_max_readers = 10

    disablecrccws = 1

    disablecrccws_only_for = 0500:030B00,060A00,060C00;1819:00006D;09C4:000000;098C:000000;1884:000000;1841:000000;1811:003311,003315;1883:003311;092B:000000;1813:000068;0B01:000000;098D:000000;091F:000000;1813:000000


    [cache]

    max_time = 13


    [dvbapi]

    enabled = 1

    au = 1

    pmt_mode = 4

    listen_port = 9090

    user = tvheadend,minisatip,VLC

    #read_sdt = 2

    write_sdt_prov = 1

    boxtype = pc


    Oscam,dvbapi:


    enabled = 1

    au = 1

    pmt_mode = 0

    delayer = 50

    user = dvbapi


    Register:


    2022/11/11 14:28:51 404952C1 c (dvbapi) Demuxer 0 ecmpid 0 CAID: 098D ECM_PID: 1CBA PROVID: 000000

    2022/11/11 14:28:51 404952C1 c (dvbapi) Demuxer 0 ecmpid 1 CAID: 098C ECM_PID: 1ABA PROVID: 000000

    2022/11/11 14:28:51 404952C1 c (dvbapi) Demuxer 0 ecmpid 2 CAID: 09C4 ECM_PID: 1BBA PROVID: 000000

    2022/11/11 14:28:51 404952C1 c (dvbapi) Demuxer 0 found 3 ECM pids and 3 STREAM pids in CA PMT

    2022/11/11 14:28:51 404952C1 c (dvbapi) Demuxer 0 found channel in cache and matching prio -> start descrambling ecmpid 0

    2022/11/11 14:28:51 404952C1 c (dvbapi) Demuxer 0 trying to descramble PID 0 CAID 098D PROVID 000000 ECMPID 1CBA ANY CHID PMTPID 0066 VPID 06FF

    2022/11/11 14:28:51 404952C1 c (dvbapi) Client connected: 'minisatip/1.1.80' (protocol version = 2)

    2022/11/11 14:28:52 404952C1 c (dvbapi) Demuxer 1 ecmpid 0 CAID: 09C4 ECM_PID: 1BBA PROVID: 000000

    2022/11/11 14:28:52 404952C1 c (dvbapi) Demuxer 1 ecmpid 1 CAID: 098C ECM_PID: 1ABA PROVID: 000000

    2022/11/11 14:28:52 404952C1 c (dvbapi) Demuxer 1 ecmpid 2 CAID: 098D ECM_PID: 1CBA PROVID: 000000

    2022/11/11 14:28:52 404952C1 c (dvbapi) Demuxer 1 found 3 ECM pids and 4 STREAM pids in CA PMT

    2022/11/11 14:28:52 404952C1 c (dvbapi) Demuxer 1 found channel in cache and matching prio -> start descrambling ecmpid 2

    2022/11/11 14:28:52 404952C1 c (dvbapi) Demuxer 1 trying to descramble PID 2 CAID 098D PROVID 000000 ECMPID 1CBA ANY CHID PMTPID 0066 VPID 06FF

    2022/11/11 14:28:53 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:DAE1CFBBCED677FFAF5D82E3DFD33660): found (94 ms) by FK-S8 (F/2/2/2) - Sky Sport F1 HD (real 94 ms)

    2022/11/11 14:28:57 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:DD860E6C14D246B19C7EC107A97CF482): found (240 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 240 ms)

    2022/11/11 14:29:04 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:F199406DF981E5B659E83ADCD565BED3): found (393 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 393 ms)

    2022/11/11 14:29:11 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:988034EF4E6C06251C67A7D191FEDC8F): found (393 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 393 ms)

    2022/11/11 14:29:18 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:5FD3BDCB451F61A370ADB89D949EFBFC): found (236 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 235 ms)

    2022/11/11 14:29:25 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:95B19E237C6344B535201347BBB4EA27): found (235 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 235 ms)

    2022/11/11 14:29:32 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:20C7B3B71BD491F486EABDB90FD6C6A0): found (372 ms) by FK-S8 (F/2/2/2) - Sky Sport F1 HD (real 372 ms)

    2022/11/11 14:29:39 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:A3E24ABAA82E0B0F4590943DEE6061F4): found (232 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 232 ms)

    2022/11/11 14:29:46 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:643EA496C753082FAFE45039B141B6A5): found (237 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 237 ms)

    2022/11/11 14:29:53 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:C97C40A64C2204CD57E8A109F4720D68): found (401 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 401 ms)

    2022/11/11 14:30:00 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:8DF8F51BA0E09C4C5EC78D60766DD938): found (333 ms) by FK-S8 (F/2/2/2) - Sky Sport F1 HD (real 332 ms)

    2022/11/11 14:30:07 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:743B305CC69398EC2BE43336716E3DB6): found (395 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 395 ms)

    2022/11/11 14:30:14 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:F5722E193D65E5D67C62DEC6B61F7FC9): found (404 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 404 ms)

    2022/11/11 14:30:21 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:BD82298DB0E262A9533000A3256F916A): found (377 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 377 ms)

    2022/11/11 14:30:28 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:9D7654EF9628A1104695391413A36B4C): found (226 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 226 ms)

    2022/11/11 14:30:35 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:7EF98FA70E05669A94844C28154D6A10): found (323 ms) by FK-S8 (F/2/2/2) - Sky Sport F1 HD (real 323 ms)

    2022/11/11 14:30:42 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:BD3B401146B2B58C6F7FFDF16E78463C): found (222 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 222 ms)

    2022/11/11 14:30:49 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:29E2355A2CD13FB639CF07BEF1E5CD74): found (232 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 232 ms)

    2022/11/11 14:30:56 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:8950A72FD4FFBC52F3D61CC060206121): found (360 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 360 ms)

    2022/11/11 14:31:03 404952C1 c (ecm) anonymous (098D@000000/0090/0011/A7:6AC09D3690BD5B06A06CBBC1002B4AA6): found (373 ms) by FK-S4 (F/2/2/2) - Sky Sport F1 HD (real 373 ms)

    2022/11/11 14:31:07 404952C1 c (dvbapi) Demuxer 0 stopped descrambling for program 0011 (Sky Sport F1 HD)

    2022/11/11 14:31:07 404952C1 c (dvbapi) Demuxer 1 stopped descrambling for program 0011 (Sky Sport F1 HD)


    Could it be a minisatip problem?

  • 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

  • Ok!


    Now I have a "strange" problem with the newly installed TVH player. I have the default relay profile set to pass; the TVH player emits sound but black image, if I change the player to matroska profile it shows image without sound. VLC reproduces image and sound well. Now the TVH player does play Sky F1 Bravo! in the above conditions: to choose only sound or only image, but VLC does not show anything.


    Oscam.user:


    [account]

    user = tvheadend,kodi,VLC

    hostname = 192.168.1.132

    monlevel = 4

    suppresscmd08 = 1

    keepalive = 1

    au = 1

    group = 1

    max_connections = 4

    cccignorereshare = 0



    Oscam.server:


    [reader]

    label =

    description = line1

    enable = 0

    protocol = cccam

    device =

    user =

    password =

    inactivitytimeout = 30

    reconnecttimeout = 15

    fallback = 1

    disablecrccws_only_for = 0500:030B00;1819:00006D;09C4:000000;098C:000000;1884:000000;0500:050F00;098D:000000

    group = 1

    cccversion = 2.3.2

    ccckeepalive = 1

    Edited once, last by Mastropiero: If in the TVH player I select the webtv-v8-vorbis-webm profile, I have Sky with image and sound, although the image is not very clear. VLC still doesn't play anything. ().

  • 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.

  • You're using TVH as your backend to deliver IPTV within your environment, right.

    Yes


    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

    Ok!


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

    I suspect that is very true :) . I do not have a rational understanding of these aspects and I use tutorials with copy and paste, perhaps several instructions have accumulated over time. Everything must have fit because it was working fine, but in this operation with TVH it was reinstalled and, very clumsy of me, I lost the existing TVH configuration. I'll try until it works and probably end up with a chaotic setup :). Any suggestions on Oscam's mess?

    Edited once, last by Mastropiero: I had TVH installed from the nkvoronov repository. The installation creates a user "*" and with it everything worked, I didn't need to create more users. Now I had to create it, I gave it all the permissions, but it's not right: I had to create a user for it to work on kodi and I may need to create a VLC user. ().

  • 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.

  • Thx =[M.I.T.M]=

    I have tried to put your exact configuration and I had problems in the connection TVH-Oscam, TVH is so delicate. I need to do some research on the function of parameters. Still I have applied your general recommendations. From my ignorance, I find the oscam.dvbapi file weird.

    Greetings.

  • 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?

OSCam Support Forum

Configs, discussion, downloads and guides for OSCam Softcam.

Participate now!

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