Page 2 of 2

Re: Add webcam to Octoprint

Posted: Thu Apr 15, 2021 7:58 pm
by MichaIng
First of all you freshly installed mjpg-streamer via dietpi-software, right?

Do not edit /etc/systemd/system/mjpg-streamer.service directly, it would be overwritten by any reinstall/update. Doing it via dietpi-services > mjpg-streamer > Edit was the best approach. Take care to add an empty ExecStart= before the actual new ExecStart line, so that it looks like that:

Code: Select all

ExecStart=/opt/mjpg-streamer/mjpg_streamer -i ' -d /dev/video0 -r 1280x960 -f 30' -o ' -p 8082 -n'

Re: Add webcam to Octoprint

Posted: Mon Apr 19, 2021 9:07 am
by 3km
Thank you MichaIng !
With HD resolution printing freezes from time to time (
640x480 - works fine
according to HTOP - mjpg-streamer consumes less than 15% of CPU.