Giter Site home page Giter Site logo

dji-rtmp's Introduction

dji-rtmp

This is a simple container that lets you stream a dji drone to an rtmp endpoint. Run this container inside of an EC2 instance in AWS.

If you tell the drone to stream to this address, where the hostname is something you actually own, like an EC2 instance, rtmp://mydjidrone.rfielding.com:1935/live/a, then port 1935 is expected to be this nginx server (it is NOT http or https on this rtmp port!). The drone will stream to it if your mobile device DJI app is running, and you select a custom live stream with that URL.

The next step to simply test it:

  • On OSX, I had to use an old version of VLC to see rtmp streams correctly. I installed VLC 2.2.4, and was able to read from the rtmp url.
  • Once VLC works, you know that RTMP streaming from the drone works. Next, you can use ffmpeg command-lines to convert these streams into mp4 files.

For example, to extract the currently streaming 1MB off of a stream, you can run this:

ffmpeg -i rtmp://mydjidrone.rfielding.com:1935/live/a -fs 1000000 flight.mp4

There are more complicated commands you can run with ffmpeg to segment the video.

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.