Posts by fegol

    try it: oscam-1.20_svn11715-798-arm-none-linux-gnueabi-ssl-libusb.zip

    Quote

    Is it possible to make patching of tvheadend inside CoreElec 9.2.8?

    I would also like to know this. Perhaps it is possible to transfer the Docker Container from another Linux Distribution (with git) to CE? CE has no git to build the patched versions of TVH and libdvbcsa.


    But I am not familiar with docker yet.


    It can also be built within CoreELEC without any problems,

    just create a patches folder "here" and copy the unzipped content of libdvbcsa.patch.zip to the patches folder and rename the patch to something like libdvbcsa-01-LS.patch,

    and copy the unpacked contents of tvheadend43.patch.zip into "this folder" and rename the patch to something like tvheadend43-03-LS.patch.


    and running this command in a linux terminal:

    Code
    export PROJECT=Amlogic # Amlogic, Generic, RPi, ...  #
    export ARCH=arm # arm or aarch64                     #
    
    scripts/build libdvbcsa
    scripts/create_addon tvheadend43


    And the end result: target/addons/9.2/Amlogic/arm/service.tvheadend43/service.tvheadend43-9.2.104.zip

    try uninstalling dvbcsa...

    sudo apt-get purge libdvbcsa*


    and install the patched dvbcsa

    sudo make install


    ...

    I'm not able to apply the patch for libdvbcsa. Do I need a specific OS? I have tried it with Ubuntu 20.04. I also tried it with the Dockerfile but not successful as TVH cannot get compiled at the end and I also got an error that /patches/cpan has no content.

    Any hints?


    pasted-from-clipboard.png

    I think you added the patch twice and that's why...


    Code
    git config apply.whitespace nowarn
    git apply ../libdvbcsa.patch

    or

    Code
    patch -p1 < ../libdvbcsa.patch

    Thank you for your comment and feedback.


    Therefore, I have now added in parenthesis to my post the source versions required for the patch I tested.

    Is there any reason why patching TVH 4.2 with ffdecsa instead of TVH 4.3 libdvbsa?


    Anyway thanks for that patch!

    I tried and am trying with Tvheadend 4.3 libdvbcsa, but unfortunately it doesn't work for me yet. :thinking face:

    (ffdecsa and libdvbcsa are very similar)

    Yes, this is important to add, for example you can see the correct value on the oscam web interface, here.

    Code
    #EXTM3U
    #EXTINF:-1,Sky Cinema Premieren HD / SKY
    http://10.0.1.200:17999/stream/service/05076540e9cd5deb4628a2889f325ede?profile=icam&descramble=0&emm=0&:0:0:83


    ##################################

    or


    But if you don't want to bother with channel lists or stream relay, and you don't need a special icam fix for OScam, you can add one of these fixes to Tvheadend 4.2, which one you like, and it's important to disable dvbcsa in the configuration (--disable-dvbcsa).

    Note: if dvbcsa is disabled, all channels are decoded via ffdecsa.


    tvheadend42-ffdecsa-v1.patch.zip

    tvheadend42-ffdecsa-v2.patch.zip


    It's not the perfect patch either, but it works better for me with Tvheadend 4.2 than when OScam processes stream data.

    You're doing it right, but unfortunately it doesn't work for tvheadend 4.3 (it's what tvheaden4.3 has).


    Try it with tvheadend 4.2 and it will work there. (it is important that a, descramble=0)

    http://10.0.1.200:17999/stream/service/05076540e9cd5deb4628a2889f325ede?profile=icam&descramble=0&emm=0&:0:0:"Service ID"


    2022-08-25 22-15-29.png

    Reading ncam.fs and CCcam.cfg files when starting NCam or reloading readers.


    These generally work well unless...


    On certain weaker devices (e.g. mips routers), reloadreaders (xttp://IP:PORT/readers.html?action=reloadreaders) do not work and cause a crash, regardless of the number of readers and the version of xxcam, this is also the case with OSCam. (this is a bug)

    If we add too many readers (more 100), strange things happen... (this is a bug)


    Normally, reloadreaders should work fine with a few lines of C.

    If you want more, select restart. (xttp://IP:PORT/shutdown.html?action=Restart)


    Example:

    65564a36e89e9bb3f422d.png


    ncam.fs


    ##########################################


    (config) ncam.fs read lines: C:512 N:0 L:0 R:0

    097a7ec3d843be.png


    About 20 minutes later:

    725445f.png

    So its just 2 different names for the same thing?

    I had a look at the source (I don't understand C). It seems that the same read function is used for both files?

    I wonder what the point is?

    Yes, same function with different file names.


    You can specify another path to the CCcam.cfg file in the configuration.

    ncam.fs is only in the config folder.


    up to you... :light bulb:

    I have created my own Docker image using the source found here https://github.com/fairbird/NCam

    It seems to work like OSCAM with regular proxy readers but I cant figure out how this auto AFN key stuff works.

    Did you add libcurl during the build?


    example Dockerfile:

    about mtn emm keys work and auto updates the ecm keys but there is a problem with hash mode and despite the key is found every time it cannot decode the channels...
    teak-won-do


    are these emm keys currently working?

    F 2A94055E 02 (wrong value)


    F 858C488A 00000000 912CAB68EE1F2633 (46 20 38 35 38 43 34 38 38 41 20 30 30 30 30 30 30 30 30 20 39 31 32 43 41 42 36 38 45 45 31 46 32 36 33 33 e2 80 8b 0a) non-hex value ..

    F 858C488A 00000000 912CAB68EE1F2633 (46 20 38 35 38 43 34 38 38 41 20 30 30 30 30 30 30 30 30 20 39 31 32 43 41 42 36 38 45 45 31 46 32 36 33 33 0a) ok

    If you copy keys from a web interface to a text txt file (SoftCam.Key) with CTRL + C/V, this kind of bug can happen and strange characters may be added that emu cannot process and warns you in the log.

    emu ignores bad keys and does not cause emu operation problems.

    Hello. Not work with that libs.

    I think you did everything right, but it still doesn't work.

    I cannot test AlexELEC because it does not run on my device.


    Uninstall the ncam-unofficial addon or delete lib folder and .so files and restart your device.

    Built for AlexELEC-3.3.4, try it, install it again: service.softcam.ncam-unofficial-Amlogic-arm.87e3267.zip

    (Unfortunately, the source code of AlexELEC is not completely public, I built it with what I have...)