Giter VIP home page Giter VIP logo

dronertc's Introduction

DroneRTC

DroneRTC is a peer-to-peer video communication project to send video feed and messages from drone's camera to ground station using WebRTC

Setup and Installation

1. Clone the repository:

git clone https://github.com/AkashKarnatak/DroneRTC.git

2. Navigate to the project directory:

cd DroneRTC

3. Running webrtc signaling server:

$ export SERVER_PORT=8080
$ node server/app.js

4. Running video client on drone:

$ cd drone/
$ go build
$ export HOST=ws://{server-ip}:{port}
$ # Use ffmpeg to convert video packets from drones camera to rtp
$ ffmpeg  -re -f v4l2 -i /dev/video0 -vcodec libvpx -b:v 2M -r 30  -cpu-used 2 -deadline 1 -g 10 -error-resilient 1 -auto-alt-ref 1 -f rtp 'rtp://127.0.0.1:5004?pkt_size=1200' &
$ # Run the drone client
$ ./drone

5. Running video client on ground station:

Create a file receiver/env.js with the following content,

export const WEBSOCKET_URL = 'ws://{server-ip}:{server-port}'

then launch index.html file.

OR

just visit http://{server-ip}:{SERVER_PORT}, where SERVER_PORT is the port defined above.

Contributing

Contributions are welcome! If you find a bug, have an idea for an enhancement, or want to contribute in any way, feel free to open an issue or submit a pull request.

License

This project is licensed under the AGPL3 License. For details, see the LICENSE file.

dronertc's People

Contributors

akashkarnatak avatar

Stargazers

Pongthangamba Laishram avatar

Watchers

 avatar

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.