Camera model
Logitech C270
What is the problem?
Problems with displaying the stream on the first launch and sometimes on subsequent launches after turning off the raspberry pi3 b from the power supply.
What did you already try to solve it?
I tried changing the frame rate and camera resolution in the file octopi.txt, but it only got worse, sometimes to restore the image of the stream did not even help to restart the device
Logs (/var/log/webcamd.log
, syslog, dmesg, ... no logs, no support)
There was no webcamd.log file in the var/log folder.
This was before the device was rebooted
This is what the camera shows when you first load it:
http://prntscr.com/xk3mgh
http://prntscr.com/xk3nr1
And so it was after the device was rebooted and the display was normal:
pi@OctoPrint:/var/log $ journalctl -u webcamd
-- Logs begin at Sun 2021-01-24 16:00:52 GMT, end at Sun 2021-01-24 17:01:13 GMT. --
Jan 24 16:00:56 OctoPrint systemd[1]: Starting the OctoPi webcam daemon with the user specified config...
Jan 24 16:00:56 OctoPrint webcamd[308]: Starting up webcamDaemon...
Jan 24 16:00:56 OctoPrint webcamd[308]: --- Configuration: ----------------------------
Jan 24 16:00:57 OctoPrint webcamd[308]: cfg_file: /boot/octopi.txt
Jan 24 16:00:57 OctoPrint webcamd[308]: camera: usb
Jan 24 16:00:57 OctoPrint webcamd[308]: usb options: -r 1280x960 -f 30
Jan 24 16:00:57 OctoPrint webcamd[308]: raspi options: -fps 10
Jan 24 16:00:57 OctoPrint webcamd[308]: http options: -w ./www-octopi -n
Jan 24 16:00:57 OctoPrint webcamd[308]: Explicitly USB device:
Jan 24 16:00:57 OctoPrint webcamd[308]: -----------------------------------------------
Jan 24 16:00:57 OctoPrint webcamd[308]: Found video devices:
Jan 24 16:00:57 OctoPrint webcamd[308]: /dev/video0
Jan 24 16:00:57 OctoPrint webcamd[308]: /dev/video1
Jan 24 16:00:57 OctoPrint webcamd[308]: /dev/video10
Jan 24 16:00:57 OctoPrint webcamd[308]: /dev/video11
Jan 24 16:00:57 OctoPrint webcamd[308]: /dev/video12
Jan 24 16:00:57 OctoPrint webcamd[308]: config file='/boot/octopi.txt':USB device was not set in options, start MJPG-
Jan 24 16:00:57 OctoPrint root[407]: Starting USB webcam
Jan 24 16:00:57 OctoPrint webcamd[308]: <13>Jan 24 16:00:57 root: Starting USB webcam
Jan 24 16:00:57 OctoPrint webcamd[308]: Running ./mjpg_streamer -o output_http.so -w ./www-octopi -n -i input_uvc.so
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: starting application
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: MJPG Streamer Version: git rev: 501f6362c5afddcfb4
Jan 24 16:00:57 OctoPrint webcamd[308]: MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912
Jan 24 16:00:57 OctoPrint webcamd[308]: i: Using V4L2 device.: /dev/video0
Jan 24 16:00:57 OctoPrint webcamd[308]: i: Desired Resolution: 1280 x 960
Jan 24 16:00:57 OctoPrint webcamd[308]: i: Frames Per Second.: 30
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: Using V4L2 device.: /dev/video0
Jan 24 16:00:57 OctoPrint webcamd[308]: i: Format............: JPEG
Jan 24 16:00:57 OctoPrint webcamd[308]: i: TV-Norm...........: DEFAULT
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: Desired Resolution: 1280 x 960
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: Frames Per Second.: 30
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: Format............: JPEG
Jan 24 16:00:57 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: TV-Norm...........: DEFAULT
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (2
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (2
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for
Jan 24 16:00:57 OctoPrint webcamd[308]: UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device
Jan 24 16:00:58 OctoPrint webcamd[308]: Done bring up all configured video device
Jan 24 16:00:58 OctoPrint webcamd[308]: Goodbye...
Jan 24 16:01:00 OctoPrint systemd[1]: Started the OctoPi webcam daemon with the user specified config.
Jan 24 16:01:00 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: www-folder-path......: ./www-octopi/
Jan 24 16:01:00 OctoPrint webcamd[308]: o: www-folder-path......: ./www-octopi/
Jan 24 16:01:00 OctoPrint webcamd[308]: o: HTTP TCP port........: 8080
Jan 24 16:01:00 OctoPrint webcamd[308]: o: HTTP Listen Address..: (null)
Jan 24 16:01:00 OctoPrint webcamd[308]: o: username:password....: disabled
Jan 24 16:01:00 OctoPrint webcamd[308]: o: commands.............: disabled
Jan 24 16:01:00 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: HTTP TCP port........: 8080
Jan 24 16:01:00 OctoPrint mjpg_streamer[408]: MJPG-streamer [408]: HTTP Listen Address..: (null)