Posts by rpl

    Unfortunately it doesn’t read streamlink configuration files

    It's not hard to add. In principle, I thought to make the main styreamlink settings (session options) in the form of a GUI accessible from the plugins menu ... But the parameters for specific add-on plugins can be passed element-wise to url.fragment and this does not require streamlink configuration files


    Example for https://streamlink.github.io/plugins.html#bbciplayer add-on

    Code
    http://localhost:port/https://www.bbc.co.uk/iplayer/episodes/p0frq6zd/champion?seriesId=p0frq798#bbciplayer-username=xxxx&bbciplayer-password=xxxxx&bbciplayer-hd=1

    parameters passed to url.fragment are simply parsed and can be passed in proxy "HandleRequest" to the streamlink add-on plugin used to get a link to the video ... It's not difficult at all...

    It is not about GUI and anything related to that. You missing the crucial info. Streamlink by design supports cli commands and configuration files and that is described in documentation. I will direct you to documentation as well https://streamlink.github.io/cli/config.html, but to the page where is described what I’m talking about. You don't need to pass parameters separately to each stream individual, that’s why streamlink supports configuration file for each plugin individual , or globally for all.



    An example
    In case of example e2 when you have root user boxes path looks like this
    /home/root/.config/streamlink/config.bbciplayer
    This path is home directory, and that why is included in settings backup in basically every image.

    That just works with streamlinksrv since many years with accordance to documentation. I actually created my configuration files five years ago and they still works, because this format didn’t changed. Adding login, password and for example proxy to each link is unnecessary, when you can do that collectivity in a file.

    Passing parameters also works with streamlinsrv and that can be used when specific streams need individual parameters becouse cli command can be handled by http HTTPServer. So those two methods were implemented. Don't see iprovment here as streamlinkproxy only one of those cases, but both are equqly important.


    Practical Example.


    You have 5 boxes, and want to use on them the same channel list prepared on PC editor. But due to device/streams limitations on service provider side you have to use separate account in each box. Then with passing parameters with url, you have to prepare 5 separate lists on PC editor, or create a script that will replace credentials each time the channel list is updated. With configuration files, no extra steps are necessary, you just sending list to those 5 boxes in the same time, and everything works because box have credentials stored seperatly.

    Quote

    I checked on OpenPli dev it works without problems .. it’s not at all clear why it wouldn’t work ...

    I also don’t know, only if I had more detailed log, but

    Quote

    The server code is so simple that I can't even imagine what to log there =)

    Maybe you see now the problem.

    Quote

    The difference is in more concise code =) and more or less correct implementation of chunked HTTP streaming -

    Less correct, more correct, the jury is always on. Debate never ends, ultimately whats matter is if it works or if it doesn’t work. Anyway could you post any practical example when improvements can be observed ?

    bc is installed on my box

    Happy for you =). But your box is not decisive and I have to rely on the worst case, namely that it does not exist

    bc is a nice tool, however not on every image. I experience that recently. So to rely on bc is not a good solution, especially because there is no package in feed, so adding dependencies to install will not work.



    Streamlinkproxy in standalone usage looks like an alternative to streamlinksrv so I will be comparing those two. Default port is the same 8088.


    Zapping works the same, no noticeable speed difference. Unfortunately it doesn’t read streamlink configuration files and that very much limits functionality and rules out its use as an replacement at the moment. Nice error video. Some minor things like loglevel cannot be changed and playback with 4097 don’t work in cases when streamlinksrv works (youtube live is an example). I tried different boxes and result the same. 5002 is best to use here. Anyway didn’t found any advantages, maybe some specific host that I didn’t tried. I don't use E2m3u2bouquet so I can say nothing about that.

    XML file is not a playlist but it is mainly for storing and exchanging data. So Import/export format. There are many conversion tools online. Mostly for m3u to xml in other direction less. I don't know the player that use its direcly. But something like kodi or some add-on to that or apps like Samsung Smart TV.

    Anyway since it is structured so it can be done automatic by script. So slight modification to previous bash script. Although there is different sorting in XML, file it is alphabetical, but also sorted by satellite position. TV and Radio are one list.

    Creating a playlist most likely can be done better using something more advance than bash, and not relaying on openwebif. Step forward for sure.

    Looking at the problem and ready to use solutions I also found this interesting plugin called <<AjPanel>>. If you don't mind using 3rd party plugins outside the feed.

    There is an option "Export Services to "channels.xml" and its way faster than ajax. But still action from remote is required.


    About that another thing. The code of described function is defined in

    Code
    ChannelSelection.py
    ChannelContextMenu
    addServiceToBouquetOrAlternative

    That would be writing a python script is you need that automatic, but that is more advanced. Anyway something to research. Perhaps plugin called autobuquets maker will be enough for you here.

    Ok so that worked but took somewhere between 25 to 30 minutes to produce both tv and radio files.


    Openwebif is not as snappy as it should be so this might be causing the extended processing times. I presume it shouldn't take nearly that long ?

    That is very long. It takes me usually 5 minutes directly on box. On PC it gets faster.

    Quote
     

    It seems the list is prepared in alphabetical order by 'tvg-name' instead of by satellite as retrieved by the 'AJAX' command why is that ?

    AJAX gives it alphabetical. Didn't sorted it or filtered additionally.

    Quote

    Also many channels have multiple entries instead of the single entry one would find when using the webif. The entries are not identical of course maybe they are for alternate audio streams and such ?

    Yes. That is one of the reasons. Separate channels with audio still occurs, that is a practice for cable networks, when every PID counts for decoding to CAM. Second reason is that some operators use doubling as a way to flooded their decoders with "more" channels. So they repeat a channel on several positions in "their" channel list that way. Third reason is that sometimes there are two providers that use the same channels but have separate entries, for example for EPG, coding and etc (Cabo and MEO is again example here). And so on. That can be helped when retrieving all channels from the box.


    The record I spotted is Polsat News on 13E, seven times. Promoting own channel on a market with strong competition, or just making sure that customers not miss the news 😉 Either way it looks like this.

    /usr/bin/bc usualy


    bc is another binary. Hex to dec conversion. You can try without that. # on 44,45,49. You will be missing separate SID parameter in playlist. That’s only important on channels with common PMT Pid. Old practice, Polsat used to do that but not anymore. Also TVCabo and MEO but I didn't check if they still do that.

    I did found some time to prepare a script to do all the necessary actions to create ready playlist file from all services.

    The result should be two playlist file, one for radio and one for tv in /tmp. Change ip in and file location in script appropriate to your setup.

    One script with wget second with curl command. It may take some time to execute the script depending on channel numbers and hardware speed.

    Maybe it will be quicker to start from scratch an OpenHardware project then to wait for manufactures. Anyway there are some new chips on the market but amount of work to interest in manufacturing ratio is low. New Dreambox we can only have hope for that, but basically zero info on every level so realistically don't wait.

    Lack of access to repositories definitely slow down many things. Updating some system files is not recommended, many risk factors. Some packages are harder to move than the other. Risk when adding new package is low, unless it overwrites existing files. Opkg usually checks and prevent that.

    Curl package is just a single binary file in openatv stored in /usr/bin/curl

    You may try copy that in the same place and then change privileges on that file (chmod 755 /usr/bin/curl) and it could work. That will be without risk to your image in this case.If you copy only binary without overwriting files it will only by used by you and not something crucial to stability of your image.

    Despite architecture for binary, curl depends on few libraries from image and that may be cause errors when you doing this operation. When the libraries are to old or missing, a rabbit hole is a good expression here. Ldd is a command to check library dependencies, but again not installed by default.


    Anyway to get around missing curl problem, this command may be also with wget.

    Code
    wget -qO- http://127.0.0.1/ajax/channels |grep "web/stream.m3u?" | sed 's/.*ref=//' |cut -f1 -d"&" >/tmp/reference.txt

    There are different versions of wget in different images, that mean set of commands are also different and so on and on. Those days I use generally curl for sanity, but with wget may still work for you and it will be easier if it did.

    Yes, exactly it. This is minimal what is needed, adding headers is the easy part.


    For example

    Code
    sed 's/^/http:\/\/127.0.0.1:8001\//' /tmp/reference.txt > /tmp/reference.m3u

    Try this command on your box

    Code
    curl -s http://127.0.0.1/ajax/channels |grep "web/stream.m3u?" | sed 's/.*ref=//' |cut -f1 -d"&" >/tmp/reference.txt

    In file /tmp/reference.txt you should have reference of all scaned services. If it works then adjust the formula. Tested with openwebif.

    Optionally this one, when you have trans coding option

    Code
    curl -s http://127.0.0.1/ajax/channels |grep "jumper8001" | sed 's/.*ref=//'|cut -b 26- |cut -f1 -d"'" >/tmp/reference.txt


    If you don't have curl (that is mostly not installed default)

    try for example this command

    Code
    opkg install curl

    Unfortunately there are no new products in 2023. I would focus on hardware and soc/spu and ram when you choosing a box. All latest models use Hisilicon Hi3798MV200 or lower tier Hi3716MV430C. Both of them are not top end. Older models, like/mostly VU+ used Broadacom BCM7552 which was introduced in 2014, and later incorporated in products on the market. But Broadacom doesn’t have new models. On producer Dream changed chip supplier to Amlogic and S922X is used in Dreambox Two , that's definitely newer and high end. But Amilogic have more powerful models as well, but that is used my android box mostly. Long overdue Dreambox Seven will probably not appear this year (no surprise).


    Promising is chip introduced last year from Realtek, RTD1319D but it may take years before it will be widely adopted by the market and STB manufactures.

    I know I'm answering to old post.


    There is no solution to sky de or ther providers using 64bit cw.


    Kernel 3.9.2 also doesn’t help. It’s a descrambler driver issue. There will be no new drivers so it's end of the line for those boxes.

    What shows where. In card iniciation log or chanel PMT.
    About providers
    0500:032920 it's orange
    0500:042820 it's bis


    And it's a property of the card, only operator have influence on what providers are on your card.
    Hovever reacently there was a lot of changes in orange there was a nano E0 02 activation on 032920 so it's down

    No.
    SID's should be unique only on single transponder. On different transponders they can be eaqual, dosen't matter that they are on the same sat position. That's not so rare.


    For the same SID you can use more complex declaration than only SID, add also ECMPID.


    From documentation of oscam
    P: [CAID]:[provider ID]:[service ID]:[ECM PID]:[CHID] [force]:[PIDx] priority


    ECM PID you could eaven find in oscam log, so a simpel declaration.


    Assuming of course you don't have to very old oscam version it will solve rour problem.


    Quote

    And how the same SID describe channels in oscam.srvid then?


    You can't do it with oscam.srvid even oscam.srvid2 won't help you.