[GAMES] NVIDIA Game Streaming with ODROID

Moderators: meveric, mdrjr, odroid

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby HateB » Thu Jul 27, 2017 1:59 am

Icy wrote:Thanks for the quick reply HateB

So you're suggesting I start again with Debian Stretch? Or is there a way of resolving the problem with meveric's Jessie image as a base?
Happy to work with newer version, but may need a hand with the extra steps you mention as I am quite new to all this :D
Unless meveric's WIP Stretch image is a good start? - viewtopic.php?f=138&t=27449


I suppose it was a good time for me to take a step towards Stretch since my Moonlight was totally broken somehow. :D There are no problems, people have said, and I can agree but hear that I have very little experience with it now. I had to run manually installed Setup-odroid because there was a problem with missing files probably. I have fbturbo and all the files that are required to be installed here: https://github.com/irtimmer/moonlight-embedded/wiki/Compilation. And please, don't forget aml-libs-odroid:http://fuzon.co.uk/meveric/pool/main/a/aml-libs-odroid/. Please don't hesitate to ask more help.

A little bit more testing. I tried with RJ45 connection but it wasn't smooth enough. I have modem with 100mb switches but I suppose it should be enough. 1080p 60fps 15000kbps settings and it was more or less laggy. 720p with 10k kbps and it was fine but totally not good enough to be used daily instead of sitting in front of PC. Wireless 2,4 GHz is awful, it works but frames are missed a lot to be able to play any intensive. Note that on my phone moonlight.apk works great.

Edit: I just tested again with my phone at the same location as my Odroid. 1080p@60fps, 20 Mbps, H265 and DiRT Rally was very close to playble condition. :o Should I try android(6.0.1? or which build?) or what is still making it working bad?
HateB
 
Posts: 16
Joined: Tue Nov 29, 2016 12:51 am
Location: Finland
languages_spoken: English, Finnish, Swedish
ODROIDs: Odroid C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby Icy » Sat Jul 29, 2017 12:55 pm

Just a quick update - I managed to persevere and compile the latest Moonlight on the Jessie image and successfully stream some games with reasonable performance results. Thanks again HateB - good luck with your Android endeavors.
I've had no luck getting my Xbox One controller working with xboxdrv (with USB). Is this even possible? I understand Xbox 360 controller is more successful.
Icy
 
Posts: 3
Joined: Thu Jul 27, 2017 12:24 am
languages_spoken: english
ODROIDs: ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby HateB » Tue Aug 08, 2017 3:09 am

I did some testing on Android 6.0.1(v3.4). Clean image on a rather slow microSD card(class 4). Android ran fine and I installed Moonlight for rooted devices. I tried on 720p@60fps, 10 Mbps, H265(and H264). The game I tested on Linux was still unplayable on Android at least wirelessly. I suppose it was working just a little bit better. I could try wired connection some day. Anyways, how are games running on your system? I thought it was cool app to avoid using 10 meter HDMI/RJ45 cables but there's something wrong since RJ45 cable ain't stable enough.
HateB
 
Posts: 16
Joined: Tue Nov 29, 2016 12:51 am
Location: Finland
languages_spoken: English, Finnish, Swedish
ODROIDs: Odroid C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Tue Aug 08, 2017 4:09 am

Last time I actively used it on the C2 I was playing in 1080p@60Hz 25Mbit H264, and it was working beautifully.
But a lot changed since then and I'm not even sure if it's still working.
On the XU4 I could run it on Kernel 4.9 in 1080p@30 FPS with hardware decoder, 60 FPS had some speed issues every now and then.
But on Kernel 3.10 software decoding was also working in 1080p@60 FPS.
But as said earlier, that's all quite some while in the past.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby HateB » Tue Aug 08, 2017 1:09 pm

meveric wrote:Last time I actively used it on the C2 I was playing in 1080p@60Hz 25Mbit H264, and it was working beautifully.
But a lot changed since then and I'm not even sure if it's still working.
On the XU4 I could run it on Kernel 4.9 in 1080p@30 FPS with hardware decoder, 60 FPS had some speed issues every now and then.
But on Kernel 3.10 software decoding was also working in 1080p@60 FPS.
But as said earlier, that's all quite some while in the past.
Could it be possible that you found the microSD card or backup and upload it somewhere without updating any packages in the image? Of course not in case the image is full of personal stuff.


