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

Post Reply
User avatar
AreaScout
Posts: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by 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 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: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by 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: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by 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
rooted
Posts: 6469
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 21 times
Been thanked: 10 times
Contact:

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

Unread post by 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
AreaScout
Posts: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by 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: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by 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
rooted
Posts: 6469
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 21 times
Been thanked: 10 times
Contact:

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

Unread post by 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
AreaScout
Posts: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by 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/c ... 7ad77e107f in mpp hevc/h265 is broken (h264 still works), just to warn anyone building from latest git

SlappyMcPhee
Posts: 72
Joined: Fri Aug 18, 2017 2:09 pm
languages_spoken: english
ODROIDs: XU4 (3 of them)
Has thanked: 0
Been thanked: 0
Contact:

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

Unread post by SlappyMcPhee » Fri Feb 22, 2019 9:17 am

AreaScout wrote:
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

@AreaScout any thought on how we could integrate this on the upcoming N2 using FB-Dev similar to running with FB-Dev on the XU4?
Owner The Retro Arena and Odroid Retro Arena

User avatar
AreaScout
Posts: 910
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell
Has thanked: 5 times
Been thanked: 18 times
Contact:

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

Unread post by AreaScout » Fri Feb 22, 2019 9:09 pm

SlappyMcPhee wrote:
Fri Feb 22, 2019 9:17 am
AreaScout wrote:
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

@AreaScout any thought on how we could integrate this on the upcoming N2 using FB-Dev similar to running with FB-Dev on the XU4?
I haven't tried it yet but AmLogic HW decoder is upstream and should work out of the box with it, there is no need to have fbdev here, because the video decoder writes direct to the display controller

SlappyMcPhee
Posts: 72
Joined: Fri Aug 18, 2017 2:09 pm
languages_spoken: english
ODROIDs: XU4 (3 of them)
Has thanked: 0
Been thanked: 0
Contact:

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

Unread post by SlappyMcPhee » Sat Feb 23, 2019 2:53 am

AreaScout wrote:
Fri Feb 22, 2019 9:09 pm
SlappyMcPhee wrote:
Fri Feb 22, 2019 9:17 am
AreaScout wrote:
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

@AreaScout any thought on how we could integrate this on the upcoming N2 using FB-Dev similar to running with FB-Dev on the XU4?
I haven't tried it yet but AmLogic HW decoder is upstream and should work out of the box with it, there is no need to have fbdev here, because the video decoder writes direct to the display controller
Gotcha. Yeah, wasn't sure since we use the minimal build for our stuff and do not leverage desktop drivers at all.
Owner The Retro Arena and Odroid Retro Arena

Tony32
Posts: 11
Joined: Sun Mar 04, 2018 1:39 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

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

Unread post by Tony32 » Sun May 12, 2019 4:19 pm

Which OS do you run this on?

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest