Summary: Video Streaming using Mosquitto Mqtt broker
$ pip3 install paho-mqtt
$ pip3 install opencv-python
To publish video frames with OpenCV over MQTT:
$ python3 Stream_publisher.py
To view the video stream :
$ python3 Stream_receiver.py
Note that this is a high FPS solution, hence it make consume more CPU . This code is written for simplicity and ease of use.
Note in Stream_publisher.py you can set the resolution of the stream to save CPU, RAM, Network bandwidth
Need an MQTT broker? click
If you have Docker installed I recommend eclipse-mosquitto. A basic broker can be run with:
docker run -p 1883:1883 -d eclipse-mosquitto
%