[Unofficial] moonlight-embedded

@smg04
HelIo, I asking for help.
I installed the latest version(131 for v19 Matrix).
But my initial setup on client side(Kodi)won’t start.
When i try to pair y device - it doesn’t work either(Kodi log):

2022-01-06 22:59:01.663 T:8837    ERROR <CSettingGroup>: unknown setting type "hidden" of "addon_version"
2022-01-06 22:59:01.664 T:8837    ERROR <CSettingGroup>: unable to create new setting "addon_version"
2022-01-06 22:59:01.664 T:8837    ERROR <CSettingGroup>: unknown setting type "hidden" of "last_run"
2022-01-06 22:59:01.664 T:8837    ERROR <CSettingGroup>: unable to create new setting "last_run"
2022-01-06 22:59:01.664 T:8837    ERROR <CSettingGroup>: unknown setting type "hidden" of "launchscript_conf"
2022-01-06 22:59:01.664 T:8837    ERROR <CSettingGroup>: unable to create new setting "launchscript_conf"
2022-01-06 22:59:08.940 T:4729    ERROR <CSettingGroup>: unknown setting type "hidden" of "addon_version"
2022-01-06 22:59:08.940 T:4729    ERROR <CSettingGroup>: unable to create new setting "addon_version"
2022-01-06 22:59:08.940 T:4729    ERROR <CSettingGroup>: unknown setting type "hidden" of "last_run"
2022-01-06 22:59:08.940 T:4729    ERROR <CSettingGroup>: unable to create new setting "last_run"
2022-01-06 22:59:08.940 T:4729    ERROR <CSettingGroup>: unknown setting type "hidden" of "launchscript_conf"
2022-01-06 22:59:08.940 T:4729    ERROR <CSettingGroup>: unable to create new setting "launchscript_conf"

Lunalog is not generated

But through SSH (by moonlight pair command) the pin code is generated and visible on the host side (NVIDIA GAMESTREAM) and the connection is established:

CoreELEC:~/.kodi/addons/script.luna/bin # moonlight pair
Connect to 192.168.2.145...
Generating certificate...done
Please enter the following PIN on the target PC: 7031
Succesfully paired

the games are visible:

CoreELEC:~/.kodi/addons/script.luna/bin # moonlight list
Connect to 192.168.2.145...
1. RESIDENT EVIL 2
2. It Takes Two

BUT in Kodi i cant run any game, they are not presented in LUNA

Please Help)

I was getting this yesterday when I tried the addon out and just rebooting after install fixed it. After it started back up it paired just fine.

Thanks for your reply. It helped. After starting the addon again it displayed my games.
After lauchning a game from kodi the game launch on the pc, Kodi display the intro animation but then nothing
If you exit and re-enter the game on Kodi, sound and control appear, but the screen remains black
@smg04
Attaching moonlight and Kodi logs
logfile (4.7 KB)
kodi.log (8.4 KB)

What Matrix version are you running? Latest Luna doesn’t work with nightly CoreELEC. Latest update in libamcodec broke moonlight-embedded, so the version i’ll post right now works only on nightly builds.

New nightly build:
script.luna-1.1.1-matrix.143.zip (2.6 MB)

On top of that, you either have unstable connection or your Luna settings are very wrong. Reset your Luna settings to default values, then try and set it up again.

Reinstall new buid and it worked - no black screen). Thank You!

@smg04 moonlight-embedded/aml.c at master · TheChoconut/moonlight-embedded · GitHub
multi_vdec is obsolete since the last libamcodec bump.

These are the related changes needed to be able to compile the addon again:

The dev branch has been updated, the last build (1.1.1-matrix.143) was built on it. I usually commit on main once it has been tested and working. I would like to make a package bump but is there a way to only allow it to be installed on versions of CoreELEC 19.4-Matrix_rc1 and higher?

We currently try to get 19.4 addons done, so just make a PR to update the addon please.

PR available here.

Just tested, Hdr works ok in moonlight for android, but it’s not working on moonlight-embedded (same game)

@diogosena any logs?
No official support for HDR though, I don’t have anything to test it with…

just tell me exactly what logs you need, and I can provide

/storage/.kodi/addons/script.luna/bin/logfile
kodi.log
dmesg output

logfile (1.1 KB)
dmesg_output.txt (68.9 KB)
kodi.log (231.1 KB)

Done! ( I can provide you ssh access if needed )

  1. entered session in a game that should be already HDR,
  2. changed to SDR via game settings
  3. changed to HDR via game settings
  4. changed to SDR via game settings
  5. changed to HDR via game settings
  6. exited

I forgot to ask, what’s the exact problem? Is it black screen or wrong colors or something else?

it just dont activate HDR on TV, colors are not that wrong, so i say theres a conversion hapenning somewhere… (besides HDR, its working ok, maybe dropping a few frames, but very usable)

I don’t think there’s anything to do as frames are sent to the decoder as-is. Maybe you have some HDR->SDR function enabled in CoreELEC settings or that’s some default but since I don’t have anything to test it with, wontfix.

For sure I don’t have any conversion enabled, as I watch lots of hdr content in this same box.

Morning @smg04,

Have just updated CoreELEC to the latest RC2 build last night and also applied your 143 release.

However, I’m still getting a black screen whenever I try to launch anything.

I did try rolling back to release 131 incase I misinterpreted that only the nightly releases were affected and not RC2, but that version is just the same.

Have attached log file if this helps.

Cheers

logfile-210122.txt (9.9 KB)

For versions RC1 and higher you need to use 1.1.1-matrix.143 for it to work.

I need both logfile and dmesg output to see what happened. The video system successfully initialized so its unusual that it doesn’t work.