I have no desktop installed. I normally run it directly from the commandline, and the results from my previous post are using the SSH method you mentioned. Also, I did try removing pulseaudio, but the problems remain. Also, I did some more testing. This time using a normal user account instead of root.meveric wrote:my packages are build WITH pulseaudio support, but it's more likely that puseaudio is causeing the issue and disabling pulseaudio and running moonlight on alsa instead could help here.
also running as root can has some sideeffects, for example pulseaudio does not work per default for root.
xcb_connection error makes me wonder if you run the program from terminal or from desktop, that could mean you run it without an X server, not sure if X is needed though, as for C1 and C2 video runs on a different layer anyway.
First test was without pulseaudio installed and without the -localaudio parameter. The same errors showed up as mentioned before in the similar test with root.
Then I added the -localaudio parameter. The errors were gone after the first launch (and after a reboot), but when restarting the stream caused the same errors to show up again.
Next step was with pulseaudio installed. I did a reboot and started the stream. No alsa/rtp errors this time, with or without the -localaudio parameter. Even after restarting the stream.
However, the following errors keep showing up (and the video stutter problem as well):
Code: Select all
xcb_connection_has_errors() returned true shared memfd open() failed: function not implemented
These two errors show up directly after eachother, and this happens always two times during initialization. Once after the line "Stream 1920x1080, 60 fps, 20000 kbps" and once after "starting video stream...done". I honestly do not know what these two errors mean.
UPDATE: I finished some additional testing. I tried forcing both the host and the C2 to run at 100Mbit Full duplex instead of 1Gb, since I read somewhere that this could also cause lag due to overhead. It didn't make any difference though. Additionally, I tried to use the official image. Clean install, fully up-to-date and only with the packages installed to build and run moonlight (from upstream). Still the same issue as on Armbian and the Debian Stretch image by meveric. It did get rid of two errors mentioned above however, so I guess those weren't the reasons for my issue.
This is the command I tested with:
Code: Select all
moonlight stream -fps 60 -1080 -platform aml -codec h265 -verbose 192.168.10.146
Code: Select all
Moonlight Embedded 2.4.6 (AML;ALSA;PULSE;EMBEDDED) Connect to 192.168.10.146... NVIDIA GeForce GTX 1070, GFE 188.8.131.52 (gs_04_04_23287129, 7.1.404.0) Platform AMLogic VPU Loading mappingfile /usr/local/share//moonlight/gamecontrollerdb.txt No mapping available for cec_input (100000008e1b0000ec0c000001000000) on /dev/input/event2 No mapping available for vt-input (19000000b41600000107000001000000) on /dev/input/event3 Stream 1920 x 1080, 60 fps, 20000 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...OPEN es hevc codec_init amstream version : 2.0 done Starting audio stream...done Starting input stream...done Control stream received disconnect event Loss Stats: Transaction failed: 11 Stopping input stream...done Stopping audio stream...done [codec_close_cntl]video codec close return=0! Stopping video stream...done Stopping control stream...done Cleaning up input stream...done Cleaning up audio stream...done Cleaning up video stream...done Cleaning up control stream...done Cleaning up platform...done