Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Moonlight freezes after a few seconds

    Recalbox General
    blackscreen sound moonlight streaming
    2
    30
    15171
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Substring
      Substring @Anon last edited by

      @Anon said in Moonlight freezes after a few seconds:

      cat: can't open '/recalbox/share/system/configs/moonlight/gamelist.txt': No such file or directory

      this error message is tricky ...

      Former dev - Please reply with @substring so that i am notified when you answer me
      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

      Anon 1 Reply Last reply Reply Quote 0
      • Anon
        Anon @Substring last edited by Anon

        @Substring Well as you see in the message I tried to create the file which didn't work and it was fixed after I cleaned GFE and re-paired again with cleaning, now it's blackscreen again.

        Substring 1 Reply Last reply Reply Quote 0
        • Substring
          Substring @Anon last edited by

          @Anon This rather looks like pair / init is not working. So, forget paired devices on GFE, and on recalbox, run the script once with each of these parameters : clean then pair then init

          Former dev - Please reply with @substring so that i am notified when you answer me
          Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

          Anon 1 Reply Last reply Reply Quote 0
          • Anon
            Anon @Substring last edited by Anon

            @Substring That's exactly what I did and what I said after I had the error with the file. I fully forgot all devices in GFE, cleaned Moonlight and paired them again. You want me to do it again?

            So did it again with reboot and now it's only showing version 4.0.2 and "recalbox" with logo at the bottom.
            /etc/init.d/S31emulationstation stop
            cd /recalbox/scripts/moonlight
            ./Moonlight.sh clean
            You can now pair again your recalbox with a PC
            ./Moonlight.sh clean
            You can now pair again your recalbox with a PC
            ./Moonlight.sh pair
            Moonlight Embedded 2.2.2 (EMBEDDED;CEC;PI)
            Too many options: No such file or directory
            Moonlight Embedded 2.2.2 (EMBEDDED;CEC;PI)
            Searching for server...
            Connect to 192.168.178.21...
            Generating certificate...done
            NVIDIA GeForce GTX 770, GFE 3.1.0.44 (protocol version 7)
            Please enter the following PIN on the target PC: 2150
            1017 / 1017
            Succesfully paired
            ./Moonlight.sh init
            Fetching games from ...
            Scraping games ...
            shutdown -r now

            Broadcast message from root@RECALBOX (pts/1) (Mon Jun 12 13:43:10 2017):

            The system is going down for reboot NOW!

            Substring 1 Reply Last reply Reply Quote 0
            • Substring
              Substring @Anon last edited by

              @Anon still the same problem ? Have you edited the moonlight.conf file ?

              Former dev - Please reply with @substring so that i am notified when you answer me
              Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

              Anon 1 Reply Last reply Reply Quote 0
              • Anon
                Anon @Substring last edited by Anon

                @Substring Isn't a full blackscreen anymore, it has the recalbox footer and stays black. But yes, config should be standard:

                ##Hostname or IP-address of host to connect to
                ##By default host is autodiscovered using mDNS
                #address =

                ##Video streaming configuration
                width = 1920
                height = 1080
                fps = 60

                ##Bitrate depends by default on resolution and fps
                ##Set to -1 to enable default
                ##20Mbps (20000) for 1080p (60 fps)
                ##10Mbps (10000) for 1080p or 60 fps
                ##5Mbps (5000) for lower resolution or fps
                bitrate = -1

                ##Size of network packets should be lower than MTU
                #packetsize = 1024

                ##Default started application on host
                #app = Steam

                ##Default used mapping for streaming
                ##Searched for in $XDG_DATA_DIRS/moonlight or /usr/share/moonlight and /usr/local/share/moonlight
                ##Mapping can also be user overrided in $XDG_CONFIG_DIR/moonlight or ~/.config/moonlight or current directory
                #mapping = mappings/default.conf

                ##Enable selected input devices
                ##By default all available input devices should be used
                ##Only evdev devices /dev/input/event* are allowed
                ##To use a different mapping then default another mapping should be declared above the input
                #input = /dev/input/event1

                ##Let GFE change graphical game settings for optimal performance and quality
                sops = true

                ##Play audio on host instead of streaming to client
                #localaudio = false

                ##Select audio device to play sound on
                #audio = sysdefault

                ##Select the audio and video decoder to use
                ##default - autodetect
                ##omx - hardware video decoder for Raspberry Pi
                ##imx - hardware video decoder for i.MX6 devices
                ##sdl - software decoder
                ##fake - save to file (only available in debug builds)
                platform = default

                ##Directory to store encryption keys
                ##By default keys are stored in $XDG_CACHE_DIR/moonlight or ~/.cache/moonlight
                keydir = /recalbox/share/system/configs/moonlight/keydir

                ##Load additional configuration files
                #config = /path/to/config

                1 Reply Last reply Reply Quote 0
                • Substring
                  Substring last edited by

                  I'm clueless ... Woumd need to manually launch moonlight

                  Former dev - Please reply with @substring so that i am notified when you answer me
                  Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                  Anon 1 Reply Last reply Reply Quote 0
                  • Anon
                    Anon @Substring last edited by

                    @Substring Mh, I will try some things then. What do you mean with "Woumd need to manually launch moonlight"?

                    Substring 1 Reply Last reply Reply Quote 0
                    • Substring
                      Substring @Anon last edited by

                      @Anon I need you to start moonlight the way recalbox does it so that we can check the output of moonlight.

                      Former dev - Please reply with @substring so that i am notified when you answer me
                      Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                      Anon 2 Replies Last reply Reply Quote 0
                      • Anon
                        Anon @Substring last edited by

                        @Substring Hey, not quite sure what you mean. Mind explaining?

                        What I did now was editing the Moonlight conf, set a bitrate of 50000 and set the platform to "pi", sops to false.
                        I installed the newest drivers from a few days ago and installed GFE 3.1.2.31, cleaned everything and paired with still the same result.

                        The only error output when launching is:
                        Failed to initialize libcec interface

                        The rest is just a mass spam of:
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet after queue overgrowth
                        Returning RTP packet after queue overgrowth
                        Network dropped end of a frame
                        Returning RTP packet after queue overgrowth
                        Network dropped end of a frame
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet after queue overgrowth
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long
                        Returning RTP packet after queue overgrowth
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Waiting for IDR frame
                        IDR frame request sent
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Returning RTP packet queued for too long
                        Waiting for IDR frame
                        Waiting for IDR frame
                        IDR frame request sent
                        Returning RTP packet queued for too long
                        Network dropped middle of a frame
                        Returning RTP packet queued for too long

                        It's still just the recalbox footer in a black screen with sound.

                        Substring 1 Reply Last reply Reply Quote 0
                        • Anon
                          Anon @Substring last edited by

                          @Substring Some more research:

                          [ 188.20] : HOME=/recalbox/share/system LC_ALL="de_DE.UTF-8" SDL_VIDEO_GL_DRIVER=/usr/lib/libGLESv2.so SDL_NOMOUSE=1 /usr/bin/emulationstation; [ -f /tmp/shutdown.please ] && (shutdown -h now);[ -f /tmp/reboot.please ] && (shutdown -r now)
                          ['/usr/bin/moonlight', 'stream', '-config', '/recalbox/share/system/configs/moonlight/moonlight.conf', '-mapping', '/recalbox/share/system/configs/moonlight/mappingP3.conf', '-input', '/dev/input/event2', '-mapping', '/recalbox/share/system/configs/moonlight/mappingP2.conf', '-input', '/dev/input/event1', '-mapping', '/recalbox/share/system/configs/moonlight/mappingP1.conf', '-input', '/dev/input/event0', '-app', 'Dolphin']
                          ---- recalbox-config.sh ----

                          1 Reply Last reply Reply Quote 0
                          • Substring
                            Substring @Anon last edited by

                            @Anon Please make a support archive https://github.com/recalbox/recalbox-os/wiki/Recalbox-support-(EN) and upload it somewhere so that i can check some logs

                            Former dev - Please reply with @substring so that i am notified when you answer me
                            Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                            Anon 1 Reply Last reply Reply Quote 0
                            • Anon
                              Anon @Substring last edited by

                              @Substring Thx! http://www75.zippyshare.com/v/OfFpGfAB/file.html

                              Substring 1 Reply Last reply Reply Quote 0
                              • Substring
                                Substring @Anon last edited by

                                @Anon Sorry for the late reply ...
                                Does this happen only with Dolphin ? You'd better try wihth some supported Steam games first.

                                Anyway, what I was looking for is the command : '/usr/bin/moonlight stream -config /recalbox/share/system/configs/moonlight/moonlight.conf -mapping /recalbox/share/system/configs/moonlight/mappingP3.conf -input /dev/input/event2 -mapping /recalbox/share/system/configs/moonlight/mappingP2.conf -input /dev/input/event1 -mapping /recalbox/share/system/configs/moonlight/mappingP1.conf -input /dev/input/event0 -app 'Call of Duty: Advanced Warfare Multiplayer' : launch it, and give me its output

                                I'd also need the output of /recalbox/scripts/moonlight/Moonlight.sh list

                                Former dev - Please reply with @substring so that i am notified when you answer me
                                Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                Anon 1 Reply Last reply Reply Quote 0
                                • Anon
                                  Anon @Substring last edited by

                                  @Substring

                                  /recalbox/scripts/moonlight/Moonlight.sh list
                                  Moonlight Embedded 2.2.2 (EMBEDDED;CEC;PI)
                                  Too many options: No such file or directory
                                  Moonlight Embedded 2.2.2 (EMBEDDED;CEC;PI)
                                  Searching for server...
                                  Connect to 192.168.178.21...
                                  NVIDIA GeForce GTX 770, GFE 3.1.2.31 (protocol version 7)

                                  1. Dolphin
                                  2. Cemu
                                  3. Orcs Must Die! 2
                                  4. DOTA 2
                                  5. Saints Row IV (DX 11)
                                  6. Tom Clancy's Rainbow Six Siege
                                  7. Counter Strike: Global Offensive
                                  8. PAYDAY 2
                                  9. Diablo III
                                  10. The Elder Scrolls V: Skyrim
                                  11. Grand Theft Auto V
                                  12. Steam
                                  13. 战舰世界
                                  14. Watch_Dogs 2
                                  15. Paragon
                                  16. Team Fortress 2
                                  17. Minecraft
                                  18. Call of Duty: Advanced Warfare Multiplayer
                                  19. Overwatch
                                  20. Heroes of the Storm
                                  21. Warframe
                                  22. Diablo III
                                  23. Arma 3
                                  24. Ghost Recon® Wildlands
                                  25. Overwatch
                                  26. Call of Duty: Advanced Warfare

                                  /usr/bin/moonlight stream -config /recalbox/share/system/configs/moonlight/moonlight.conf -mapping /recalbox/share/system/configs/moonlight/mappingP3.conf -input /dev/input/event2 -mapping /recalbox/share/system/configs/moonlight/mappingP2.conf -input /dev/input/event1 -mapping /recalbox/share/system/configs/moonlight/mappingP1.conf -input /dev/input/event0 -app 'Call of Duty: Advanced Warfare Multiplayer'
                                  Moonlight Embedded 2.2.2 (EMBEDDED;CEC;PI)
                                  Searching for server...
                                  Connect to 192.168.178.21...
                                  NVIDIA GeForce GTX 770, GFE 3.1.2.31 (protocol version 7)
                                  Add input /dev/input/event2 (mapping /recalbox/share/system/configs/moonlight/mappingP3.conf)...
                                  Add input /dev/input/event1 (mapping /recalbox/share/system/configs/moonlight/mappingP2.conf)...
                                  Add input /dev/input/event0 (mapping /recalbox/share/system/configs/moonlight/mappingP1.conf)...
                                  libcec.so.3: cannot open shared object file: No such file or directory
                                  libcec.so.3: cannot open shared object file: No such file or directory
                                  Failed to initialize libcec interface
                                  Stream 1920 x 1080, 60 fps, 50000 kbps
                                  Initializing platform...done
                                  Resolving host name...done
                                  Starting RTSP handshake...done
                                  Initializing control stream...done
                                  Initializing video stream...done
                                  Initializing audio stream...done
                                  Initializing input stream...done
                                  Starting control stream...done
                                  Starting video stream...done
                                  Starting audio stream...done
                                  Starting input stream...done
                                  Returning RTP packet after queue overgrowth
                                  Network dropped middle of a frame
                                  Returning RTP packet after queue overgrowth
                                  Returning RTP packet after queue overgrowth
                                  Returning RTP packet after queue overgrowth
                                  Returning RTP packet after queue overgrowth
                                  Returning RTP packet queued for too long

                                  Just a black screen with recalbox footer.

                                  1 Reply Last reply Reply Quote 0
                                  • Substring
                                    Substring last edited by

                                    Are you running this over LAN or WiFi ? (don't use wifi ...)

                                    Do you have moonlight on your phone ? does the same problem happen ?

                                    Former dev - Please reply with @substring so that i am notified when you answer me
                                    Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

                                    Anon 1 Reply Last reply Reply Quote 0
                                    • Anon
                                      Anon @Substring last edited by

                                      @Substring It's wired. Phone works fine.. didn't think about that lol. So it must be the Pi...

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post

                                      Want to support us ?

                                      83
                                      Online

                                      99.7k
                                      Users

                                      28.1k
                                      Topics

                                      187.1k
                                      Posts

                                      Copyright © 2021 recalbox.com