Game Streaming client moonlight-embedded with 1080p and 4k

Moderators: mdrjr, odroid

Game Streaming client moonlight-embedded with 1080p and 4k

Unread postby AreaScout » Tue Feb 20, 2018 12:36 am

Hi all

I have successfully integrated hardware video decoding with Rockchips Media Process Platform and drm zero copy to moonlight-embedded a game streaming client



The Video shows game streaming on a XU4Q but on N1 it runs even better, sorry for not having a video on N1 ;)

Thanks to Martin Cerveny who permitted me to use some code from his command line player

I will look forward to get the changes upstream, 4k game play is not testet due to the lack of hardware but should work with at least HEVC Main10 video streams
and the whole thing will also work on systems without X11 running :)

Building:

checkout sources from this branch

Code: Select all
https://github.com/AreaScout/moonlight-embedded/tree/rockchip


librockchipmpp libraries build with drm support

Code: Select all
cmake -DRKPLATFORM=ON -DHAVE_DRM=ON .


for the rest please refer to this thread https://forum.odroid.com/viewtopic.php?f=91&t=15456

Usage:

in case of 1080p

Code: Select all
./moonlight stream 192.168.1.2 -app "yourgamename" -fps 60 -1080 -platform rk


Known issues:

  • If X11 is running, after exit moonlight, mouse cursor is disabled, switching desktops with ALT+F1 and back ALT+F7 redraws the screen and mouse cursor re-appears (or move mouse over an already opened window)
  • sporadically Audio pauses, please use moonlight with pulseaudio for now

have fun
User avatar
AreaScout
 
Posts: 595
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby AreaScout » Tue Feb 20, 2018 5:44 am

Just for the record if you build your own image don't use libdrm from debian or ubuntu repositories, build your own https://github.com/rockchip-linux/libdrm-rockchip
User avatar
AreaScout
 
Posts: 595
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby AreaScout » Tue Feb 20, 2018 4:33 pm

@all

it would be nice if someone with N1 and HEVC (4k) capable Nvidia card can confirm that it's working, i did only test it by sending an 4k hevc video locally to that code, but not by streaming

RG
User avatar
AreaScout
 
Posts: 595
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby rooted » Thu Feb 22, 2018 1:00 am

I would mate, but I'm like you and don't have the ability.

What is the minimum card one could test with?
User avatar
rooted
 
Posts: 5474
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby AreaScout » Thu Feb 22, 2018 3:58 am

GTX Series of type 6xx is minimum requirement and as of PureVideo HD Verion VP7 (GM206 Core Type GPU) it supports 4k HEVC streaming

https://en.wikipedia.org/wiki/Nvidia_PureVideo
User avatar
AreaScout
 
Posts: 595
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby AreaScout » Sun Jun 17, 2018 5:09 pm

Hi all

Just want to let you know that Rockchip is supported now in moonlight-embedded my pull request got accepted :) https://github.com/irtimmer/moonlight-embedded

RG
User avatar
AreaScout
 
Posts: 595
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby rooted » Mon Jun 18, 2018 12:57 am

AreaScout wrote:Hi all

Just want to let you know that Rockchip is supported now in moonlight-embedded my pull request got accepted :) https://github.com/irtimmer/moonlight-embedded

RG
You are doing a lot of great work to support Hardkernel devices, really appreciated :)

Thank you.
User avatar
rooted
 
Posts: 5474
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Game Streaming client moonlight-embedded with 1080p and

Unread postby AreaScout » Mon Jun 18, 2018 2:23 am

rooted wrote:You are doing a lot of great work to support Hardkernel devices, really appreciated :)

Thank you.


Thank you rooted :)

As of this commit https://github.com/rockchip-linux/mpp/commit/44f0ee03533bafd961d2e271a90ea77ad77e107f in mpp hevc/h265 is broken (h264 still works), just to warn anyone building from latest git
User avatar
AreaScout
 
Posts: 595
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q


Return to Projects

Who is online

Users browsing this forum: No registered users and 2 guests