Distributed Live Streaming with ZeroMQ, Flask and Socket Connection
pip install requirements.txt
python main.py
python client.py
cv2.VideoCapture(0)
cv2.VideoCapture('rtsp://username:password@camera_ip_address:554/user=username_password='password'_channel=channel_number_stream=0.sdp')
cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=0_stream=0.sdp')
cv2.VideoCapture('rtsp://mamun:[email protected]:554/user=mamun_password=123456_channel=1_stream=0.sdp')
cv2.imencode('.jpg', frame)[1].tobytes()