They improved it a lot in the past half year. You can use different encoders via software or hardware and the demands are fairly low.
While you are looking into, this more recent version of Luna launcher might help you:
A few hours ago I updated the compile instructions for Vero4k(+) on moonlight-embedded wiki page, and compiled on my vero4k+. Grabbed TheChoconut’s Luna-script addon, have also installed sunshine on my laptop, but ran out of time.
Will install some games and emulators and just try to see if i can get it working properly. Hopefully get an idea of setting up a good “defaut settings”. Then I’ll take a chat with @sam_nazarko about what would be the better solution: “a osmc-deb” or “automated compilation and install”-script.
Thanks for taking the time and the update.
Currently I am running my Vero 4k+ on 22.3 version due to stability.
But I am willing do some testing, whenever an USB bootable image is ready.
Was anyone successfull in lunching moonlight with our without luna on Vero 4K+?
Been dealing with some internal testing of v.20, might have a look at this again coming weekend. I actually got a remote computers desktop, when I configured the “game launching” wrong on the sunshine server. And since I’ve changed the machine that was going to host the sunshine server. But I haven’t got any games install on it yet.
But this I did while mediacenter was shutdown and just triggered moonlight-embedded via ssh
Not sure what versions, i.e. v.22 or v.20 in recent post your referring to. Is it OSMC versions?
And did moonlight-embedded via ssh worked on Vero 4k for you? Because for me it doesn’t (was trying master branch from moonlight-embedded with recent patches to support Vero 4k).
If you read the wiki I’ve edited how to compile on Vero4k(+), there are a few depends that need to be installed before.
I have no issues with compiling it, but I do have issues making it work. In particular this one: Vero 4K support · Issue #573 · moonlight-stream/moonlight-embedded · GitHub
So if you overcame this and it works for you - I would be glad to hear how and probably I’m doing something wrong.
Well it will compile fine, but without AML-support. To get vero4k support you have to install the deb packaged I’ve mentioned in the Compile-wiki (exlusive for vero4*).
I did those changes march 5 (to the wiki) and the last post in #573 issue is from march 10, but the bit is userland is vero3-unique and since we want hardware decoding of video you need libamcodec-dev.
Try these steps:
Thank you updating wiki. Before that update I was having debate in the thread with Sam regarding dependencies and he pointed out right ones, so I had them installed and my binary is assembled using them. Unfortunately it didn’t help.
Probably worth a shot again (will try later a bit), but I was wondering if somebody was successful launching moonlight on vero 4k. I haven’t seen anyone, except moonlight developer and he stopped responding in the thread.
Were you?
AS I said, I got a multi screen pc’s background showing when I tried to start a steam app without reading instructions how to start steam apps, or if it was a MS-store game. Anyway, I got there but then I fiddle to much with the Sunshine server and everythng went to heck in a handbasket.
I will make a new try this weekend or next, w8ing for a new m2 drive for the laptop with 1050 card
Been playing some with this again, and I had the “Platform ‘aml’ not found”, but solved that, but now running into issues with the stream starting and closing. To tired to play more right now. But once I gt it running “smoothly in shell”, getting it to close Kodi nicely and setup all parameters shouldn’t be an issue.
I did some testing and shared results here: Vero 4K support · Issue #573 · moonlight-stream/moonlight-embedded · GitHub
Looks good, but HDR doesn’t work for me and there are issues with installation (which leads to “Platform not found” issue you mentioned). If you have solution other than mine, please share in the issue above.
No not yet, I’m contemplating looking at the installer. Perhaps fork just to see if i can get it working by changing the installer. I did some soft links to for all moonlight files from /usr/local/bin & lib to /usr/bin & lib.
My issue might be related to HDR or some sunshine server setting, will try to look at it the next few hours.
Thought I’d give you the console log for me right now:
osmc@4kplus:~$ moonlight stream -platform aml -app Desktop
Searching for server...
Connecting to 192.168.1.76...
No mapping available for 2.4G 2.4G Wireless Device (03000000450c00000151000001010000) on /dev/input/event6
RTSP port: 48010
Initializing platform...done
Resolving host name...done
Initializing audio stream...done
Starting RTSP handshake...Reference frame invalidation is not supported by this host
Audio port: 48000
Video port: 47998
Control port: 47999
done
Initializing control stream...done
Initializing video stream...done
Initializing input stream...done
Starting control stream...done
codec_init amstream version : 2.0
set_decoder_config
Starting video stream...VFM map: [00] default { decoder(1) ppmgr(1) deinterlace(1) amlvideo(1) amvideo}
Using display thread for amlvideo pipeline
done
Starting audio stream...done
Starting input stream...done
EVIOCGRAB failed with error 16
Control stream received unexpected disconnect event
Connection terminated with error: -1
Stopping input stream...done
Stopping audio stream...No audio traffic was ever received from the host!
done
Stopping video stream...No video traffic was ever received from the host!
Display thread terminated
Failed to send ENet control packet
Loss Stats: Transaction failed: 11
done
Stopping control stream...ENet peer is already disconnected
done
Cleaning up input stream...done
Cleaning up video stream...done
Cleaning up control stream...done
Cleaning up audio stream...done
Cleaning up platform...done
osmc@4kplus:~$
Now I’m still a newbie in this realm of streaming lie video signals, so I’m guessing PEBKAC (ProblemExistBetweenKeyboardAndChair), like not haveing a controller attached to the Vero.
Edit: I’ve now managed to get the server running propperly. Problem was that when I had it running, on both computers, the had intel gpu buildt in, which windows priod before the nvidia cards. But now that I got sunshine working properly my family is using the TV. Will test tomorrow.
Well I’m now convinced that most of my problems lay at server side since i can start apps but only getting desktop in tv while app is playing on laptop screen.
photo_of_tv
I have the same behavior and it seems that this is somehow related to Luna. From desktop version of moonlight everything works as expected. Probably app is called incorrecty via CLI.
yeah, there is a little issue there, Depending on who’s fork of script.Luna you are using it’s an earrly adaptation on OSMC, by using same structure as RetrOSMC and my X-windows plugin, where trigger the software in a virtual enviroment. I was going to have a look at it after i got a working enviroment.
I’m using this one (GitHub - TheChoconut/Luna: Luna Script for Kodi) and it works for me, after mending paths to use binary from build directory. Once issue with installation binary will be found and fixed - it should work without any adjustments.
Can somebody share instructions, how to compile/setup it up for testing?
Here is the procedure I’ve used:
sudo apt-get update
sudo apt-get install git libopus0 libexpat1 libasound2 libudev1 libavahi-client3 libcurl4 libevdev2 libssl-dev libopus-dev libasound2-dev libudev-dev libavahi-client-dev libcurl4-openssl-dev libevdev-dev libexpat1-dev libpulse-dev uuid-dev cmake make gcc g++
sudo apt-get install vero3-userland-dev-osmc libamcodec-dev-osmc
git clone https://github.com/moonlight-stream/moonlight-embedded.git
cd moonlight-embedded
git submodule update --init --recursive
mkdir build
cd build/
cmake ../
make -j4
----------[alternative solution in next box is better]----------------
sudo make install
sudo ldconfig
sudo reboot
---------------
This “works”, the “make install” isn’t written for osmc and the Makefile uses cmake and that is a bit out of my league. So perhaps we could get some more experienced folks look at it and perhaps write a “osmc-install” option? Because of that I make a folder in /home/osmc/moonlight and copy the binary, aml.so and moonlight config into that folder, I got it running from shell, when mediacenter was halted.
------[instead of make install ...]------
mkdir /home/osmc/moonlight
cp moonlight /home/osmc/moonlight/
cp libmoonlight-aml.so /home/osmc/moonlight/
cp ../moonlight.conf /home/osmc/moonlight/
------------------------------------------------
I would suggest you edit the conf file to match your environment/preferensers.
And as icing on the cake, I created a simple start script:
cd /home/osmc/moonlight
nano startML.sh
I suggest pasteing something like this:
#!/bin/bash
# force 720p?
# sudo sh -c 'echo 720p50hz > /sys/class/display/mode' ; fbset -a -g 1280 720 1280 1440 32
./moonlight stream -config ./moonlight.conf -app $1
chmod +755 startML.sh
Since I joined “gamestreaming” late, after python3 was default, and the OSMC-tailored script.luna by wacker91 is python2 based, it won’t run.
So all I have done when running this is, stop mediacenter service and start my script from shell. ( I did all this again, as late as yesterday, in order to check that the instructions is still sane, but on my HD-Ready screen. That’s why that 720p line is there, but remarked. There is room there for what you think is needed.)
Vero V:
Now we’re trying to iron out some issues with Vero5 so we hopefully can get it working, Then there will be the issue of getting a script.luna to work(not hard just time consuming).
Edit on 1 Sept. 2023: Added start script for Vero4k(+) and showed alternative to “broken” make install