ludiazv / octocitrico

OctoPrint for other fruits
148 stars 19 forks source link

Webcamd is dead #23

Open TGC-TECH opened 2 years ago

TGC-TECH commented 2 years ago

Hello. I have enabled webcam in citrio-config and rebooted however when I try to access the stream URL in octoprint I get a 404 and when I run

pi@citrico-rock64:~$ systemctl status webcamd

I get

● webcamd.service - the OctoPi webcam daemon with the user specified config Loaded: loaded (/etc/systemd/system/webcamd.service; disabled; vendor preset: enabled) Active: inactive (dead)

I see that the service is dead. Attempting to manually start the service results in the process hanging at activating before eventually going back to being dead

● webcamd.service - the OctoPi webcam daemon with the user specified config Loaded: loaded (/etc/systemd/system/webcamd.service; disabled; vendor preset: enabled) Active: activating (auto-restart) since Wed 2022-05-11 16:19:40 UTC; 953ms ago Process: 2431 ExecStart=/root/bin/webcamd (code=exited, status=0/SUCCESS) CPU: 124ms

TGC-TECH commented 2 years ago

I have come up with a work around. I installed mpjg streamer according to this https://krystof.io/mjpg-streamer-on-a-raspberry-pi-zero-w-with-a-usb-webcam-streaming-setup/ and I then was able to manually specify the device (in my case /dev/video4) in order to get the stream started. I was then able to plug the stream URL into octoprint.

I still have to setup a service to start mjpg streamer on boot but other then that I should be good to go

ludiazv commented 1 year ago

configuration of the webcam is done via /boot/octopi.txt. Check this out: https://community.octoprint.org/t/how-can-i-change-mjpg-streamer-parameters-on-octopi/203

The video output and configuration parameters are key to make your webcam work. Check this link for reference: https://community.octoprint.org/docs?topic=21149