Add webcam to Octoprint Topic is solved

Suggestions for features and software you would like to see in DietPi, goes here.
User avatar
MichaIng
Site Admin
Posts: 3041
Joined: Sat Nov 18, 2017 6:21 pm

Re: Add webcam to Octoprint

Post 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

[Service]
#User=mjpg-streamer
#WorkingDirectory=/opt/mjpg-streamer
ExecStart=
ExecStart=/opt/mjpg-streamer/mjpg_streamer -i 'input_uvc.so -d /dev/video0 -r 1280x960 -f 30' -o 'output_http.so -p 8082 -n'
3km
Posts: 5
Joined: Tue Mar 26, 2019 9:27 am

Re: Add webcam to Octoprint

Post 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.
Post Reply