Edit. Just another thought; Could Ubuntu or some other image make any difference?
HateB
 
Posts: 16
Joined: Tue Nov 29, 2016 12:51 am
Location: Finland
languages_spoken: English, Finnish, Swedish
ODROIDs: Odroid C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Tue Aug 08, 2017 2:13 pm

HateB wrote:But as said earlier, that's all quite some while in the past.
Could it be possible that you found the microSD card or backup and upload it somewhere without updating any packages in the image? Of course not in case the image is full of personal stuff.[/quote]
Since I provide .deb packages for moonlight it's the easiest to just take them instead. But as I said, they are older and outdated and don't work with the latest version of GFE.

HateB wrote:Edit. Just another thought; Could Ubuntu or some other image make any difference?

depending on how these images are configured maybe, but I kinda doubt it since it's using the video layer on the C2 which is separate from the OS.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby HateB » Tue Aug 08, 2017 2:22 pm

meveric wrote:
HateB wrote:But as said earlier, that's all quite some while in the past.
Could it be possible that you found the microSD card or backup and upload it somewhere without updating any packages in the image? Of course not in case the image is full of personal stuff.
HateB wrote:Edit. Just another thought; Could Ubuntu or some other image make any difference?
depending on how these images are configured maybe, but I kinda doubt it since it's using the video layer on the C2 which is separate from the OS.


Okay, then I don't see any other solution than just wait and hope for magical "fix" for the problem. I should check the output Moonlight sends to terminal when I try next time if that could indicate something about the issue.
HateB
 
Posts: 16
Joined: Tue Nov 29, 2016 12:51 am
Location: Finland
languages_spoken: English, Finnish, Swedish
ODROIDs: Odroid C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Tue Aug 08, 2017 4:07 pm

Just tested moonlight on the ODROID C2 under Debian Stretch (nothing else can compile it at the moment, due to some stupid dependencies, on latest ffmpeg libraries).
Anyway... I made a very quick test just a minute or so... I couldn't run it as normal user, but could run it as root.
Sound was working fine for a few seconds, then I heard crackling, then nothing.
Game itself was running full speed, but I only left the default values, not sure if they are 720p or 1080p at the moment.

I might look into it later when I have more time.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby gartensofa » Tue Sep 12, 2017 10:55 pm

meveric wrote:Just tested moonlight on the ODROID C2 under Debian Stretch

Hello Meveric,
would you mind telling me the steps you took to get there?
I took this stretch-image:
https://github.com/Fourdee/DietPi/issues/1032#issuecomment-312318867
and cloned this git:
https://github.com/irtimmer/moonlight-embedded
and apt-get'et make and cmake, but i get the error
Code: Select all
No CMAKE_C_COMPILER could be found

and google only has solutions conserning this error on windows that i can't implement in our environment..

Any help would be much appreciated
cheers,
Daniel
gartensofa
 
Posts: 6
Joined: Sun Sep 03, 2017 8:06 pm
languages_spoken: english
ODROIDs: c2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Tue Sep 12, 2017 11:33 pm

it seems you're missing all compilers, you should try installing build-essential first to have C Compiler installed.
moonlight is not that hard to compile.

cmake should complain about anything it's missing.
You can also check their wiki on what you need to compile the code: https://github.com/irtimmer/moonlight-e ... ompilation
You can skip on the packages that have raspberrypi in it's name since they are obvious not for us.

For ODROID C2 you'll also need my package aml-libs-odroid installed to compile with hardware decoder support.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby gartensofa » Wed Sep 13, 2017 5:30 am

