Skip to content

Latest commit

 

History

History
executable file
·
47 lines (34 loc) · 1.44 KB

README.md

File metadata and controls

executable file
·
47 lines (34 loc) · 1.44 KB

Tello Streaming

This directory contains the instructions for viewing the streaming video from a Tello drone in the browser.

Prerequisites

  1. Install Node.js
  2. Install FFmpeg
  3. Clone this repository
    $ git clone https://github.com/johnwalicki/Node-RED-DroneViewer
    
  4. Change to the telloview directory
    $ cd Node-RED-DroneViewer/telloview
    
  5. Install dependencies
    $ npm install
    

Run

  1. Connect computer to Tello drone WiFi

  2. In a terminal window, start the server in the telloview directory

    $ npm start
    
  3. Open a browser and go to http://localhost:3000/.

  4. Click start stream in the Node-RED Dashboard

You should now see a live feed from Tello drone in the browser window!

Notes

telloSDK.js is a Node.js application which accesses the Tello drone, and sends commands to the Tello.

server.js is a Node.js/express application which listens for incoming video stream and broadcasts to clients connected via websocket. It triggers the Tello video streaming, captures the video stream, uses FFmpeg to convert the video (to MPEG-TS) and re-streams it to an HTTP endpoint.

embedded.js is the frontend JS which establishes a websocket connection to the server and uses jsmpeg to decode the video.

Links