Posts by unimatrix088

    I've setup WireGuard with LibreELEC and it works good, even with a Rsp1 can handle traffic for a full HD movie without issues. The only problem that I found with the setup is that "Host = IP of the WireGuard server" - must be an IP not a hostname, it will not be resolved and no error is shown, just the traffic will not work... but my server does not have a 100% static IP so I used DDNS... anyway a quick solution is to have a script at startup that resolves the IP, writes it to the config file, resolves the connection name and finally starts the VPN connection.

    This script will replace "your_hostname_to_server" string from wireguard.config.original into wireguard.config (so .original needs to be a complete config file except that instead of the server ip will have "your_hostname_to_server" which will be replaced

    To disconnect another script is used

    Bash
    #!/bin/bash
    
    #list connections and select the one with Wireguard in description
    VPN_CONNECTION_NAME=$(connmanctl services | grep 'WireGuard' | awk -F' ' '{print $NF}') 
    echo "VPN connection name: $VPN_CONNECTION_NAME"
    
    #connect to VPN
    connmanctl disconnect $VPN_CONNECTION_NAME

    Finally in wireguard.service file instead of connect/disconnect commands, the scripts are called

    Code
    ExecStart=/usr/bin/connmanctl connect vpn_service_name_goes_here
    ExecStop=/usr/bin/connmanctl disconnect vpn_service_name_goes_here

    changed to

    Code
    ExecStart=/storage/.config/wireguard/connectVPN.sh
    ExecStop=/storage/.config/wireguard/disconnectVPN.sh

    In this case the scripts are in '/storage/.config/wireguard/' for sure there is a better place, but just to make it work, it's ok :S

    Finally this is a quick & dirty solution to this Connman issue... by the way, anyone has any info on how to report a bug to Connman? I just found "You can report bugs at - 01.org JIRA" - but it seems that is a closed jira project and an account is needed to report the bug and an account can't be created by anyone new..

    Any suggestions or a better solution would be greatly appreciated :)

    I understand, I'll try to fix it, I want to use moonlight on my Amlogic device in the next room. I'll work with the moonlight-embedded team to see what it's wrong with the Amlogic codec. My question regarding Libreelec is why the library is not complete? In the repository there are deliberate actions to remove the amadec library and remove any link to it (I saw a sed command to remove a "-lamadec"). Why it was removed? It's not working on S905 or S912 systems? I also looked at OSMC repository and there the library is complete, everything is added. I can prepare a pull request to add amadec.so in the build, but I don't to break things :)) That's why I'm asking if anybody knows why amadec is deliberately removed from the build.

    I'm trying to make moonlight work on an Amlogic S905 and found that the amcodec.so can't be loaded because it's missing amadec.so.

    Running moonlight embedded on an Amlogic system with LibreElec (S905 in this case) the libmoonlight-aml.so is not loaded because libamcodec si not complete in LibreElec. I've added a print with dlerror and it returns: "usr/lib/libamcodec.so: undefined symbol: audio_decode_basic_init" - "audio_decode_basic_init" is in libamadec.so Loading fails because dlopen is used with parameter RTLD_NOW

    Is there a particular reason why amadec.so is not added alongside amcodec.so? It's not working for S905?

    I've managed to build them and added to the image, load the moonlight and run it, but the image will flicker a lot, I think because the codec is reset a lot. I've attached moonlight logs.

    I would appreciate a lot if anybody can help with these issues :)

    Using LibreELEC-S912.arm-8.2-8.2.2.3 and the default moonlight addon from the default LibreELEC repository (comes with Moonlight embedded 2.4.3) I get:

    Stream 1920 x 1080, 60 fps, 10000 kbps

    Initializing platform...done

    Resolving host name...done

    Starting RTSP handshake...done

    Initializing control stream...done

    Initializing video stream...done

    Initializing audio stream...done

    Initializing input stream...done

    Starting control stream...done

    Starting video stOPEN es DEVICE

    codec_init amstream version : 2.0

    [codec_init 732]type =1

    [codec_init 740]

    EVIOCGRAB failed with error 16

    ream...done

    Starting audio stream...done

    Starting input stream...done

    Returning RTP packet after queue overgrowth

    Received OOS audio data (expected 51393, but got 51394)

    Returning RTP packet after queue overgrowth

    Received OOS audio data (expected 51414, but got 51422)

    .... for complete log see attached file.

    I've compiled 2.4.6 but it still doesn't work:

    tream 1920 x 1080, 60 fps, 10000 kbps

    Initializing platform...done

    Resolving host name...done

    Starting RTSP handshake...done

    Initializing control stream...done

    Initializing video stream...done

    Initializing audio stream...done

    Initializing input stream...done

    Starting control stream...done

    Starting video stOPEN es DEVICE

    codec_init amstream version : 2.0

    [codec_init 732]type =1

    [codec_init 740]

    EVIOCGRAB failed with error 16

    [codec_close 851]

    [codec_close_cntl]video codec close return=0!

    ream...done

    Starting audio stream...done

    Starting input stream...done

    Control stream received disconnect event

    Loss Stats: Transaction failed: 11

    Stopping input stream...done

    Stopping audio stream...done

    Stopping video stream...done

    Stopping control stream...done

    .... for complete log see attached file.

    My questions is: did anybody made Moonlight work on S912? Or it's a problem specific to S912 because of the gpu drivers? (I read that the Android drivers are used).

    The PC setup works, I've tested it with the Android Moonlight, but I have over 100ms lag on S912 (a Meecool M8S Pro)... it's not fun :D