Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supersjgk/livestream-webrtc-flask-opencv
A simple Live Streaming Flask app that uses WebRTC (aiortc) and OpenCV
https://github.com/supersjgk/livestream-webrtc-flask-opencv
aiortc flask live-streaming livestream opencv python3 webrtc
Last synced: 29 days ago
JSON representation
A simple Live Streaming Flask app that uses WebRTC (aiortc) and OpenCV
- Host: GitHub
- URL: https://github.com/supersjgk/livestream-webrtc-flask-opencv
- Owner: supersjgk
- Created: 2024-02-09T02:18:11.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-09-09T07:35:06.000Z (4 months ago)
- Last Synced: 2024-09-10T06:39:56.448Z (4 months ago)
- Topics: aiortc, flask, live-streaming, livestream, opencv, python3, webrtc
- Language: JavaScript
- Homepage: https://medium.com/@supersjgk/building-a-live-streaming-app-using-flask-opencv-and-webrtc-8cc8b521fa44
- Size: 13.7 KB
- Stars: 26
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LiveStream-WebRTC-Flask-OpenCV
## New version in progress...
## Previous version :
**My [medium story](https://medium.com/@supersjgk/building-a-live-streaming-app-using-flask-opencv-and-webrtc-8cc8b521fa44) contains the following:**
* The detailed tutorial on how to build this app from scratch.
* How to customize the app for your own needs.
* Instructions to follow.
* Troubleshooting tips.#### Prerequisistes
* Webcam/ IP camera
* A server machine and a client machine (smartphone, pc, etc.) connected to the same network.`pip install Flask`
`pip install opencv-python-headless`
`pip install aiortc`
#### To run
* Server Side`git clone https://github.com/supersjgk/LiveStream-WebRTC-Flask-OpenCV`
`cd src`
`python server.py` OR `python3 server.py`
* Client Side
To view the live stream from a Server's webcam/IP camera in a client machine, simply open a web browser and type `http://127.0.0.1:/` (client on same machine) OR `http://:/` (client on different machine).#### Note
* Camera access should be enabled on Server
* Client machine should be connected to the same network as the server machine.
* Set host and port according to your needs. Port should not be running any other processes (details to fix conflicting ports in story)