Streamlinkproxy Python3 Only!

There are 266 replies in this Thread which was already clicked 27,940 times. The last Post () by pepsik.

  • Especially for my French friend and opponent in everything... The first post is an updated version with the newest version of the streamlink library (nightly) from GiyHub with fixies of "out of sync" :smiling face with sunglasses:


    tested on

    Code
    #EXTINF:-1 group-title="LiveTV", France 2 (france.tv)                                                                                   
    http://localhost:8088/https://www.france.tv/france-2/direct.html                                                                        
    #EXTINF:-1 group-title="LiveTV", en-direct (francetvinfo.fr)                                                                            
    https://www.francetvinfo.fr/en-direct/tv.html

    I'm waiting for criticism :grinning face with smiling eyes: and opinion that the streamlinkproxy "plagiarized" code of 40 lines is to blame for everything

    "Friend" ? are you really sure? Like a volcano, I can explode anytime...


    Sarsan has no sound, I have no video but sound for "http://localhost:8088/https://…e.tv/france-2/direct.html"


    clean oatv 7.3 image from 20230630 with just streamlinkproxy installed


    processes:

    Code
    root      2799  2619  0 10:20 ?        00:00:00 exteplayer3 http://localhost:8088/https://www.france.tv/france-2/direct.html -a 0 -n 0
    root      2801  2583 37 10:20 ?        00:00:15 python /etc/rc3.d/S99streamlinkproxy start
    root      2810  2801  1 10:20 ?        00:00:00 /usr/bin/ffmpeg -nostats -y -i /tmp/streamlinkpipe-2801-1-9104 -i /tmp/streamlinkpipe-2801-2-7537 -c:v copy -c:a copy -map 0:v? -map 0:a? -map 1:a -copyts -f mpegts pipe:1



    "http://localhost:8088:https://www.francetvinfo.fr/en-direct/tv.html" and "http://localhost:8088/https://www.france.tv/franceinfo/direct.html" are ok but sound stop working after few seconds.


    no way to do working france.tv streams. I will use as you advise me the web interface.


    Edited 4 times, last by jeepcook ().

  • no way to do working france.tv streams.

    OMG!


    those. you don’t even have an idea that at the moment on the site https://www.francetvinfo.fr/en-direct/tv.html the output of the video occurs via a link that the module - https://github.com/streamlink/…reamlink/plugins/pluzz.py cannot parse


    It is necessary to simply or qualitatively rewrite this module for all possible variants of links from the site ... or there is no way to make 100% working france.tv streams and use the web interface.In the morning, when I tested the sound out of sync, the video worked. Perhaps in the evening, or after dinner, or in an hour it will work again.


    What does this module have to do with proxy? Yesterday I wrote you where to complain =) and gave a link where to post streamlink library bugs


    p.s.

    Code
    streamlink.exceptions.PluginError: Unable to open URL: https://player.webservices.francetelevisions.fr/v1/videos/006194ea-117d-4bcf-94a9-153d999c59ae?country_code=UA&w=1920&h=1080&player_version=5.51.35&domain=www.france.tv&device_type=mobile&browser=chrome&browser_version=114&os=ios&gmt=%2B0300
    (422 Client Error: Unprocessable Entity for url: https://player.webservices.francetelevisions.fr/v1/videos/006194ea-117d-4bcf-94a9-153d999c59ae?country_code=UA&w=1920&h=1080&player_version=5.51.35&domain=www.france.tv&device_type=mobile&browser=chrome&browser_version=114&os=ios&gmt=%2B0300)
  • UPDATE


    For parishioners and adherents of OpenATV 7.2/7.3 who use streamlinkwrapper to get a link to broadcast directly to the used reftype 4097:0 (gstreamer). The streamlinkwrapper installation package has been added for use on OpenATV 7.2/7.3 (or any other Python3-based images with WHERE_CHANNEL_ZAP support) for use with the streamlink library included in the streamlinkproxy package. You can now pass parameters for the plugins you use by adding them to url.query using the "streamlink://" syntax


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

    Code
    #SERVICE 4097:0:1:0:0:0:0:0:0:0:streamlink%3a//https%3a//www.twitch.tv/mrlabr?twitch-disable-ads=1&twitch-low-latency=1

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

    Code
    #SERVICE 4097:0:1:0:0:0:0:0:0:0:streamlink%3a//https%3a//www.bbc.co.uk/iplayer/episodes/p0frq6zd/champion?seriesId=p0frq798?&bbciplayer-username=YOURUSERNAME&bbciplayer-password=YOURPASSWD&bbciplayer-hd=1
  • If a plugin has the same name but not the same version, it will be difficult to know who is who.

    In OATV feeds, the package is include in the box feed so there are certainly specificities depending on the box.

    The last commited version for OATV 7.3 is enigma2-plugin-extensions-streamlinkwrapper_7.3+git32396+61d1545-r0_sf8008, I just compiled it and we can see it's box specific and your version is generic.

    Why don't you propose your work to OATV team, it will be more comprehensive for everyone, me included.


    Code
    /home/openatvbuilder/openatv7.3/build-enviroment/builds/openatv/release/sf8008/tmp/deploy/ipk/sf8008/enigma2-plugin-extensions-streamlinkwrapper_7.3+git32396+61d1545-r0_sf8008.ipk

    Edited once, last by jeepcook ().

  • If a plugin has the same name but not the same version, it will be difficult to know who is who.

    This is done on purpose... "rework" ("plagiarism" in your terminology :flushed face:) is a mod of the original plugin with extended functionality that allows 100% use of the add-on plugins of the streamlink project ...


    Why don't you propose your work to OATV team, it will be more comprehensive for everyone, me included.

    As you know, I do not use this image ... but .. I somehow found "glitches" in it in terms of importing EPG, and I must pay tribute to the development team of this image, I was heard and the errors in the C code were corrected ... If you followed the topic, then one of the leading developers of this image was also here and even left his posts ... If the OpenATV team considers it necessary to change the code of the regular plugin in accordance with my additions to the functionality - I don't mind ... but the decision is up to them .. and it's not for me to insist or suggest it


    At the moment, you can simply replace the regular streamlinkwrapper plugin in OpenATV with my version, if you like it more because of the ability to pass plugin parameters, which is not in the standard version of the code

  • This is done on purpose... "rework" ("plagiarism" in your terminology :flushed face:

    :partying face:


    If you followed the topic, then one of the leading developers of this image was also here and even left his posts ... If the OpenATV team considers it necessary to change the code of the regular plugin in accordance with my additions to the functionality - I don't mind ... but the decision is up to them .. and it's not for me to insist or suggest it

    Yes I saw and read the full comments from the oatv dev.

    For new devs or functionalities, on gihub, the "pull request" can be use for that. Either you wait or you suggest. As you like.

    Edited once, last by jeepcook ().

  • How to enable debug log in streamlinkproxy please?

    What exactly do you want to debug?

    1) Streamlinkproxy working? - In my opinion, there is basically nothing to see. This is the most standard http.server python3 and 10 lines to it, of which 4 lines are a call to the streamlink library and 6 lines are cutting the received data stream into chunks and issuing them to the "player"

    2) Streamlink errors? - To catch errors that occur in the streamlink library - add a traceback to output an exception

    Code
                    except Exception as err:                                                                                                                       
                            import traceback
                            traceback.print_exc()
                            url = 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8'                              
                            streams = session.streams(url)                                                                                                         
                    finally: 

    And you will see in the console a full transcript of the errors that occur in streamlink...

    with a french IP address.

    This does not affect anything, except for services (streamlink add-on plugins) with georeferencing, i.e. 95% of the time it's nothing

  • In fact I need more than the errors but the full streamlink debug log. For pluzz (france.tv), I have no problem on windows 10 os with this command, and I want to obtain the same log to transmit to dev, he ask me the full debug log.

    Thanks

    Code
    streamlink -l debug --player="c:\Program Files\VideoLAN\VLC\vlc.exe" --ffmpeg-ffmpeg ..\ffmpeg\ffmpeg.exe https://www.france.tv/france-2/direct.html best

    Edited once, last by jeepcook ().

  • In fact I need more than the errors but the full streamlink debug log

    What do you understand by this phrase? Can you clearly define which of the streamlink library modules you want to debug?

    1) Which receives the broadcast link (pluzz.py)

    2) Which is engaged in reading data from the link received in p1) (hls.py)

    3) etc. and so on.


    In the previous post, I gave you TWO lines that you need to add to the code in order to see the error from which you need to build on in the search and analysis of what does not work and why ... You again ask some questions that only you understand


    p.s. RE: Streamlinkproxy Python3 Only! Here I gave you an error that TWO lines of traceback give out =)


    If you carefully read what's in the error. then it is written there - streamlink.exceptions.PluginError: Unable to open URL and given a specific link that can't be read ...this link is obtained by the "pluzz.py" module parsing the web page - https://www.france.tv/france-2/direct.html

  • The rules to open an issue:

    Code
    Debug log
    DEBUG LOG OUTPUT IS REQUIRED for plugin issues!
    INCLUDE THE ENTIRE COMMAND LINE and make sure to remove usernames and passwords
    
    Use the --loglevel=debug parameter and avoid using parameters which suppress log output.
    Debug log includes important details about your platform and the version you're using. Don't remove it.
    
    If the log output is too long and repetitive parts can't be truncated, or if you have multiple log outputs to share, please post a link to a GitHub gist with the log output instead.
    
    DO NOT post screenshots of the log output and instead copy the text from your terminal application.

    An example of log:

    The one I obtain on a windows machine:

    So I will find a solution to obtain it.

  • In fact I need more than the errors but the full streamlink debug log. For pluzz (france.tv), I have no problem on windows 10 os with this command, and I want to obtain the same log to transmit to dev, he ask me the full debug log.

    Thanks
    Code streamlink -l debug --player="c:\Program Files\VideoLAN\VLC\vlc.exe" --ffmpeg-ffmpeg ..\ffmpeg\ffmpeg.exe https://www.france.tv/france-2/direct.html best

    In fact, the comparison conditions are NOT correct ...

    1) It is not known which version of the streamlink library you use on windows 10

    2) You are "requesting" the 'best' result of all the possible choices that streamlink returns ... Enigma2 requests 'best' from 'hls', 'hls-multi' or 'http' ... In Enigma2, you will NOT be able to watch DASH in any way ... but in your version of the experiment on windows10, it is quite possible in the streamlink answer

    3) etc. and so on.

  • Debug log DEBUG LOG OUTPUT IS REQUIRED for plugin issues! INCLUDE THE ENTIRE COMMAND LINE and make sure to remove usernames and passwords

    So set the DEBUG level in the streamlink library on your Enigma2 and get the same output in the console as on windows ... You give excerpts from the documentation! So use the streamlink documentation to achieve the result you need


    Why are you wasting my time? So that I read the documentation for you and give an example of how you need it? I'm wildly sorry ... I have something to do besides you and your education

  • rpl had point out the lack of log configuration. So we are in this case. I will try to obtain the log with streamlinksrv. All france.tv channels must be ok for french IP adresses so to debug the problems with France 2 and France 3 the dev need the full debug log.

    Edited once, last by jeepcook ().

  • 2) Streamlink errors? - To catch errors that occur in the streamlink library - add a traceback to output an exception

    Code
                    except Exception as err:                                                                                                                       
                            import traceback
                            traceback.print_exc()
                            url = 'https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_16x9/bipbop_16x9_variant.m3u8'                              
                            streams = session.streams(url)                                                                                                         
                    finally: 

    And you will see in the console a full transcript of the errors that occur in streamlink...

    Tried this code but I have no error displayed in the console.

  • UPDATE


    For parishioners and adherents of OpenATV 7.2/7.3 who use streamlinkwrapper to get a link to broadcast directly to the used reftype 4097:0 (gstreamer). The streamlinkwrapper installation package has been added for use on OpenATV 7.2/7.3 (or any other Python3-based images with WHERE_CHANNEL_ZAP support) for use with the streamlink library included in the streamlinkproxy package. You can now pass parameters for the plugins you use by adding them to url.query using the "streamlink://" syntax

    No chance for me today, I'm going back to bed! Test your mod because we can add parameters but for pluzz plugin I have this error :

    #SERVICE 5002:0:1:c88a:c580:808d:1010101:0:0:0:streamlink%3a//https%3a//www.france.tv/france-5/direct.html

    5002_0_1_C88A_C580_808D_1010101_0_0_0_20230706112505.jpg


    Edit: in fact I have the same error with all urls beginning by streamlink://

    eg streamlink://https://www.youtube.com/watch?v=gxG3pdKvlIs


    something is missing

    Edited once, last by jeepcook ().

  • #SERVICE 5002:0:1:c88a:c580:808d:1010101:0:0:0:streamlink%3a//https%3a//www.france.tv/france-5/direct.html

    Code
    #SERVICE 4097:0:1:c88a:c580:808d:1010101:0:0:0:streamlink%3a//https%3a//www.france.tv/france-5/direct.html

    Feel the difference!!!! WHERE_CHANNEL_ZAP - works ONLY and ONLY with 4097:0 reftype

    Снимок экрана 2023-07-06 в 15.11.41.png

Participate now!

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