Home
Softono

Multiple Camera Stream

Open source Python
101
Stars
39
Forks
2
Issues
3
Watchers
7 years
Last Commit

 About Multiple Camera Stream

Multiple Camera CCTV/RTSP/Video Streaming with Flask and OpenCV

Platforms

Web Self-hosted

Languages

Python

Links

Need Help Installing Multiple Camera Stream?

We provide expert installation service for this software. Our team will install, configure, and secure Multiple Camera Stream on your server. plans start at just $30.

Multiple Camera Stream

View on GitHub

Multiple CCTV/RTSP Streaming with Flask and Open-CV

pip install -r requirements.txt

Run Server

app.py

Use Built-in Webcam of Laptop

Put Zero (O) in cv2.VideoCapture(0)
cv2.VideoCapture(0)

Use Ip Camera/CCTV/RTSP Link

cv2.VideoCapture('rtsp://username:password@camera_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')  

Example RTSP Link

cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=0_stream=0.sdp')

Change Channel Number to Change the Camera

cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=1_stream=0.sdp')

Display the resulting frame in browser

cv2.imencode('.jpg', frame)[1].tobytes()                 

Credit

Learn More about Streaming with flask