Hey Meveric,
thanks for your fast answer. You were right, build-essential seems to have been a big step.
Of all the (non-rpi)dependencies on the moonlight compilation page "libudev0" is the only one that can't be located by apt-get. aml-libs are also installed.
Now when i cmake i get:
Code: Select all
root@DietPi:/home/dietpi/moonlight-embedded/build# cmake ../
-- Could NOT find Broadcom (missing:  BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY)
-- Could NOT find Freescale (missing:  FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY)
-- Checking for module 'vdpau'
--   No package 'vdpau' found
-- Checking for module 'libcec>=4'
--
-- Checking for module 'egl'
--   No package 'egl' found
You have called ADD_LIBRARY for library moonlight-common without any source files. This typically indicates a problem with your CMakeLists.txt file
-- Configuring done
CMake Error: CMake can not determine linker language for target: moonlight-common
CMake Error: Cannot determine link language for target "moonlight-common".
-- Generating done
-- Build files have been written to: /home/dietpi/moonlight-embedded

and for a make after that:
Code: Select all
make[2]: *** No rule to make target 'libgamestream/CMakeFiles/moonlight-common.dir/build'.  Stop.
CMakeFiles/Makefile2:183: recipe for target 'libgamestream/CMakeFiles/moonlight-common.dir/all' failed
make[1]: *** [libgamestream/CMakeFiles/moonlight-common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

I'm probably missing something obvious. Rather new-ish to the whole thing ;-)
As far as i can find theres no easier way to get this to run on a os that could also run kodi, right?
gartensofa
 
Posts: 6
Joined: Sun Sep 03, 2017 8:06 pm
languages_spoken: english
ODROIDs: c2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Wed Sep 13, 2017 5:55 am

gartensofa wrote:
Code: Select all
-- Checking for module 'egl'
--   No package 'egl' found

try installing libegl1-mesa-dev but afterwards you'll have to reinstall mali450-odroid again:
Code: Select all
apt-get install libegl1-mesa-dev
apt-get install --reinstall mali450-odroid


gartensofa wrote:
Code: Select all
You have called ADD_LIBRARY for library moonlight-common without any source files. This typically indicates a problem with your CMakeLists.txt file
-- Configuring done
CMake Error: CMake can not determine linker language for target: moonlight-common
CMake Error: Cannot determine link language for target "moonlight-common".

Seems you forgot to download the submodules for moonlight.
You can do this with:
Code: Select all
git submodule update --init --recursive

this should download moonlight-common.

gartensofa wrote:As far as i can find theres no easier way to get this to run on a os that could also run kodi, right?

Unless there's an OS that already has the packages, no.
Although I think it should be available on my Debian Stretch and Jessie images (and also DietPi).
I'm currently testing the new version 2.4.3 under Debian Stretch to see if it works.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby gartensofa » Wed Sep 13, 2017 6:05 am

Yay, all new error messages. :-D Getting closer
Code: Select all
root@DietPi:/home/dietpi/moonlight-embedded/build# cmake ../
-- Could NOT find Broadcom (missing:  BROADCOM_INCLUDE_DIR VCOS_LIBRARY VCHIQ_LIBRARY OPENMAXIL_LIBRARY BCM_HOST_LIBRARY)
-- Could NOT find Freescale (missing:  FREESCALE_INCLUDE_DIR KERNEL_INCLUDE_DIR VPU_LIBRARY)
-- Checking for module 'vdpau'
--   No package 'vdpau' found
-- Checking for module 'libcec>=4'
--
-- Checking for module 'egl'
--   Found egl, version 13.0.6
-- Configuring done
-- Generating done
-- Build files have been written to: /home/dietpi/moonlight-embedded


Code: Select all
root@DietPi:/home/dietpi/moonlight-embedded/build# make
make[2]: *** No rule to make target 'libgamestream/CMakeFiles/moonlight-common.dir/build'.  Stop.
CMakeFiles/Makefile2:183: recipe for target 'libgamestream/CMakeFiles/moonlight-common.dir/all' failed
make[1]: *** [libgamestream/CMakeFiles/moonlight-common.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2


Yes, i bieleve i tried the jessie one, i only got a black screen using moonlight on that one..

Again, your help is very much appreciated

EDIT: disregarding all those errors, a "make install" is all green until:
Code: Select all
[ 62%] Building C object CMakeFiles/moonlight.dir/src/main.c.o
In file included from /home/dietpi/moonlight-embedded/src/main.c:25:0:
/home/dietpi/moonlight-embedded/src/sdl.h:22:17: fatal error: SDL.h: No such file or directory
 #include <SDL.h>
                 ^
compilation terminated.
CMakeFiles/moonlight.dir/build.make:134: recipe for target 'CMakeFiles/moonlight.dir/src/main.c.o' failed
make[2]: *** [CMakeFiles/moonlight.dir/src/main.c.o] Error 1
CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/moonlight.dir/all' failed
make[1]: *** [CMakeFiles/moonlight.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
gartensofa
 
Posts: 6
Joined: Sun Sep 03, 2017 8:06 pm
languages_spoken: english
ODROIDs: c2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Wed Sep 13, 2017 6:36 am

ok, I tried currently and got it to work under Debian Stretch, although it has some minor issues and it seems to require new permissions.
Not sure if it will work under Debian Jessie at the moment. I encountered some issues under Debian Stretch first as well like described in this bug report: https://github.com/irtimmer/moonlight-e ... issues/555
I got it to work eventually by using libssl-dev which is version 1.1 rather than version 1.0.2.
And Debian Jessie only has 1.0.2 so it might not work at all under Debian Jessie. I'll give i a try anyway.
I had some other issues with flickering graphics though, not sure if that's related though or another issue.
I'll upload moonlight for ODROID C2 Debian Stretch in a moment, and will try to get Debian Jessie to work, although I'm not sure it will work.

The error above missing SDL.h means you need to install libsdl2-dev make sure you do the cmake again, as it needs to find where the SDL2 is located.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby gartensofa » Thu Sep 14, 2017 5:53 am

The error above missing SDL.h means you need to install libsdl2-dev

Yes, that made it work!
Now i can pair and stream, but ONLY with the -4k flag, which makes it a bit sluggish..
On any other resolution and fps or bitrate i only get the initial state of the host display, but it's not refreshing.

Output is:
Code: Select all
No mapping available for cec_input (100000008e1b0000ec0c000001000000) on /dev/input/event0
No mapping available for vt-input (19000000b41600000107000001000000) on /dev/input/event1
shared memfd open() failed: Function not implemented


after that everything gets "...done" and then a lot of "Alsa error from writei: -32"
Any idea on that?
gartensofa
 
Posts: 6
Joined: Sun Sep 03, 2017 8:06 pm
languages_spoken: english
ODROIDs: c2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Thu Sep 14, 2017 7:07 am

I had a similar result... as root from terminal do a chmod 666 /dev/am* this should allow the normal user to run 1080p and other frame rates as well. It worked for me at least.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby gartensofa » Fri Sep 15, 2017 3:04 am

The chmod sadly does not work for me..
Would you mind telling me what system image you used?
gartensofa
 
Posts: 6
Joined: Sun Sep 03, 2017 8:06 pm
languages_spoken: english
ODROIDs: c2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Fri Sep 15, 2017 3:12 am

My Debian Stretch image for ODROID C2. -> viewtopic.php?f=138&t=27449
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby gartensofa » Fri Sep 15, 2017 5:33 am

YES! Your image as base did the trick.
Everything runs very smooth now. Even sound over s/pdif shield is stable.
(Although with the controller plugged in the PC, i read that makes it better.)
Anyway, thanks again and have a beer on me :)
Cheers!
gartensofa
 
Posts: 6
Joined: Sun Sep 03, 2017 8:06 pm
languages_spoken: english
ODROIDs: c2

Re: [GAMES] NVIDIA Game Streaming with ODROID

Unread postby meveric » Fri Sep 15, 2017 6:06 am

Glad it's working for you :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 7660
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: ODROID-X2,ODROID-U2,ODROID-U3,ODROID-XU-Lite, ODROID-XU3, ODROID-XU3-Lite, ODROID-C1, ODROID-XU4, ODROID-C2

Previous

Return to Games and Emulators

Who is online

Users browsing this forum: No registered users and 3 guests