1. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    Yeah, USB without dock only in a next update it seems.
     
  2. rob151515

    rob151515 Newbie
    Newcomer

    Joined:
    May 6, 2019
    Messages:
    8
    Country:
    Albania
    How well is this working? Confused as op says works wonders but then someone else posted that games are unplayable?
     
  3. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    Well it does work well for slow paced games at least with my setup, just don't try to play darksouls with it, at least yet.

    — Posts automatically merged - Please don't double post! —

    @knopex well I didn't mentioned this but, nothing stops Ubuntu aarch64 from running moonlight-qt, I tried installing using flatpak: it installed, opened, paired and connected... But libgl errors, I'll try compiling myself later and do some troubleshooting, when I have the time.
     
    Last edited by ZeroFX, May 6, 2019
    knopex likes this.
  4. rob151515

    rob151515 Newbie
    Newcomer

    Joined:
    May 6, 2019
    Messages:
    8
    Country:
    Albania
    Thanks. Is 720p 60fps achievable? I have moonlight working perfectly on other devices at 1080p 60fps but the switch seems like the perfect form factor for it...
     
  5. stevielememe

    stevielememe Newbie
    Newcomer

    Joined:
    Dec 3, 2018
    Messages:
    1
    Country:
    United States
    Just wanted to say thanks for all the information y'all! I got moonlight embedded installed, the controllers seeming to work, and it's connecting to my computer, but I'm getting the RTSP handshake timeout after 10 seconds. A lot of progress though! Still trying to figure out how to fix it. I know all the ports are forwarded correctly on my host machine and I believe on my switch too.

    Tried this but with no luck. I'm so close XD Everything runs just don't get any video output on the switch right now.
     
  6. rob151515

    rob151515 Newbie
    Newcomer

    Joined:
    May 6, 2019
    Messages:
    8
    Country:
    Albania
    To answer my own question, it doesn't seem possible (at the moment) but it still is a nice start.

    Tried it last night and the ops instructions worked perfectly but unfortunately for me, the stream is very choppy. As I said earlier, I have perfect 1080p 60fps streaming on other devices so I know it is not my setup.

    CPU usage while streaming on the Switch was very high so I would guess that it's not utilising the GPU when decoding the stream but I could be wrong...

    Looking forward to seeing where this goes!
     
  7. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    Well now, the issue is indeed with hardware acceleration and guess what!? Well, sit there.
    Aarch64, or arm64, has its qt5 builds so I thought building moonlight-qt would be better some some reason and well I'm wrong, moonlight-qt makes use of libvdpau that, I discovered later, in the Ubuntu l4t (in a comment by @bylaws) that nvidia doesn't support it for tegra, and indeed won't because after compiling I got these errors:
    Code:
    00:00:01 - SDL Error (0): Failed to initialize VAAPI: -1
    00:00:01 - FFmpeg: [AVHWDeviceContext @ 0x5576b64420] VDPAU device creation on X11 display :1 failed.
    00:00:01 - SDL Error (0): Failed to create VDPAU context: -1313558101
    libva info: VA-API version 1.1.0
    libva info: va_getDriverName() returns 0
    libva info: Trying to open /usr/lib/aarch64-linux-gnu/dri/nvidia_drv_video.so
    libva info: Found init function __vaDriverInit_1_0
    Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
    libva error: /usr/lib/aarch64-linux-gnu/dri/nvidia_drv_video.so init failed
    libva info: va_openDriver() returns -1
    Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
    After compiled the program worked, I could pair, connect, etc but black screen.
    After doing my research I saw that well, raspberry pi and odroid doesn't have vdpau either, so I wonder what Moonlight-embedded uses for hardware acceleration on these devices, or it's the same laggy mess as when running on switch? Well looks like rpi now makes use of MMAL, can we? No, it's broadcom exclusive, odroid has some custom forks with openmax, THAT we can use, if someone is willing to implement with the data available on the internet:

    https://www.google.com.br/search?q=...9i57.2232j0j4&sourceid=chrome-mobile&ie=UTF-8

    I have University and exams soon™ :P. But I'll keep on looking, not promising that I'll be the one that will make this thing works well, probably won't :/.
     
    Last edited by ZeroFX, May 8, 2019
  8. Beckershoff

    Beckershoff Newbie
    Newcomer

    Joined:
    Aug 2, 2018
    Messages:
    3
    Country:
    Netherlands
    Brilliant tutorial and work so far @ZeroFX ! Managed to have Moonlight working nicely on my Switch. Currently rocking it under [email protected] with 5000kbps. This is in my case the most solid. Hopefully somebody continues your work and is able to get hardware decoding to work!

    B.t.w. for anybody interested: for me the easiest was to create a desktop shortcut:

    1. Nano ~/Desktop/WindowsDesktop.desktop
    2. Enter following text:
    Code:
    [Desktop Entry]
    Name=Windows Desktop
    Exec=moonlight stream <IP ADDRESS OF HOST> -app <NAME OF APP> -720 -fps 30 -bitrate 5000 -codec h264
    Terminal=true
    Type=Application
    EXAMPLE:
    Code:
    [Desktop Entry]
    Name=Windows Desktop
    Exec=moonlight stream 192.168.1.93 -app Desktop -720 -fps 30 -bitrate 5000 -codec h264
    Terminal=true
    Type=Application
    3. press CRTL+X and Y to store it
    4. Success, shortcut is stored on desktop (PS make sure you provided your host machine with a static IP on your router ;-))

    PS to exit a session you can press +,-, L, R simultanously. The session is however not quit on the host, for this to happen you need to add '-quitappafter' to the 'Exec' line in the example above.
     
    Last edited by Beckershoff, Jun 9, 2019
  9. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    Really awesome exec, and thanks.
     
  10. W9qI8k5QMf

    W9qI8k5QMf Member
    Newcomer

    Joined:
    Feb 11, 2019
    Messages:
    42
    Country:
    United States
    does this work over internet?
     
  11. p4rma

    p4rma Member
    Newcomer

    Joined:
    Aug 30, 2018
    Messages:
    25
    Country:
    United States
    Great guide thanks!
     
  12. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    it should, dont know about performance though.
     
  13. GregH

    GregH Member
    Newcomer

    Joined:
    Jan 29, 2020
    Messages:
    31
    Country:
    Guatemala
    sorry, my question was absurd ... sorry ! :D i found the solution in the first posts
     
    Last edited by GregH, Jan 30, 2020
    ZeroFX likes this.
  14. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    Folks, moonlight-qt is now possible, it adds hwdecoder support that makes it really fast and usable, you have to install the custom build by gavin_darkglider.

    OP updated with instructions.
     
    A3660537JPN likes this.
  15. Matt3o

    Matt3o Newbie
    Newcomer

    Joined:
    Oct 22, 2014
    Messages:
    3
    Country:
    Italy
    Thanks for the guide, everything is working perfectly, is there a way to map the joycons with Nintendo's layout in this new version of moonlight? I have tried the instructions in the OP but they don't seem to work, the moonlight folder under '/usr/local/share' wasn't there, and even after manually creating it and placing the gamecontrollerdb.txt with your config inside the layout is still inverted. Thanks
     
    falcorr and ZeroFX like this.
  16. Deleted User

    Deleted User Newbie

    works way better on android
     
  17. ZeroFX

    OP ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    155
    Country:
    Japan
    Captain obvious huh? Except Oreo is very deprecated comparing to ubuntu, doesnt support railed joy-cons, proper sleep mode and etc.

    It is better with moonlight, but im showing options here, so stay ontopic if youre going to reply.

    i believe if you edit usr/share/X11/xorg.conf.d/50-joystick.conf you can change that, moonlight-qt doesnt use the config moonlight embedded use.
     
  18. Gavin_Darkglider

    Gavin_Darkglider GBAtemp Regular
    Member

    Joined:
    May 20, 2019
    Messages:
    216
    Country:
    United States
    First to clarify, moonlight qt fixes for Jetson nano/switch are not my custom build, but from cgutmans, the head moonlight dev. And according to him the Jetson nano/switch are the best preforming arm boards where moonlight-qt is concerned. Android is completely different api, and uses omx for decoding.
     
    ZeroFX likes this.
  19. falcorr

    falcorr Advanced Member
    Newcomer

    Joined:
    Sep 26, 2019
    Messages:
    98
    Country:
    Australia
    This config file appears to work. How would I go about swapping the buttons? (i.e. A <> B, X <> Y) I haven't had luck with that through this file or jscal.
     
  20. famf

    famf Newbie
    Newcomer

    Joined:
    Apr 13, 2020
    Messages:
    2
    Country:
    United States
    Whenever I start a game with moonlight-qt all I get is a black screen. I can hear game audio though. Any ideas?
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Installing, Moonlight, Ubuntu