This program helps you to stream real time video from one computer to another computer using ffmpeg.
Install Dependencies:
sudo apt install -y python3-opencv
sudo apt install -y ffmpeg
python3 -m install ffmpeg-python
python3 -m pip install pyzmq
python3 -m pip install msgpack==0.5.6
Server:
- Binds a zmq server.
- Reads the bytes for the using ffmpeg as yuv other pix_fmt as stated in ffmpeg.
- Sends the bytes with tcp created by zmq server.
Client:
- Connects to the tcp server.
- Reads the bytes and converts it to BGR if YUV format. Or Implement any custom format.
- Shows it on the cv2 window.
Note: Make sure both client and server are on the same network
- Change the server ip in ffm_server.py.
- Run it on the server.
- Change the ip address on ffm_client.py (same as the ip address of server)
- Run the ffm_client.py on client.