Open singlag opened 1 year ago
Probably from this --- assumes v2.
Pushed a fix now.
https://github.com/Knifa/dji-moonlight-shim/commit/e64965630b066c1fe0f6b9f00e8fc51d753872d2
Probably from this --- assumes v2.
Pushed a fix now.
It work, but have huge delay (more than 2 seconds..) , is it normal ?
Got connect header: 1280 x 720 @ 60 FPS Connection closed
--- [dji-moonlight-embedded] --- Windows 10 64bit + WSL ubuntu / geforce gtx1070 moonlight stream -platform dji -localaudio 192.168.1.55 Connecting to 192.168.1.55... RTSP port: 48010 Initializing platform...done Resolving host name...done Initializing audio stream...done Starting RTSP handshake...Audio port: 48000 Video port: 47998 Control port: 47999 done Initializing control stream...done Initializing video stream...done Initializing input stream...done Starting control stream...done Starting video stream...dji: 1280 x 720 @ 60 FPS dji: context = (nil) dji: drFlags = 0x1 dji: Connecting to 192.168.42.5:42069... dji: Connected! done Starting audio stream...done Starting input stream...done Received first audio packet after 0 ms Initial audio resync period: 500 milliseconds Received first video packet after 0 ms dji frameNumber: 1, frameType: 1, fullLength: 4321 dji_submit_decode_unit: buff = 0x7f76f8000b70, length = 4321 dji frameNumber: 2, frameType: 0, fullLength: 1916 dji_submit_decode_unit: buff = 0x7f76f8000b70, length = 1916 dji frameNumber: 3, frameType: 0, fullLength: 534 dji_submit_decode_unit: buff = 0x7f76f8000b70, length = 534 dji frameNumber: 4, frameType: 0, fullLength: 348 dji_submit_decode_unit: buff = 0x7f76f8000d90, length = 348 dji frameNumber: 5, frameType: 0, fullLength: 337 dji_submit_decode_unit: buff = 0x7f76f8000f00, length = 337 . . . dji frameNumber: 421, frameType: 0, fullLength: 14877 dji_submit_decode_unit: buff = 0x7f76f8005a40, length = 14877 dji frameNumber: 422, frameType: 0, fullLength: 15197 dji_submit_decode_unit: buff = 0x7f76f8005a40, length = 15197 Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Server notified termination reason: 0x80030023 Connection has been terminated gracefully. Stopping input stream...done Stopping audio stream...done Stopping video stream...Failed to send ENet control packet Loss Stats: Transaction failed: 11 done Stopping control stream...ENet peer is already disconnected done Cleaning up input stream...done Cleaning up video stream...done Cleaning up control stream...done Cleaning up audio stream...done Cleaning up platform...done
same with v2, tested with your package from discord
130|root@pigeon_wm170_gls:/ # dji-moonlight-shim WARNING: linker: ./dji-moonlight-shim: unsupported flags DT_FLAGS_1=0x8000001 2023-01-16 12:53:55.863 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10 2023-01-16 12:53:56.904 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10 2023-01-16 12:53:57.943 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10
same with v2, tested with your package from discord
130|root@pigeon_wm170_gls:/ # dji-moonlight-shim WARNING: linker: ./dji-moonlight-shim: unsupported flags DT_FLAGS_1=0x8000001 2023-01-16 12:53:55.863 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10 2023-01-16 12:53:56.904 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10 2023-01-16 12:53:57.943 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10
As in, you're also seeing bad latency? These messages are annoying but ignorable otherwise. 👍
@singlag can you try the packages in Discord/latest main branches? There was a delay trying to grab the packets that was giving me latency too but it's gone now. 💪
same with v2, tested with your package from discord 130|root@pigeon_wm170_gls:/ # dji-moonlight-shim WARNING: linker: ./dji-moonlight-shim: unsupported flags DT_FLAGS_1=0x8000001 2023-01-16 12:53:55.863 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10 2023-01-16 12:53:56.904 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10 2023-01-16 12:53:57.943 1430 1431 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10
As in, you're also seeing bad latency? These messages are annoying but ignorable otherwise. 👍
I can't connect at all (fpv.wtf cli and adb).
130|root@pigeon_wm170_gls:/ # dji-moonlight-shim
WARNING: linker: ./dji-moonlight-shim: unsupported flags DT_FLAGS_1=0x8000001
2023-01-16 14:14:22.468 1828 1829 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10
2023-01-16 14:14:23.507 1828 1829 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10
2023-01-16 14:14:24.547 1828 1829 DUSS26 :DISPSRVE: icc peek failed for 0 time for cmd id: 10
^Croot@pigeon_wm170_gls:/ #
PS C:\Users\Niklas\Desktop\dji-moonlight-embedded-cygwin> .\moonlight.exe pair
No host address specified. Using 127.0.0.1
Connecting to 127.0.0.1...
Can't connect to server 127.0.0.1
PS C:\Users\Niklas\Desktop\dji-moonlight-embedded-cygwin>
Do you have Moonlight/Gamestream configured on your PC? https://github.com/moonlight-stream/moonlight-stream.github.io
The PC-side message means it's not been able to connect to that.
oh haha, i only followed your readme. with sunshine started it works really nice, really hard to tell how high the latency is.. somewhere < 10ms
@singlag can you try the packages in Discord/latest main branches? There was a delay trying to grab the packets that was giving me latency too but it's gone now. 💪
seem not work, still 1-2second delay (nvidia Gamestream) a bit faster with sunshine, no lag with desktop/chrome, but still lag with Steam big desktop and games
./moonlight.exe stream -app Steam No host address specified. Using 127.0.0.1 Connecting to 127.0.0.1... RTSP port: 48010 Initializing platform...done Resolving host name...done Packet size capped at 1KB for remote streaming Initializing audio stream...done Starting RTSP handshake...Audio port: 48000 Video port: 47998 Control port: 47999 done Initializing control stream...done Initializing video stream...done Initializing input stream...done Starting control stream...done Starting video stream...dji: 1440 x 810 @ 120 FPS dji: context = 0x0 dji: drFlags = 0x1 dji: Connecting to 192.168.42.5:42069... dji: Connected! done Starting audio stream...Received first audio packet after 0 ms Initial audio resync period: 500 milliseconds done Starting input stream...done Received first video packet after 0 ms Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Waiting for IDR frame Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Waiting for IDR frame Video decode unit queue overflow IDR frame request sent Waiting for IDR frame Video decode unit queue overflow IDR frame request sent Waiting for IDR frame Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent Waiting for IDR frame Video decode unit queue overflow IDR frame request sent Video decode unit queue overflow IDR frame request sent . . . Server notified termination reason: 0x80030023 Connection has been terminated gracefully. Stopping input stream...done Stopping audio stream...done Stopping video stream...Failed to send ENet control packet Loss Stats: Transaction failed: 11 done Stopping control stream...ENet peer is already disconnected done Cleaning up input stream...done Cleaning up video stream...done Cleaning up control stream...done Cleaning up audio stream...done Cleaning up platform...done
./adb shell root@pigeon_wm150_gls:/ # dji-moonlight-shim WARNING: linker: ./dji-moonlight-shim: unsupported flags DT_FLAGS_1=0x8000001 Got connect header: 1440 x 810 @ 120 FPS Connection closed
tried force -720 -fps 60, but no different
some update on V1: run as "moonlight.exe" stream -app "Desktop" -fps 60 -bitrate 50000" have no error, no delay (-bitrate 75000 sometime will show frame too big) "laggy" feel at full screen gaming but smooth if set to windowed mode, game running stable at 120fps...
-fps 120 will keeping showing "Video decode unit queue overflow IDR frame request sent"
firmware version : 01.00.0606
root@pigeon_wm150_gls:/opt/moonlight # setprop persist.dji.storage.exportable 0 root@pigeon_wm150_gls:/opt/moonlight # setprop dji.glasses_wm150_service 0 root@pigeon_wm150_gls:/opt/moonlight # cd /opt/moonlight; LD_LIBRARY_PATH=/opt/moonlight ./dji-moonlight-shim
WARNING: linker: ./dji-moonlight-shim: unsupported flags DT_FLAGS_1=0x8000001 DUSS26DISPSRVE: Invalid argument