Skip to content

akmamun/live-stream-zeromq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Live Streaming with ZeroMQ and Flask Socket Connection

pip install requirements.txt

Run Server

python main.py
python client.py

Now Browse

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:123456@101.134.16.117:554/user=mamun_password=123456_channel=0_stream=0.sdp')

Change Channel Number to Change the Camera

cv2.VideoCapture('rtsp://mamun:123456@101.134.16.117:554/user=mamun_password=123456_channel=1_stream=0.sdp')

Display the resulting frame in browser

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

Releases

No releases published

Packages

No packages published