Logitec C270 fails, permission problem


#1

Hello,

Webcam worked once, but the next day, no joy. After much digging and troubleshooting, I looked at the streamers log file and found the problem. However, I'm not sure of the fix. The Pi user is a member of the video group, so that's not it. Tail of the log file follows.

pi@octopi:/var/log $ tail webcamd.log
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 1280x720 -f 30
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 1280 x 720
i: Frames Per Second.: 30
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
ERROR opening V4L interface: Permission denied
Init v4L2 failed !! exit fatal
i: init_VideoIn failed


#2

Strangely, it just started working again and the error is no longer appearing in the log. Nothing was done, no updates or anything, it just started working the next day.
Oh well. A Mystery.


#3

Did you reboot in the meantime?


#4

On the day it wasn't working, I rebooted at least three times with no success.


#5

Really odd. I run this webcam myself and have never seen this :thinking:


#6

I put this at the end of my /etc/init.d/octoprint

nohup /home/user1/mjpg-streamer/mjpg-streamer-experimental/mjpg_streamer -i "/home/user1/mjpg-streamer/mjpg-streamer-experimental/input_uvc.so -y -br auto -cb auto -wb auto -gain auto -q 100 -r XGA" -o "/home/user1/mjpg-streamer/mjpg-streamer-experimental/output_http.so" &

But I have a non standard build...