sudo apt-get install -y \
dpkg-dev
build-essential
python3-dev
freeglut3-dev
libgl1-mesa-dev
libglu1-mesa-dev
libgstreamer-plugins-base1.0-dev
libgtk-3-dev
libjpeg-dev
libnotify-dev
libpng-dev
libsdl2-dev
libsm-dev
libtiff-dev
libwebkit2gtk-4.0-dev
libxtst-dev
&& \
pip install attrdict3
git clone https://github.com/P6-AAU-23/server
cd server && pip install -r requirements.txt
git clone https://github.com/P6-AAU-23/server
cd server && pip install -r requirements.txt && pip install -r gui_requirements.txt
python3 client_gui
python3 client_cli
docker run -d -p 1935:1935 --name nginx-rtmp tiangolo/nginx-rtmp
rtmp://localhost/live
python3 client_cli.py --video_capture_address rtmp://localhost/live/{stream key}
replacing {stream key}
with the stream key you set in OBS (this should run the pipeline on your stream)If you want to stream to the pipeline, using OBS or something similar, you will have to set up a RTMP server. We recommend a nginx server with the nginx-rtmp-module. A docker Docker image for this already exists at https://hub.docker.com/r/tiangolo/nginx-rtmp/. See the OBS Quick Start for a concrete guide.
The pip version of OpenCV is CPU only, therefore you need to remove this version and manually install OpenCV:
pip uninstall opencv-python
pip uninstall opencv-python
sudo apt-get install python3-opencv