My powervu linux streaming setup.

There are 53 replies in this Thread which was already clicked 18,185 times. The last Post () by PortalNET.

  • Tested on a (Debian Wheezy 64bit) Linux PC with an old Skystar2 (DVB-S only) pci card. I assume you have a working card/usb tuner and a basic build environment already setup. Or, if you don't want to build your own, you can try the attached binaries.


    MuMuDVB is a streaming server which can stream via multicast and/or unicast (http). I disable the multicast and use just the http streaming. It uses the default port of 4242 to listen for connections. The feature I use is a url with the sid of the channel you want to watch. (e.g. http://127.0.0.1:4242/bysid/2) So, I have made a patch for oscam-emu/OSEmu to translate the usual powervu stream relay http request url (e.g. http://192.168.1.12:17999/1:0:1:2:1:9:5A0000:0:0:0:) which is made to osemu's stream relay to the "bysid" format. So the basic path is from stb/vlc/(any video stream client) via http to OSEmu port 17999, which then does an http connection to MuMuDVB for the desired sid which then streams back the channel (including ecm pid) to OSEmu which decrypts the stream and sends it to the requesting client. Since I am using this mostly with the AFN channels on 9E, I also made a patch to allow multiple clients to connect at the same time to the same or different channels. (Made possible by the fact that all the channels are on the same transponder.) It is also useful for the 4W HBO package...


    Here is a basic howto.


    1. Download OSEmu


    Code
    git clone https://github.com/oscam-emu/OSEmu.git


    Basic instructions for building/use are here: https://github.com/oscam-emu/OSEmu



    (or optionally you can use oscam-svn with oscam_emu patch)



    3. Add the following changes to request correct channel by sid from MuMuDVB: (tested with both oscam_emu and OSEMU...)




    4. Command-line for OSEMU

    Code
    ./OSEmu -v -a user:pass -p1234 -s 127.0.0.1 -r 4242:17999


    5. Install MuMuDVB
    (I have tested with version 1.7.1 installed with "apt-get install mumudvb" on Debian, and also built/tested 1.7.3 and 2.0. All work ok, but beware that some of the config options are slightly different between versions....)
    https://github.com/braice/MuMuDVB


    6. Example configuration file for MuMuDVB. Default is for adapter0, you may need to change to reflect your hardware.
    http://www.mumudvb.net/doc/mumudvb-2.0.0/README_CONF.html


    7. I made some patches for MuMuDVB to enable autconfigure to find and add the ECM pids. Here are the patches, or you can use the included binary....


    8. Example configuration file for MuMuDVB with autoconfiguration


    9. Some example playlists and user bouquet files.
    VLC playlist:


    userbouquet.HBO.tv


    10. Included in the attached tar:


    OSEmu directory containing latest source code already modified with bysid patch and a 64bit binary.
    MuMuDVB directory containing latest source code already modified with ecm pid autoconfig patch and a 64bit binary.
    Example playlists and user bouquets.
    Start scripts for OSEmu and MuMuDVB with example command line options.


    - - - Updated - - -


    I forgot to add that since osemu now supports multiple clients, you can watch/record all channels on the same transponder at the same time - including the same channel on multiple devices at the same time. the Only limit is your cpu and network bandwidth....

  • ...Continued conversation from other thread (Oscam-emu/OSEmu differences)


    I used exactly this patch which worked seamlessly together with oscam svn. Maybe a debug version could help. Thanks for the explanation about AU and dvapi. I think it's not clever to send all SIDs to oscam all the time as it keeps on decrypting all channels in a stream even if noone is watching. This keeps the CPU busy always. And yes, I have those options in my mumudvb conf already as I used your "mumu_init.auto.2.afn.conf" as a template. Thanks for your help, by the way. Have a nice weekend. :-)


    The rewrite config options do not prevent the sending of the entire stream, they only rewrite the sdt and pat from the transponder so it looks like only one channel (the one you selected bysid) is in the stream. Even without these options, mumudvb only sends the pids for the channel you choose (as well as the common pids.) BUT, this is probably why AU is confused since it is getting different information from dvbapi than what is in the stream (due to the rewriting.) So if you remove these options, maybe AU will work better. The other big BUT is, without the rewriting, my stb (and I think yours as well) will be confused and not play the stream. (VLC doesn't care either way.) I am not sure there is a way to make everything work with one config...


    So you used the patch and then just made the "bysid" changes for mumudvb usage?


    Attached is a version which prints how many scrambled video packets and how many decrypted (in two or three passes...) for each full buffer.
    Something like this


    The numbers should add up. :)


    Also included in zip is source in case you want to build yourself...


    Note for others: This is just for use with mumudvb config above, it will not work for connection to enigma2.

  • Thanks, I will take a look. Unfortunately I don't have a valid ECM key anymore since the provider changed the EMM and ECM keys probably last nite! I had calculated 5 UA/EMM keys using an old logfile before and all are gone for good now. Oscam must have been running at this time as the PC is always on but I guess AU cannot change the EMM entries in SoftCamFile.Key? After they changed the EMM keys my setup was locked out, of course. :-(

  • Hello again. I'm back "in business" (joking only) after I found somebody who showed me how to alter the code of module-emulator-osemu.c to change from sbox 0 to 0xa0. Then I also applied your change of module-emulator-stream.c and... it's working perfectly including AU. No glitches anymore on VLC!!! I didn't try any other client, yet, but that's all I actually need. Thank you very much!

    Edited once, last by Purrfect: more details ().

  • Bummer I missed your post on "satellite testers". Looks like they don't like any other solution beside their modified dreambox. I'm still using mumudvb for receiving two transponders with one PC handling 2 DVB cards. It's working well but I noticed that AU is only working for one channel, even if the stream contains more than one. Maybe this is a restriction of the dvbapi of oscam but it's the only way mumudvb can "talk" to oscam, isn't it? How does tvheadend do this?

  • Tvheadend uses capmt to connect to oscam for "normal" encrypted channels, but must also use stream-relay for powervu channels.


    I will post my setup when I get a chance. I don't have much time now, and every time I start, there are changes made to oscam and or tvheadend - hard to work with moving targets. :) But some of the changes (especially tvhedend) are good because they have implemented some of the things I had to patch myself before....


    If you want to get started, you can try installing the latest tvheadend and configure it. This tutorial should help with the basic setup: http://linuxsat-support.com/showthread.php?t=78286

  • I finally got around to testing auto update. I made some changes to oscam-emu/osemu to allow for processing the emm pid through the stream relay connection. So it now works with mumudvb. Attached are x64 binaries for oscam-emu and osemu - both with the "bysid" patch to work with mumudvb.


    Note: the autoconfiguration mode of mumudvb does not detect (and therefore does not send) the emm pid. So, it is best to use a manual config of channels and add the emm pid to the list of streamed pids...


    Also note: I only tested on a few channels. The parsing of the CAT is a bit of a hack, so it may not work on all channels....


    (Source code is available on my osemu git and I have issued a pull request, but not sure if/when it will get merged...)

  • I try to set up on mumudvb getting a massage.


    How i can fix this , .....


    Info: Tune: FE_STATUS:
    Info: Tune: FE_HAS_SIGNAL : found something above the noise level
    Info: Tune: FE_HAS_CARRIER : found a DVB signal
    Info: Tune: FE_STATUS:
    Info: Tune: FE_HAS_SIGNAL : found something above the noise level
    Info: Tune: FE_STATUS:
    Info: Tune: FE_HAS_SIGNAL : found something above the noise level
    Info: Tune: FE_HAS_CARRIER : found a DVB signal


    *******************************************************
    My config mumudvb is:
    lnb_slof=5150
    lnb_lof_low=5150
    lnb_lof_high=5150
    card=0
    tuner=0
    freq=4066
    pol=H
    modulation=8PSK
    srate=12500
    unicast=1
    #multicast=0
    multicast_ipv4=0
    multicast_ipv6=0
    rewrite_sdt=1
    rewrite_pat=1
    sap=0
    autoconfiguration=full
    #autoconf_unicast_start_port=1001
    #autoconf_scrambled=1
    dvr_buffer_size=40
    coderate=auto


    channel_next
    name=VTV+ Sport
    service_id=11
    pids= 110 102 170


    channel_next
    name=Goltv
    service_id=13
    pids= 210 270 202


    channel_next
    name=VTV+ HD
    service_id=15
    pids= 310 302

  • Are you looking at 40.5W? If so, kingofsat shows settings of dvb-s qpsk (not 8psk) and 4065, R, 12500, 3/4.


    - - - Updated - - -


    Here are updated files. The stream emm processing is now enabled/disabled via config. (Default is disabled.)


    For OSEmu, use the "-e" option.


    For oscam-emu add the following line to the oscam.conf file:

    Code
    [streamrelay]
    stream_emm_enabled            = 1

    Or it can be configured via the webif...

  • Hello, can you pls write step by step, what should i do to get it working, mumudvb worked and already cesbo astra working, so after

    Code
    ./OSEmu -v -a user:pass -p1234 -s 127.0.0.1 -r 4242:17999

    i get this

    Code
    a@streamerpc:~/osemu$ ./OSEmu -v -a user:pass -p1234 -s 127.0.0.1 -r 4242:17999
    OSEmu version 728
    reading key file: ./SoftCam.Key
    starting thread emu stream server
    emu stream server thread started
    Could not bind to socket.
    a@streamerpc:~/osemu$

    if i run oscam, there is no stream relay.

  • Code
    Could not bind to socket.


    Means something else is running and already using the port (17999) so it cannot start. Try:

    Code
    netstat -antp |grep 17999

    to see what is running. Most likely a version of oscam or osemu is running in the background.

  • thx for reply, i run this command, but it show me nothing, there is nothing to run

    Code
    root@streamerpc:/home/a/osemu# netstat -antp |grep 4242
    root@streamerpc:/home/a/osemu#


    sorry, have foud a problem, it was port 1234, because i have running udp streaming by astra, it works, many thx.


    - - - Updated - - -


    i have a question, i want use astra as stream, instead mumudvb, which stream name for channel should i write? i have tried http://127.0.0.1:4242/bysid/900 it is for SID 900 Discovery Ukraine on 4,9E Astra, VLC seems get stream http://192.168.0.100:17999/1:0:1:384:B:16:0:0:0:0: but it show nothing, like not decrypted. Thx. Rgds

    Edited once, last by linoobs ().


  • - - - Updated - - -


    i have a question, i want use astra as stream, instead mumudvb, which stream name for channel should i write? i have tried http://127.0.0.1:4242/bysid/900 it is for SID 900 Discovery Ukraine on 4,9E Astra, VLC seems get stream http://192.168.0.100:17999/1:0:1:384:B:16:0:0:0:0: but it show nothing, like not decrypted. Thx. Rgds


    Then you need the regular OSEmu. The one posted here is modified to use with MuMuDVB. The version of OSEmu I posted in the TVHeadend thread will work.

  • Post some logs and the URL's you are trying to use..


    BTW - to get debug output, for osemu use the "-v" option and for oscam use the debug option "-d68" (4 = cardreader - prints pids found , 64 = emm - prints UA keys found in stream).
    Warning, for some channels with lots of UA keys in the stream, it will spew a lot of "key not found/missing" messages...
    Attached Files

Participate now!

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