Hi. Having issues with the webcam.
Im running this on an laptop running Debian.
The Snapshot is working, but the stream URL is not working. Any ideas?
Hi. Having issues with the webcam.
Im running this on an laptop running Debian.
The Snapshot is working, but the stream URL is not working. Any ideas?
Hey, I'm new here and followed that instruction, to install OctoPrint on my RaspberryPi. But now I have some problems starting the server... When I try to start the server this is what happens and I can't connect. Can someone explain whats wrong?
Thanks for your answers.
I had the same problem. the /webcam/?action=stream is the path only if you setup using the instructions to get access via port80 (look at the sections under "Make everything accessible on port 80" in the original post). If you don't want to do that, then just put in: http://<your Raspi's IP>:8080/?action=stream
You can restrict parameter in sudoers like
pi ALL=NOPASSWD: /usr/sbin/service octoprint *
I'm working through this install but I have a question.
Under " Automatic start up", why is it having us use the init script instead of the systemd service file? Raspbian uses systemd now.
Or is it broken in some way?
Well they still work but yeah you're right - it might be time for a new startup file.
Any suggestions how it could look like?
It's actually just the wiki note that this guide is that needs some updating
Sure:
wget https://raw.githubusercontent.com/OctoPrint/OctoPrint/master/scripts/octoprint.service && sudo mv octoprint.service /etc/systemd/system/
wget https://github.com/foosel/OctoPrint/raw/master/scripts/octoprint.default && sudo mv octoprint.default /etc/default/octoprint
sudo systemctl enable octoprint.service --now
That's what I did on mine.
I'm having an issue with this section. I want to use a picam but this does not build the input_raspicam.so file that is needed. Any ideas what the problem is? I also opened an issue on the github page for this project.
EDIT: It was a problem with 64bit pi OS. The pi camera is not completely working yet on it.
Just a note, the webcamDaemon script will never use the "input_raspicam.so" for a pi camera with the default camera setting of "auto" (so auto really just means to use input_uvc.so for everything.). Because the if statement at the bottom looks for /dev/video0 first which the pi camera also uses.
I'm not sure if it is better or worse to use input_raspicam.so for a pi camera over input_uvc.so so maybe it doesn't matter.
EDIT: mjpeg_streamer uses a lot less CPU when using input_uvc.so vs more CPU when using input_raspicam.so so I guess it is fine how it is.
Here is a very simple systemd service file to use instead of adding the webcam stuff to the rc.local, which is messy. It uses the scripts above as well, because why not:
/etc/systemd/system/mjpg-streamer.service
[Unit]
Description=mjgp-streamer webcam streaming daemon
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
User=pi
ExecStart=/home/pi/scripts/webcam start
ExecStop=/home/pi/scripts/webcam stop
[Install]
WantedBy=multi-user.target
Hello everyone
I do not know English,These texts are all translated by Google,Hope you can understand
The problem I have is Raspberry 4B Webcam Do not show and After a while ssh connection error
OctoPi no problem
大家好
我不会英文,这些文字都是谷歌翻译得到的
我遇到的问题是Raspberry4B 摄像头不显示 一段时间后ssh连接中断显示Access denied(不确定是什么的问题)
OctoPi没有问题,显示连接都是可以的
MJPG Streamer Version: git rev: 85f89a8c321e799fabb1693c5d133f3fb48ee748
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
i: Could not obtain the requested pixelformat: MJPG , driver gave us: YUYV
[...]
o: www-folder-path......: disabled
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
Hi,
i have a problem with the webcam.i use the guide from here, but my camera will not start. I also read all posts here. no result.
User pi, Bananapi A20, Image Armbian (debian10), Video device ist /dev/video1
i have a webcam and a WebcamDaemon (green) in ./scripts
/boot/octoprint.txt.
if i enter the mjpg_streamer by hand it will work. I think i have a problem with the autostart of mjpg_streamer.
Can anybody help?
And what do you want me to show you?
Regards
Alero
Did you change the pi related stuff to your username / directories ?
Are the scripts executable (chmod +x)?
Did you put them into /etc/rc.local
as the guide said?
Hi,
Yes both. and my user is pi
Regards
Alero
Hi, i think my problem is that mjpg_streamer should start at boot.
Regards
Alero
hi,
when i start me a20 i see that webcam ist started.
if i enter
./mjpg_streamer -i "./input_uvc.so -d /dev/video1 -r 1920x1080 -f 15" -o "./output_http.so"
my camera works fine. but it dosn´t start after reboot.
no idea what i can do?
Regards
Alero
Sry I was quite busy today. I'll try to look at it tomorrow.
Hey it's going to be another day or two.. It's too hot for me right now. Can't think straight