I just want to give you a small preview for Gamestreaming on the Odroid-Go Adv., it uses the VPU to decode the video stream and the 2D raster graphic acceleration unit to rotate the screen to landscape mode, it runs very smooth and sound and input has very little lag however I will try to speed this up again with DRM Prime video decoding.
RG
These users thanked the author AreaScout for the post (total 7):
mad_ady (Wed Jan 15, 2020 10:12 pm) • rooted (Thu Jan 16, 2020 12:14 am) • joy (Thu Jan 16, 2020 2:35 pm) • ripper121 (Mon Jan 20, 2020 6:52 pm) • Paspartout (Tue Feb 25, 2020 7:54 am) • TheRuck (Wed Aug 26, 2020 12:09 am) • Josh86 (Tue Sep 15, 2020 2:21 am)
Very nice, I didn't think moonlight would work so well on such a low resolution display.
I think mad_ady is looking for the same thing as myself, I would love to stream from the Go Advance to my Android TV or perhaps the N2. I know these devices can play games on their own but since the Go Advance already has the emulators, games, and controls it would be cool to use it in this way.
It works very well, I was playing half an hour Asphalt9 on it --> extra cool
@all
Beside that, my WIFI has lags, does anyone know what I can do about it ? My WIFI USB stick is half a meter from the WIFI router so the distance isn't the problem
64 bytes from 192.168.1.1: icmp_seq=482 ttl=64 time=2.69 ms
64 bytes from 192.168.1.1: icmp_seq=483 ttl=64 time=2.68 ms
64 bytes from 192.168.1.1: icmp_seq=484 ttl=64 time=2.14 ms
64 bytes from 192.168.1.1: icmp_seq=485 ttl=64 time=2.54 ms
64 bytes from 192.168.1.1: icmp_seq=486 ttl=64 time=3784 ms
64 bytes from 192.168.1.1: icmp_seq=487 ttl=64 time=2785 ms
64 bytes from 192.168.1.1: icmp_seq=488 ttl=64 time=1788 ms
64 bytes from 192.168.1.1: icmp_seq=489 ttl=64 time=789 ms
64 bytes from 192.168.1.1: icmp_seq=490 ttl=64 time=8.14 ms
64 bytes from 192.168.1.1: icmp_seq=491 ttl=64 time=2.57 ms
RG
These users thanked the author AreaScout for the post:
AreaScout wrote:
Beside that, my WIFI has lags, does anyone know what I can do about it ? My WIFI USB stick is half a meter from the WIFI router so the distance isn't the problem
Moonlight for GoAdv. consists of two working video backend (platforms), both of them are HW accelerated, they are sdl and rk
For pairing with your game pc you have to issue ./moonlight pair xxx.xxx.xxx.xxx after that you can ask/list for shared games with ./moonlight list xxx.xxx.xxx.xxx the streaming itself is startet with
zero copy (drm prime) video backend entirely without GPU (VPU->rotate->VOP):
Streaming is very fast and with very very little lag with both of the backends, however the rockchip drm prime backend is the fastest but it could be that the difference is not noticeable and is within microseconds.
I have only testet 720p30 but 720p60 or 1080p30, 1080p60 should be possible too if your WLAN is fast enough, high-end wireless router (802.11n dual-band recommended) or wired network is recommended, which I do not have
Here is the download of the final version of Moonlight Gamestreaming client for the GoAdv. ready for game image builders, the debian package does NOT resolve package dependencies you have to install it for your own, here they are in detail:
I use /etc/network/interfaces directly (I did not configure wpa_supplicant in ANY way).. but if you check with ifup -v wlan0 you see that it uses wpa_supplicant in the background as well.
So I also assume wpa_supplicant works fine, but using it directly to start wifi is not the best idea, rather rely on other methods like nmcli and /etc/network/interfaces.
Even finding an working tutorial for wpa_supplicant was really hard I spend nearly 4 hours on it to make it "work", so odroid was right, it's bad, nmcli on the other hand took only a one liner to execute and make it work just perfect
try removing wpasupplicant (if it's still installed) and see if WLAN is still working with nmcli. Many application rely on wpasupplicant in the background, and you basically just switching the "frontend" part for connecting.
That would be a bad idea because nmcli has wpasupplicant as an dependency, it uses parts of it, but that doesn't mean that it has to be as bad as using wpa_supplicant as stand alone wlan connection
That's basically what I said.. You complain that wpasupplicant is bad, but in fact you're using wpaspupplicant.
The frontend/configuration of wpasupplicant (directly) is not the best, but the software itself is actually what you need.
So doesn't really matter if you use nmcli or any of the other methods, in the end you're using wpasupplicant. You just choose the frontend that you like best.
nmcli doesn't use wpa_supplicant in case of WEP key encryption mechanism, so obviously it only needs it for the WPA key encryption mechanism, but that's not the point, the point is that with the wpa_supplicant tutorial you can/get a bad WIFI connection, that's why it has a info for it now to use nmcli
RG
These users thanked the author AreaScout for the post:
New moonlight game streaming client based on qt (ported moonlight-qt) coming up soon with GUI to start from Emulationstation, browse games, change settings, close games, quit games
IMG_3594_2.jpg (75.45 KiB) Viewed 6832 times
RG
These users thanked the author AreaScout for the post (total 8):
odroid (Tue Feb 25, 2020 9:26 am) • notime2d8 (Tue Feb 25, 2020 10:11 am) • Durante (Tue Feb 25, 2020 10:24 pm) • rooted (Wed Feb 26, 2020 4:15 am) • dmckean44 (Wed Feb 26, 2020 5:50 am) • joy (Thu Feb 27, 2020 9:46 am) • Josh86 (Tue Sep 15, 2020 2:21 am) • Tagruato_Corporation (Tue Dec 22, 2020 9:17 pm)
As you can see you can adjust settings from within the settings view, moonlight will search for any PCs with NVIDIA GameStream enabled, if for some reason it does not find it you have to connect a keyboard and manually add the IP of your GameStream PC, but in most cases it will find it i.e GoAdv is in same subnet with GameStream PC.
RG
These users thanked the author AreaScout for the post (total 2):
Edit: I don't know much about NV gamestream, does it have the ability to stream native 3:2 aspect ratio if a game supports that?
@Durante
Basically the desktop resolution is being streamed not the game resolution, there are windows store games with 3:2 resolution but they do run windowed
@all
Here is a small video I did with moonlight-qt so you can see how to work with the streaming client
P.S.: Sorry for the strong moiré effect in the video, for sure there is some settings with the camera to reduce it but I still don't know all settings the camera has
RG
These users thanked the author AreaScout for the post (total 2):
odroid (Thu Feb 27, 2020 4:17 pm) • joy (Fri Feb 28, 2020 2:41 pm)
@AreaScout,
That's cool!
I look forward to getting a new deb soon. ( We need a newer deb than moonlight_2.4.10-1_arm64.deb that you shared with us before, right? )
The picture from the settings view of moonlight shows a bitrate for 720p and 60fps of 9.5Mbps, so theoretically it can not be more then 30Mbps because input and audio does not add that extra load, I will log the exact network traffic for that settings, any setting higher than 9.5Mbps does not make sense on that small LCD as far as I can tell.
@joy
Yes you need a new package, today I will upload and share the information on how to install and use it
RG
These users thanked the author AreaScout for the post:
We will also need librga, librockchip-mpp1, libdrm and libsdl2 build with KMS/DRM support, librga is already preinstalled, if you do not have the others, here is how to build them (sorry we do not have our own package server configured for the GoA to provide it)
git clone -b rockchip-2.4.95 https://github.com/rockchip-linux/libdrm-rockchip.git
cd libdrm-rockchip
./autogen.sh --enable-rockchip-experimental-api
make -j3
sudo make install
Build SDL2 for KMS/DRM:
Install GPU driver development header files + library:
cd ~
git clone https://github.com/AreaScout/SDL.git
cd SDL
./autogen.sh
./configure --disable-video-opengl --enable-video-kmsdrm
make -j3
sudo make install
after configure is finished you should see this line Video drivers : dummy x11(dynamic) kmsdrm(dynamic) opengl_es1 opengl_es2 vulkan
cd ~
git clone https://github.com/rockchip-linux/mpp.git
cd mpp
cmake -DRKPLATFORM=ON -DHAVE_DRM=ON .
make -j3
sudo make install
Configuration and usage:
As Qt5 which is used for the GUI of moonlight is build for many video backends X11, Wayland, KMS/DRM a.s.o we have to tell Qt5 which video backend we should use, for this we have to setup some environment variables
Edit the .bashrc file under /home/odroid or /root depending on which user moonlight should run and add this at the end of the file:
The logging environment variable is not needed (last one), the json config file is needed to tell if we use a hardware cursor or not, the rest is an extra lesson
Now moonlight should be able to start, after pairing by clicking on the PC icon with your PC name (it should be automatically discovered) you can open the setting view by pressing X or SELECT button, with L1 and R1 you can do page down and up with the D-Pad up and down you can highlight your selection and with the B button you can select settings, each game should be closed after gaming.
To disconnect a running game press START+SELECT+L1+R1
To toggle mouse emulation if needed press START+SELECT+L1
The default mapping is shown on the first picture above and is compiled in, if you want to add a custom mapping file gamecontrollerdb.txt the search path order is as follows:
Same path like the moonlight binary /usr/local/bin
~/.local/share/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt
/usr/local/share/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt
/usr/share/Moonlight Game Streaming Project/Moonlight/gamecontrollerdb.txt
Adding some cool Windows 10 Store Games (probably Boulder Dash or Spelunker clones ) to Nvidia Gamestreaming:
Press windows+R on your Windows PC and type shell:AppsFolder into the window, a Windows explorer window will open with your installed Games/Apps, browse for the right Game, right click it and choose create shortcut a new Icon should be created on your Desktop, now open NVIDIA GeForce Experience form your taskbar, click on the settings icon in the top right corner, then on the left click SHIELD and now on that dialog you can add a game manually, click add, go and browse for the desktop shortcut created before, edit and change the name of the game to something more easily and add game icon of your choice (download from internet).
P.S.: If you find something not working please report it here, I couldn't test HEVC 1080p60 streaming because my GPU card does not support it, only H264, so please test this also
PP.S.: Do not choose native resolution (it's way to small for streaming a 320x480 frame) and 1440p or 4k, it will not work and will probably crash the app, the ODROID GoA supports 720p and 1080p ! I will delete those settings in the next release
That's it happy Streaming 🕹🕹
Last edited by AreaScout on Thu May 21, 2020 10:51 pm, edited 7 times in total.
These users thanked the author AreaScout for the post (total 3):
odroid (Fri Feb 28, 2020 6:54 pm) • ripper121 (Fri Feb 28, 2020 10:38 pm) • joy (Sat Feb 29, 2020 9:30 pm)
I have a question.
What is the average/max speed (bit rate) of the wifi connection while you play games via streaming?
Is it over 30Mbps?
@odroid
I was wrong with "any setting higher than 9.5Mbps does not make sense on that small LCD" anything higher than 20Mbps doesn't make sense would be more the trues
Here is the exact network traffic taken with nload, first picture with 720p60 20Mbps and second with 1080p60 20Mbps
I then copied the ( /etc/emulationstation/es_systems.cfg ) file to ( /home/odroid/.emulationstation/es_systems.cfg )
And added the following code to the end of the file ( /home/odroid/.emulationstation/es_systems.cfg ) before the </systemList> tag:
I had to set:
Resolution to 720p/60fps with 15mbps.
Video decoder to (Force hardware decoding)
Video Codec to H.264
SOLVED
I have it working but I seem to have a ghost image and a green line across the left and top.
Have you seen this? If so, what is the fix? I am using the 720p at 60fps. Tried other settings, same thing, except native.
Hi all,
Following AreaScout manual.
I'm getting an error when doing the make install from this step:
////
cd ~
git clone https://github.com/AreaScout/SDL.git
cd SDL
./autogen.sh
./configure --disable-video-opengl --enable-video-kmsdrm
make -j3
sudo make install
////
The error is:
In file included from /home/ark/SDL/src/video/kmsdrm/SDL_kmsdrmevents.c:26:
/home/ark/SDL/src/video/kmsdrm/SDL_kmsdrmvideo.h:37:10: fatal error: rga/RgaApi.h: No such file or directory
37 | #include <rga/RgaApi.h>
I have ensured that I have librga installed on my system.
Guys, game streaming to the new Go Super is far better than streaming to the Go2, the display size comes handy the case feels solid, it's fast, it works, it's stable, it's updated, it has two thumbstick, it's tearing free and cool
Hold on for a release soon
game_stream.png (1.18 MiB) Viewed 433 times
RG
These users thanked the author AreaScout for the post (total 3):
notime2d8 (Sun Jan 03, 2021 2:49 am) • odroid (Mon Jan 04, 2021 9:41 am) • joy (Thu Jan 07, 2021 4:50 pm)