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

Post Reply
AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

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

AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

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

AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

@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: 8109
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

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

Post by rooted »

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

What is the minimum card one could test with?

AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

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

AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

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: 8109
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 727 times
Been thanked: 270 times
Contact:

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

Post by rooted »

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.

AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

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: 105
Joined: Fri Aug 18, 2017 2:09 pm
languages_spoken: english
ODROIDs: XU4 (3 of them)
Has thanked: 6 times
Been thanked: 5 times
Contact:

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

Post by SlappyMcPhee »

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

AreaScout
Posts: 1530
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, Go2, C4
Has thanked: 82 times
Been thanked: 251 times
Contact:

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

Post by AreaScout »

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: 105
Joined: Fri Aug 18, 2017 2:09 pm
languages_spoken: english
ODROIDs: XU4 (3 of them)
Has thanked: 6 times
Been thanked: 5 times
Contact:

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

Post by SlappyMcPhee »

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: 13
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

Post by Tony32 »

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