Bus 001 Device 005: ID 0553:0202 STMicroelectronics Imaging Division (VLSI Vision) STV0680 Camera
What is the problem?
The camera only supports RGB3, no mjpeg, no YUYV
/var/log/webcamd.log doesn't exist.
However, there is output from mjpeg-streamer, when started manually:
#./mjpg_streamer -i "input_uvc.so -d /dev/video0 -r 320x242 -f 15 -y" -o "output_http.so -w www" MJPG Streamer Version: git rev: 501f6362c5afddcfb41055f97ae484252c85c912 i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 320 x 242 i: Frames Per Second.: 15 i: Format............: YUYV i: JPEG Quality......: 80 i: TV-Norm...........: DEFAULT i: Could not obtain the requested pixelformat: YUYV , driver gave us: RGB3 ... will try to handle this by checking against supported formats. Init v4L2 failed !! exit fatal i: init_VideoIn failed
Additional information about setup
Octopi is freshly installed, newest version on a first-generation raspberry PI B+.
I added this line to /etc/modules to load the driver (not sure if this was neccesary):
Also, here is the v4l2-output for my camera:
#v4l2-ctl --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture : 'S680' (GSPCA STV0680) Size: Discrete 322x242
Since mjpeg-streamer doesn't seem to support RGB3, I got the idea of using ffmpeg instead.
Octopi comes preinstalled with ffmpeg version 4.1.4-1+rpt1~deb10u1 and that is awesome because since version 3, it supports hardware-acceleration for h264-encoding on all raspberrys!
This means it should use no cpu-resources at all to provide a high-res realtime-webcam-stream in h264!
The encoder is called omx and acceleration was 3x-4x on a raspberry (compared to the playing speed of the video). The command should look something like this:
ffmpeg -i [not sure how to define input] -vcodec h264_omx -f flv "rtmp://example.com:1060"
There are questions rising up now:
How to define the input for the webcam for ffmpeg at the commandline?
Could the octopi-webfrontend show the new stream?
Which output-address would I have to set?
The best thing is this: All raspberrys except raspberry4 are using the same gpu (Broadcom VideoCore IV). So it should even work on the oldest rpi-models. Rpi4 uses Broadcom VideoCore VI with a few more MHz.
Since I'm new to octoprint, I don't know how to set this up properly, hence this thread.