Coder Social home page Coder Social logo

dji-moonlight-embedded's People

Contributors

aandaluz avatar areascout avatar camalolo avatar cgutman avatar darsto avatar dead avatar derekroy avatar georgcmef avatar hhromic avatar howels avatar irtimmer avatar j005u avatar jaykass avatar kiralycraft avatar kkoshelev avatar knifa avatar kszaq avatar mariotaku avatar migs3 avatar mjbogusz avatar mrcapone avatar othercrashoverride avatar posti85 avatar rtissera avatar runoshun avatar sauyon avatar tezcatli avatar thechoconut avatar tomblind avatar yanateras avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

singlag howels

dji-moonlight-embedded's Issues

Feature Request: Stream CSI input to shim

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!

Program immediately exits without any output on Windows 11

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

Arch Linux Support for DJI Moonlight GUI

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"

[Linux] unable to set configuration: (-6) resource busy

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

Mac Support for DJI Moonlight GUI

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.