fpv-wtf / dji-moonlight-embedded Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
Not sure if this is possible as is but I'm curious if we can do something like this:
Use HDMI -> MIPI Adapter for raspberry pi (Amazon Link)
Stream HDMI input to shim
This would give actual HDMI input - though with a bit more latency.
We could then use Raspberry Pi Zero 2 or similar to make a small box to input HDMI over USB-C
Awesome Work Either Way!
Recently after updating Windows, the gui app stopped working completely. Trying to debug what happened, I tried running the moonlight.exe
program in the terminal.
./moonlight.exe -debug true help
./moonlight.exe -platform dji_net stream -app velocidrone -fps 120 -bitrate 500000
All exits immediately without any output. Not sure how to debug this further.
OS: Windows 11 23H2, build 22631.2861
Hello, is it possible to run Arch Linux, namely on Stem Deck.
I tried to execute commands but error in "asm/socket.h"
sudo pacman -S base-devel cmake curl openssl libusb git
git clone https://github.com/fpv-wtf/dji-moonlight-embedded.git
cd dji-moonlight-embedded
git submodule update --init --recursive
cmake .
make
"[ 1%] Building C object libgamestream/CMakeFiles/moonlight-common.dir//third_party/moonlight-common-c/enet/callbacks.c.o
In the file included in /usr/include/sys/socket.h:33,
from /home/deck/dji-moonlight-embedded/libgamestream/../third_party/moonlight-common-c/enet/include/enet/unix.h:11,
from /home/deck/dji-moonlight-embedded/libgamestream/../third_party/moonlight-common-c/enet/include/enet/enet.h:18,
from /home/deck/dji-moonlight-embedded/third_party/moonlight-common-c/enet/callbacks.c:6:
/usr/include/bits/socket.h:385:11: fatal error: asm/socket.h: No such file or directory
385 | # include <asm/socket.h>
| ^~~~~~~~~~~~~~
compilation aborted.
make[2]: *** [libgamestream/CMakeFiles/moonlight-common.dir/build.make:76: libgamestream/CMakeFiles/moonlight-common.dir//third_party/moonlight-common-c/enet/callbacks.c.o ] Error 1
make[1]: *** [CMakeFiles/Makefile2:129: libgamestream/CMakeFiles/moonlight-common.dir/all] Error 2
make: *** [Makefile:136: all] Error 2"
I have the Moonlight shim installed on my rooted Goggles V2 and connected to my PC (on the shim screen), and Sunshine is running. After pairing this fork to Sunshine, running sudo ./moonlight stream -app 'Desktop' -1080 -fps 60 -localaudio -viewonly -packetsize 1000000
errors after establishing a connection. Any thoughts? Thanks!
Full log from moonlight:
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...Reference frame invalidation is not supported by this host
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_usb: 1920 x 1080 @ 60 FPS
dji_usb: context = (nil)
dji_usb: drFlags = 0x1
unable to set configuration: (-6) Resource busy
Log from Sunshine:
[2023:06:11:12:11:51]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:06:11:12:11:51]: Info: Trying encoder [nvenc]
[2023:06:11:12:11:51]: Info: Screencasting with X11
[2023:06:11:12:11:51]: Info: Configuring selected monitor (4) to stream
[2023:06:11:12:11:51]: Info: Streaming display: HDMI-0 with res 1920x1080 offset by 0x0
[2023:06:11:12:11:51]: Info: SDR color coding [Rec. 601]
[2023:06:11:12:11:51]: Info: Color range: [JPEG]
[2023:06:11:12:11:51]: Error: Failed to create a CUDA device: Operation not supported
[2023:06:11:12:11:51]: Info: Screencasting with X11
[2023:06:11:12:11:51]: Info: Configuring selected monitor (4) to stream
[2023:06:11:12:11:51]: Info: Streaming display: HDMI-0 with res 1920x1080 offset by 0x0
[2023:06:11:12:11:51]: Info: SDR color coding [Rec. 601]
[2023:06:11:12:11:51]: Info: Color range: [JPEG]
[2023:06:11:12:11:51]: Error: Failed to create a CUDA device: Operation not supported
[2023:06:11:12:11:51]: Info: Encoder [nvenc] failed
[2023:06:11:12:11:51]: Info: Trying encoder [vaapi]
[2023:06:11:12:11:51]: Info: Screencasting with X11
[2023:06:11:12:11:51]: Info: Configuring selected monitor (4) to stream
[2023:06:11:12:11:51]: Info: Streaming display: HDMI-0 with res 1920x1080 offset by 0x0
[2023:06:11:12:11:51]: Error: Couldn't initialize EGL display: [00003008]
[2023:06:11:12:11:51]: Info: Screencasting with X11
[2023:06:11:12:11:51]: Info: Configuring selected monitor (4) to stream
[2023:06:11:12:11:51]: Info: Streaming display: HDMI-0 with res 1920x1080 offset by 0x0
[2023:06:11:12:11:51]: Error: Couldn't initialize EGL display: [00003008]
[2023:06:11:12:11:51]: Info: Encoder [vaapi] failed
[2023:06:11:12:11:51]: Info: Trying encoder [software]
[2023:06:11:12:11:51]: Info: Screencasting with X11
[2023:06:11:12:11:51]: Info: Configuring selected monitor (4) to stream
[2023:06:11:12:11:51]: Info: Streaming display: HDMI-0 with res 1920x1080 offset by 0x0
[2023:06:11:12:11:51]: Info: SDR color coding [Rec. 601]
[2023:06:11:12:11:51]: Info: Color range: [JPEG]
[2023:06:11:12:11:51]: Info:
[2023:06:11:12:11:51]: Info: // Ignore any errors mentioned above, they are not relevant. //
[2023:06:11:12:11:51]: Info:
[2023:06:11:12:11:51]: Info: Found encoder software: [libx264]
[2023:06:11:12:11:51]: Info: CLIENT CONNECTED
[2023:06:11:12:11:57]: Info: CLIENT DISCONNECTED
[2023:06:11:12:12:01]: Error: Initial Ping Timeout
[2023:06:11:12:12:01]: Error: Initial Ping Timeout
I was wondering if there is anyway to port the GUI for a Mac? I ran the Windows exe on my VM, but it couldn't read and connect to the port my goggles were connected to.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.