Latest oscam-emu patch for oscam (11205) with stream relay mods/fixes

  • I, and at least a few other people, are using OSEmu/oscam-emu as a standalone application using just it's stream relay. The stream source can be any DVB streaming application (DVBlast, MuMuDVB, TVHeadend, Astra, etc ) and the client can be any player on a PC, phone/tablet or set top box. In this configuration, there is no dvbapi connection and no emm processing is done (no AU.) So, I have added the function of AU to the stream relay. For it to work, the CAT pid and EMM pid need to be included in the received stream.


    Other changes:
    1. In module-emulator-stream.c added connection id to client data so the connection id can be printed in log messages. Now it is not so confusing when there are multiple concurrent clients connected. Also, the change makes it unnecessary to have separate functions/calls for ParseTSPackets with oscam-emu and osemu.
    2. In module-emulator-osemu.c changed from cs_log to cs_log_dbg for missing keys so it does not spew lots of messages in normal operation when a channel has many, many unknown UAs.
    3. Updated module-emulator-osemu.h in OSEmu to be aligned with version from oscam-emu.
    4. In module-emulator-stream.c add the logging of the found emm pid.
    5. Added a configuration option to oscam-emu to enable the stream realy emm processing (disabled by deafult) and added it to webif.

    Code
    [streamrelay]
    stream_emm_enabled            = 1


    In OSEmu, the emm processing is enabled when using the already existing "-e" option.


    6. Also made small fix to oscam-config-global.c:

    Code
    -DEF_OPT_UINT32("stream_relay_enabled"     , OFS(emu_stream_relay_enabled),        1),
    +DEF_OPT_UINT8("stream_relay_enabled"     , OFS(emu_stream_relay_enabled),        1),


    7. add detection of audio stream types 0x05 and 0x06 (should fix ac3 track detection)


    TODO:
    Make a real CAT parser, the included code was just a quick hack...
    In oscam-emu, make the stream_emm_enabled changeable on-the-fly through the webif. Now a restart is required.


    Attached is the oscam-emu patch and the OSEmu source is available on github:https://github.com/joeusercz/OSEmu


    BTW - I only did limited testing, so any feedback would be helpful - especially for improving the CAT parsing...

OSCam-EMU Support Forum

Configs, discussion, downloads and guides for OSCam-EMU Softcam.

Participate now!

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