Pi Camera V2 not working with MJPG-Streamer
Hi everyone,
I am struggling with the installation of my webcam. I am using a genuine PiCam V2 (noir) and it seems that something is going wrong with the MJPG-Streamer install and settings. Same issue has been reported with my other usb camera.
I followed the instructions below but I am getting the following message in the log file:
https://www.repetier-server.com/setting-webcam-repetier-server-linux/
I am struggling with the installation of my webcam. I am using a genuine PiCam V2 (noir) and it seems that something is going wrong with the MJPG-Streamer install and settings. Same issue has been reported with my other usb camera.
I followed the instructions below but I am getting the following message in the log file:
https://www.repetier-server.com/setting-webcam-repetier-server-linux/
2022-01-04 09:16:31: Execute error response:mjpg_streamer: no process found
enabling daemon modeforked to background (1283)
Link to logfile: https://drive.google.com/file/d/1lgWQLuU-9jnHxNelMj0i5-Pcp2RgZ91f/view?usp=sharing
Could you please help me to fix it.
Thanks.
Link to logfile: https://drive.google.com/file/d/1lgWQLuU-9jnHxNelMj0i5-Pcp2RgZ91f/view?usp=sharing
Could you please help me to fix it.
Thanks.
Comments
/usr/bin/vcgencmd get_camera
supported=1 detected=1
sudo /usr/local/Repetier-Setup/bin/startAllCams
ps aux | grep mjpg
startAllCams sees only the display videos. It should also start
./mjpgStart pi
What image are you using? Bullseye has introduced new solution for pi cams that is not compatible with mjpg_streamer. If you have bullseye (lsb_release -a) you need to activate legacy solution for pi cam, see
This is what I have when I run the cmd:
Please just let me know how to proceed.
What does
sudo -i
cd /usr/local/Repetier-Setup/bin
./mjpgStart pi
return. That is explicitly starting pi streamer. Also check what webcam.conf contains. If still in bin folder;
cat ../etc/webcam.conf
It should have enabled pi or it will never try to start pi cam.
1.
2. webcam.conf is not in Bin folder
1. This is the code responsible
Guess that is the same in your mjpgStart. You see the error message there happening when $PICAM is empty, so
/usr/bin/vcgencmd get_camera | /bin/grep "detected=1"
returned empty string. What does it return when you run it manually? You said it would return what needed in first post so I wonder it does not get detected here.
When I wrote the first post, it was detected ...
Now, everything is working great.
Thank you for your help