Code Monkey home page Code Monkey logo

di-stream's Introduction

Di-Stream

First Software that allows to stream multiple DJI Goggles!

Just run the Software and plug in all your DJI Goggles in the available USB Ports of your Computer!


Made by Racers for Racers! ;)


                                                   @ ,_                          
                                                   * ..                          
                             *.                   %_/_                        ,% 
                            .*%                   &%_                  (/  @     
                             @&%@_(///,,,//.   (&@&((,.  .....,,,,,*,*&&@.       
                       ((   @@%(@@           *&&&&&&%%%&(          **@%%&&&&*    
                            _&&@@&_         @&&&&&&_ @@/             @@&%%@/   **
                             *&&&@&%&,     &&&&&&&&@%((/      _&%&&&%&&&@**      
                                   &&&&@&@__%@%__@%&/% (%%%%&&%&&*               
                                      *%/___%_&%&@%%%_%&%&%                      
             */(                      (%______(@@&%%@@.                //,,,     
             ,/(,                  ,@%%*@%%%%__&@&%&_%            /_(/*,.        
            ._(%%&@@%&@@&%%%%____@&%@&%(&&@%&&_@@@&&&@&&@     .@&@%_&            
       /*,,,*@&&%@@%(@%,,&&_%%@.     @@_@@@@&@@     /%%@@&&&_*@&@@*%            
   *.,.,    /_/(@/&&__%&(           .,,,%%(._.          &&%&,&_&&@__*/         
 *,         ,&&@%,.,                                        @@@%@@@**/*         
            *,//*.                                           ,.%%**             

๐Ÿด Prerequisites

Made withJavascript

The following open source packages are used in this project:

  • ffmpeg

๐Ÿ“– Table of Contents

Let's Go!

-----------------------------------------------------

1. Download Binary

https://github.com/Di-Stream/Di-Stream/releases

------------------------------------------------------

2. Install

Windows:

ffmpeg

Download Essentials from here:
https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-essentials.7z

Unzip it and move it to your favourite program folder.
Add System Path Variable:

For example:

C:\> setx /M path "%PATH%;C:\Users\fritz\Downloads"

LibUSB

That the goggles can be dedected properly, you need to install libusb driver.
Use Zadig driver installer und follwing instructions:

Install LibUSB Driver

  1. Download, install, and run Zadig.
  2. Power the goggles and connect them to the computer.
  3. In Zadig, select 'List All Devices' from the 'Options' men.
  4. Find the 'BULK Interface' device. It won't have a driver installed.
  5. Install the 'WinUSB' driver for this interface. It might take a while.

Linux:

ffmpeg

Install ffmpeg with following code:

sudo apt install ffmpeg

LibUSB

sudo apt install libusb-1.0-0

-----------------------------------------------------

3. Use

Windows:

  • Run the .exe

Linux:

  • Go to folder where the Di-Stream binary is
  • Run:
sudo chmod +x ./di-stream-linux
sudo ./di-stream-linux

-----------------------------------------------------

4. Software Behavior

Di-Stream Software will start a Node process for each goggles. The Goggles can be found at:

127.0.0.1:PORT

First Goggles has Port 1230

Second Goggles has Port 1231 ect...

The Di-Stream Software will automaticly search for new Goggles and will open a UDP Stream on the next free Port. Available Ports are:

1230 - 1237 8 Goggles!

If a Goggles accidently disconnects, the Goggles will get the same Port when resumed pluged in.

Custom Ports can be createt in the StreamProcess.js file

-----------------------------------------------------

5. OBS

In OBS add new Media device and uncheck de only local Media Box.
Now put your goggles adress in the input section and you are ready to go.

-----------------------------------------------------

6. Yargs

Following Commands can be used:

    --version    Version anzeigen                                     [boolean]
-p, --port       sets the starting Port (default: 1230)               [string]
-a, --address    sets the base address (default: 127.0.0.1)           [boolean]
-s, --readsize   readsize (default: 512)                              [Zahl]
-q, --queuesize  queuesize (default: 3)                               [Zahl]
-v, --verbose    shows debug log                                      [boolean]
-h, --help       Hilfe anzeigen                                       [boolean]

For example:

./di-stream-linux --port 1000

-----------------------------------------------------

7. License

Content is released under CC-BY-4.0. See notices for complete details, including attribution guidelines, contribution terms, and software and third-party licenses and permissions.

-----------------------------------------------------

8. Contributors

This README was created with โค

di-stream's People

Contributors

bischoffjeremy avatar neilschuerch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jenpatrick

di-stream's Issues

Program crashing on goggle detection/just not working

I followed the instructions for installing and running di-stream. I downloaded the executable. Got FFmpeg and extracted it to my program files on my D drive, set the registry path to that location and I have the right winusb driver on them from zadig for the bulk interface. Whenever I run the program it runs fine, but the moment I connect my goggles it shuts down the program, or at least looks like it is crashing. After further inspection, I noticed that I had a node.js running in the details on my task manager but I could not get the udp://127.0.0.1:1230 to be opened in obs or vlc media player. Please let me know if this is something I am doing wrong.

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.