Camera model
Logitech C270
What is the problem?
I am using Mjpeg_streamer and with different options always when i first reboot my Octopi the Webcam is really pixeled and has mixed colors. I have then to run "systemctl restart webcamd" and everything is fine.
What did you already try to solve it?
Read Problem description
Logs
webcamd.log
tail -f /var/log/webcamd.log
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: ./www-octopi/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: disabled
Done bring up all configured video device
Goodbye...
Starting up webcamDaemon...
--- Configuration: ----------------------------
cfg_file: /boot/octopi.txt
camera: auto
usb options: -r 640x480 -f 10
raspi options: -fps 10
http options: -w ./www-octopi -n
Explicitly USB device:
-----------------------------------------------
Found video devices:
/dev/video0
/dev/video1
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
config file='/boot/octopi.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
Camera model 046d:0825 is known to not work with -f parameter, stripping it out
Camera model 046d:0825 is known to not work with -f parameter, stripping it out
<13>Jul 26 16:39:14 root: Starting USB webcam
Checking for VL805 (Raspberry Pi 4)...
- It seems that you don't have VL805 (Raspberry Pi 4).
There should be no problems with USB (a.k.a. select() timeout)
Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so -r 640x480 -f 10 -d /dev/video0
MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: ./www-octopi/
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: disabled
Done bring up all configured video device
SYSLOG:
first after boot. Picture broken. Second after restart with systemctl. Everything is fine:
Jul 26 16:33:43 octopi MJPG-streamer [592]: starting application
Jul 26 16:33:43 octopi MJPG-streamer [592]: MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
Jul 26 16:33:43 octopi MJPG-streamer [592]: Using V4L2 device.: /dev/video0
Jul 26 16:33:43 octopi MJPG-streamer [592]: Desired Resolution: 640 x 480
Jul 26 16:33:43 octopi MJPG-streamer [592]: Frames Per Second.: 10
Jul 26 16:33:43 octopi MJPG-streamer [592]: Format............: JPEG
Jul 26 16:33:43 octopi MJPG-streamer [592]: TV-Norm...........: DEFAULT
Jul 26 16:33:43 octopi kernel: [ 20.404177] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
Jul 26 16:33:44 octopi MJPG-streamer [592]: www-folder-path......: ./www-octopi/
Jul 26 16:33:44 octopi MJPG-streamer [592]: HTTP TCP port........: 8080
Jul 26 16:33:44 octopi MJPG-streamer [592]: HTTP Listen Address..: (null)
Jul 26 16:33:44 octopi MJPG-streamer [592]: username:password....: disabled
Jul 26 16:33:44 octopi MJPG-streamer [592]: commands.............: disabled
Jul 26 16:33:44 octopi MJPG-streamer [592]: starting input plugin input_uvc.so
Jul 26 16:33:44 octopi MJPG-streamer [592]: starting output plugin: output_http.so (ID: 00)
Jul 26 16:39:14 octopi root: Starting USB webcam
Jul 26 16:39:18 octopi MJPG-streamer [1726]: starting application
Jul 26 16:39:18 octopi MJPG-streamer [1726]: MJPG Streamer Version: git rev: 310b29f4a94c46652b20c4b7b6e5cf24e532af39
Jul 26 16:39:18 octopi MJPG-streamer [1726]: Using V4L2 device.: /dev/video0
Jul 26 16:39:18 octopi MJPG-streamer [1726]: Desired Resolution: 640 x 480
Jul 26 16:39:18 octopi MJPG-streamer [1726]: Frames Per Second.: 10
Jul 26 16:39:18 octopi MJPG-streamer [1726]: Format............: JPEG
Jul 26 16:39:18 octopi MJPG-streamer [1726]: TV-Norm...........: DEFAULT
Jul 26 16:39:18 octopi kernel: [ 341.628556] usb 1-1.3: reset high-speed USB device number 4 using dwc_otg
Jul 26 16:39:19 octopi MJPG-streamer [1726]: www-folder-path......: ./www-octopi/
Jul 26 16:39:19 octopi MJPG-streamer [1726]: HTTP TCP port........: 8080
Jul 26 16:39:19 octopi MJPG-streamer [1726]: HTTP Listen Address..: (null)
Jul 26 16:39:19 octopi MJPG-streamer [1726]: username:password....: disabled
Jul 26 16:39:19 octopi MJPG-streamer [1726]: commands.............: disabled
Jul 26 16:39:19 octopi MJPG-streamer [1726]: starting input plugin input_uvc.so
Jul 26 16:39:19 octopi MJPG-streamer [1726]: starting output plugin: output_http.so (ID: 00)