Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DUSS26DISPSRVE: Invalid argument on goggles V1 #1

Open
singlag opened this issue Jan 14, 2023 · 10 comments
Open

DUSS26DISPSRVE: Invalid argument on goggles V1 #1

singlag opened this issue Jan 14, 2023 · 10 comments

Comments

@singlag
Copy link

singlag commented Jan 14, 2023

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

@Knifa
Copy link
Collaborator

Knifa commented Jan 15, 2023

Probably from this --- assumes v2.

https://github.com/Knifa/dji-moonlight-shim/blob/45bd382165dc61e3cb21c5bb6b02222c406938da/src/gfx.c#L50

Pushed a fix now.

e649656

@singlag
Copy link
Author

singlag commented Jan 15, 2023

Probably from this --- assumes v2.

https://github.com/Knifa/dji-moonlight-shim/blob/45bd382165dc61e3cb21c5bb6b02222c406938da/src/gfx.c#L50

Pushed a fix now.

e649656

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

@NiklasVoigt
Copy link

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

@Knifa
Copy link
Collaborator

Knifa commented Jan 16, 2023

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

@Knifa
Copy link
Collaborator

Knifa commented Jan 16, 2023

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

@NiklasVoigt
Copy link

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>

@Knifa
Copy link
Collaborator

Knifa commented Jan 16, 2023

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.

@NiklasVoigt
Copy link

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
vlcsnap-2023-01-16-14h30m11s444

@singlag
Copy link
Author

singlag commented Jan 16, 2023

@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

@singlag
Copy link
Author

singlag commented Jan 20, 2023

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants