Octoprint with mjpg-streamer support | Docker based
- open terminal
- clone this repo
git clone https://github.com/Aaltuj/octoprint-docker-setup.git
- cd into
cd octoprint-docker-setup
- run
docker-compose up -d
- after some minutes octoprint is running on
http://{LOCALHOST or HOSTNAME}:5000
and mjpg-streamer onhttps://{LOCALHOST or HOSTNAME}:8080/?action=stream
- Navigate to
http://{LOCALHOST or HOSTNAME}:5000
and fill out the welcome wizard - When arrived at the webcam part fillout the following values:
- Stream URL:
http://{IP or HOSTNAME}:8080/?action=stream
- Snapshot URL:
http://{IP or HOSTNAME}:8080/?action=snapshot
- Path to FFMPEG:
/opt/ffmpeg/ffmpeg
TIP: use
docker inspect {container-name of mjp-stream}
to find the IP adress for the snapshot url
Start Octoprint and mjpg-streamer on boot
- Add docker to
systemctl
by running:sudo systemctl enable docker
- run
docker-compose up -d
once in the clone repo location
you should now have a working Octoprint with webcam support. Don't forget to update the usb devices and webcam locations when necessary
TESTED ON A RASPBERRY PI 2 B with Ubuntu server