Gamestreaming Development Preview

Talking about OS and emulation core development
Post Reply
User avatar
AreaScout
Posts: 1207
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: 44 times
Been thanked: 108 times
Contact:

Gamestreaming Development Preview

Unread post by AreaScout » Wed Jan 15, 2020 8:59 pm

    Hi all

    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 4):
    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)

    User avatar
    mad_ady
    Posts: 7112
    Joined: Wed Jul 15, 2015 5:00 pm
    languages_spoken: english
    ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
    Location: Bucharest, Romania
    Has thanked: 307 times
    Been thanked: 212 times
    Contact:

    Re: Gamestreaming Development Preview

    Unread post by mad_ady » Wed Jan 15, 2020 10:13 pm

    This looks great! Can you do it the other way around?

    User avatar
    AreaScout
    Posts: 1207
    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: 44 times
    Been thanked: 108 times
    Contact:

    Re: Gamestreaming Development Preview

    Unread post by AreaScout » Wed Jan 15, 2020 10:22 pm

      From macOS to the Go Adv. ? 😋

      User avatar
      rooted
      Posts: 7136
      Joined: Fri Dec 19, 2014 9:12 am
      languages_spoken: english
      Location: Gulf of Mexico, US
      Has thanked: 387 times
      Been thanked: 108 times
      Contact:

      Re: Gamestreaming Development Preview

      Unread post by rooted » Thu Jan 16, 2020 12:15 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.

      User avatar
      AreaScout
      Posts: 1207
      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: 44 times
      Been thanked: 108 times
      Contact:

      Re: Gamestreaming Development Preview

      Unread post by AreaScout » Thu Jan 16, 2020 6:00 am

        @rooted

        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

        Code: Select all

        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:
        rooted (Thu Jan 16, 2020 6:38 am)

        User avatar
        rooted
        Posts: 7136
        Joined: Fri Dec 19, 2014 9:12 am
        languages_spoken: english
        Location: Gulf of Mexico, US
        Has thanked: 387 times
        Been thanked: 108 times
        Contact:

        Re: Gamestreaming Development Preview

        Unread post by rooted » Thu Jan 16, 2020 6:39 am

        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
        Disable power save:

        Code: Select all

        sudo vi /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
        
        Change the 3 which is enabled to 2 which is disabled and reboot.
        These users thanked the author rooted for the post:
        AreaScout (Thu Jan 16, 2020 7:50 pm)

        User avatar
        AreaScout
        Posts: 1207
        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: 44 times
        Been thanked: 108 times
        Contact:

        Re: Gamestreaming Development Preview

        Unread post by AreaScout » Thu Jan 16, 2020 10:18 pm

          @rooted

          Very nice find :) But in my case that didn't help

          RG

          User avatar
          rooted
          Posts: 7136
          Joined: Fri Dec 19, 2014 9:12 am
          languages_spoken: english
          Location: Gulf of Mexico, US
          Has thanked: 387 times
          Been thanked: 108 times
          Contact:

          Re: Gamestreaming Development Preview

          Unread post by rooted » Thu Jan 16, 2020 11:39 pm

          AreaScout wrote:
            @rooted

            Very nice find :) But in my case that didn't help

            RG
            Interesting, it made a huge difference on my WiFi.

            User avatar
            AreaScout
            Posts: 1207
            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: 44 times
            Been thanked: 108 times
            Contact:

            Re: Gamestreaming Development Preview

            Unread post by AreaScout » Fri Jan 17, 2020 2:55 am

              I think I will order one of those USB2Ethernet adapters if I don't get it working, did you use wpa_supplicant to connect to your WIFI ?

              User avatar
              rooted
              Posts: 7136
              Joined: Fri Dec 19, 2014 9:12 am
              languages_spoken: english
              Location: Gulf of Mexico, US
              Has thanked: 387 times
              Been thanked: 108 times
              Contact:

              Re: Gamestreaming Development Preview

              Unread post by rooted » Fri Jan 17, 2020 3:20 am

              AreaScout wrote:
                I think I will order one of those USB2Ethernet adapters if I don't get it working, did you use wpa_supplicant to connect to your WIFI ?
                I just followed the wiki and used nmcli

                Code: Select all

                sudo nmcli dev wifi con 'your SSID' password 'your password'
                
                My router is using wpa2/AES
                These users thanked the author rooted for the post:
                AreaScout (Fri Jan 17, 2020 5:39 am)

                User avatar
                AreaScout
                Posts: 1207
                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: 44 times
                Been thanked: 108 times
                Contact:

                Re: Gamestreaming Development Preview

                Unread post by AreaScout » Fri Jan 17, 2020 5:41 am

                  Yes !!! That did work, so wpa_supplicant must have been the issue :) haha nice, I am happy that it works, thank you so much 👍

                  RG

                  User avatar
                  rooted
                  Posts: 7136
                  Joined: Fri Dec 19, 2014 9:12 am
                  languages_spoken: english
                  Location: Gulf of Mexico, US
                  Has thanked: 387 times
                  Been thanked: 108 times
                  Contact:

                  Re: Gamestreaming Development Preview

                  Unread post by rooted » Fri Jan 17, 2020 7:51 am

                  AreaScout wrote:
                    Yes !!! That did work, so wpa_supplicant must have been the issue :) haha nice, I am happy that it works, thank you so much Image

                    RG
                    You're welcome.

                    User avatar
                    odroid
                    Site Admin
                    Posts: 33043
                    Joined: Fri Feb 22, 2013 11:14 pm
                    languages_spoken: English
                    ODROIDs: ODROID
                    Has thanked: 296 times
                    Been thanked: 417 times
                    Contact:

                    Re: Gamestreaming Development Preview

                    Unread post by odroid » Fri Jan 17, 2020 9:27 am

                    WPA supplicant had too many issues and we switched to the nmcli over a year ago.
                    https://wiki.odroid.com/troubleshooting ... etup_nmcli

                    User avatar
                    AreaScout
                    Posts: 1207
                    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: 44 times
                    Been thanked: 108 times
                    Contact:

                    Re: Gamestreaming Development Preview

                    Unread post by AreaScout » Fri Jan 17, 2020 6:33 pm

                      @odroid

                      I was following the tutorial on the wiki just one menu entry above from here https://wiki.odroid.com/troubleshooting ... wifi_setup that should be deleted then

                      RG

                      User avatar
                      odroid
                      Site Admin
                      Posts: 33043
                      Joined: Fri Feb 22, 2013 11:14 pm
                      languages_spoken: English
                      ODROIDs: ODROID
                      Has thanked: 296 times
                      Been thanked: 417 times
                      Contact:

                      Re: Gamestreaming Development Preview

                      Unread post by odroid » Sat Jan 18, 2020 12:24 pm

                      Some other developers still need it probably.
                      So I've emphasis the warning message on that wiki page. ;)
                      warn.png
                      warn.png (66.99 KiB) Viewed 343 times
                      These users thanked the author odroid for the post:
                      AreaScout (Sat Jan 18, 2020 4:12 pm)

                      User avatar
                      AreaScout
                      Posts: 1207
                      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: 44 times
                      Been thanked: 108 times
                      Contact:

                      Re: Gamestreaming Development release

                      Unread post by AreaScout » Wed Jan 22, 2020 10:47 pm

                        @all



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

                        ./moonlight stream xxx.xxx.xxx.xxx -app GameName -fps 30 -720 -platform rk

                        or VPU, 2D Accelerator, GPU renderer/scaler sdl2 backend

                        ./moonlight stream xxx.xxx.xxx.xxx -app GameName -fps 30 -720 -platform sdl

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

                        Moonlight 2.4.10 GoAdv./Rockchip

                        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:

                        Code: Select all

                                libgamestream.so.4 => /home/odroid/moonlight-embedded/libgamestream/libgamestream.so.4 (0x0000007f90ce7000)
                                libz.so.1 => /lib/aarch64-linux-gnu/libz.so.1 (0x0000007f90cad000)
                                liblzma.so.5 => /lib/aarch64-linux-gnu/liblzma.so.5 (0x0000007f90c7d000)
                                libm.so.6 => /lib/aarch64-linux-gnu/libm.so.6 (0x0000007f90bc3000)
                                libSDL2-2.0.so.0 => /usr/lib/aarch64-linux-gnu/libSDL2-2.0.so.0 (0x0000007f90abb000)
                                libX11.so.6 => /usr/lib/aarch64-linux-gnu/libX11.so.6 (0x0000007f90992000)
                                libEGL.so => /usr/local/lib/aarch64-linux-gnu/libEGL.so (0x0000007f8e44b000)
                                libasound.so.2 => /usr/lib/aarch64-linux-gnu/libasound.so.2 (0x0000007f8e356000)
                                libevdev.so.2 => /usr/lib/aarch64-linux-gnu/libevdev.so.2 (0x0000007f8e32d000)
                                libopus.so.0 => /usr/lib/aarch64-linux-gnu/libopus.so.0 (0x0000007f8e2e0000)
                                libudev.so.1 => /lib/aarch64-linux-gnu/libudev.so.1 (0x0000007f8e2b6000)
                                libdl.so.2 => /lib/aarch64-linux-gnu/libdl.so.2 (0x0000007f8e2a1000)
                                libmoonlight-common.so.4 => /home/odroid/moonlight-embedded/libgamestream/libmoonlight-common.so.4 (0x0000007f8e25e000)
                                libpthread.so.0 => /lib/aarch64-linux-gnu/libpthread.so.0 (0x0000007f8e232000)
                                libpulse-simple.so.0 => /usr/lib/aarch64-linux-gnu/libpulse-simple.so.0 (0x0000007f8e21d000)
                                libvdpau.so.1 => /usr/lib/aarch64-linux-gnu/libvdpau.so.1 (0x0000007f8e209000)
                                libpulse.so.0 => /usr/lib/aarch64-linux-gnu/libpulse.so.0 (0x0000007f8e1b7000)
                                libdrm.so.2 => /usr/lib/aarch64-linux-gnu/libdrm.so.2 (0x0000007f8e197000)
                                librockchip_mpp.so.1 => /usr/local/lib/librockchip_mpp.so.1 (0x0000007f8e06c000)
                                librga.so => /usr/local/lib/aarch64-linux-gnu/librga.so (0x0000007f8e052000)
                                libc.so.6 => /lib/aarch64-linux-gnu/libc.so.6 (0x0000007f8def9000)
                        
                        RG and have fun
                        These users thanked the author AreaScout for the post (total 2):
                        rooted (Wed Jan 22, 2020 10:48 pm) • odroid (Thu Jan 23, 2020 9:17 am)

                        User avatar
                        memeka
                        Posts: 4418
                        Joined: Mon May 20, 2013 10:22 am
                        languages_spoken: english
                        ODROIDs: XU rev2 + eMMC + UART
                        U3 + eMMC + IO Shield + UART
                        Has thanked: 2 times
                        Been thanked: 57 times
                        Contact:

                        Re: Gamestreaming Development Preview

                        Unread post by memeka » Thu Jan 23, 2020 7:29 pm

                        odroid wrote:
                        Sat Jan 18, 2020 12:24 pm
                        Some other developers still need it probably.
                        So I've emphasis the warning message on that wiki page. ;)
                        warn.png
                        that is interesting because i think nmcli uses wpa_supplicant :)

                        User avatar
                        meveric
                        Posts: 10649
                        Joined: Mon Feb 25, 2013 2:41 pm
                        languages_spoken: german, english
                        ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105)
                        Has thanked: 25 times
                        Been thanked: 194 times
                        Contact:

                        Re: Gamestreaming Development Preview

                        Unread post by meveric » Fri Jan 24, 2020 1:16 am

                        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.
                        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.

                        Post Reply

                        Return to “Platform development”

                        Who is online

                        Users browsing this forum: No registered users and 0 guests