/Real-Time-Video-Streaming-with-WebRTC-and-Python

Learn how to stream camera frames in real-time from one machine to another using WebRTC and Python. This repo walks you through setting up WebRTC with Python, capturing video with OpenCV, and establishing peer-to-peer connections

Primary LanguagePython

Real-Time Video Streaming with WebRTC and Python

Introduction

This repository contains the source code for streaming camera frames in real-time from one machine to another using WebRTC and Python. The project demonstrates setting up a WebRTC connection and capturing video frames with OpenCV.

Features

  • Real-time video streaming
  • Peer-to-peer communication using WebRTC
  • Simple signaling server setup
  • Python implementation using aiortc and OpenCV

Prerequisites

Before you begin, ensure you have the following installed:

  • Python 3.x
  • Pip (Python package manager)

Installation

  1. Clone the repository:

    git clone https://github.com/eknathmali/Real-Time-Video-Streaming-with-WebRTC-and-Python.git
    cd Real-Time-Video-Streaming-with-WebRTC-and-Python
  2. Install the required Python packages:

    pip install -r requirements.txt

Usage

Start sender.py on Remote Server:

python sender.py

Start receiver.py on Local Machine:

python receiver.py

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or additions.

Contact

For questions or suggestions, please contact