I'm trying to configure a raspi cam and a USB cam. If I do nothing other than edit the default octopi.txt to camera="raspi" my setup starts failing. If I edit the default to camera="usb" the raspi cam works?? Is there some kind of way that my raspberry PI cam became a USB device?
Also I should mention that ls /dev/v4l/by-id/ does not exist. I have "by-path".
A raspicam can be accessed as either, the system does represent it as a USB camera so that it's compatible with applications that work with USB cameras.
Using it as a USB camera means that you lose the specific raspicam options, however since you are then limited to the USB camera options. It does, however, mean that you can use USB camera things, like the Camera Settings plugin.
note that it's showing the -d that I put in, but also a -d /dev/video0 (which is my raspi cam, when it's installed). This results in both 8080 and 8081 showing the raspi cam. If the raspi isn't plugged in, it doesn't find anything and the web stream won't connect.
Any ideas? I'm on Octopi 0.18 on a 4gb Pi 4B
NEVERMIND... didn't have the /dev/v41/by-id/ in the device path.
OK, a bunch of water under the bridge... had my USB camera unplugged for a while during installing a new board in my Ender3. Now, it doesn't work, where it did (at least for a short time) after I had the above issue. Now there's nothing on :8081, and seeing something similar to the above in the webcamd log (with the v41 path included). However, when I go to see if the webcam's ID is the same, I can't view the v41 folder. It tells me
pi@octopi:~ $ ls /dev/v41/by-id
ls: cannot access '/dev/v41/by-id': No such file or directory
pi@octopi:~ $ ls /dev/v41
ls: cannot access '/dev/v41': No such file or directory
I look at /dev, and I can see a v41 that's colored the same as all the other folders. If I do "ls /dev/v* -l" I get a lot of v* files, along with:
config file='/home/pi/klipper_config/webcam2.txt':USB device was not set in options, start MJPG-streamer with the first found video device: /dev/video0
<13>Sep 8 17:25:14 pi: 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-mjpgstreamer -n -p 8081 -i input_uvc.so -r 1024x768 -f 10 -d /dev/v41/by-id/usb-Ruision_UVC_Camera_20200416-video-index0 -d /dev/video0
OK.... next problem (like I mentioned above) is that there isn't an "input_raspicam.so". Somewhere along the line I'd used kiauh (klipper install script) to remove & reinstall mjpg-streamer. seems that it didn't build that input plugin. I'm looking through things looking for how to build it ... in the meantime, if anyone knows how, please let me know.
This guide is written for the MJPG streamer install in OctoPi - if you have a different setup & issue, please open a new thread in the forums rather than filling this one up.
I finally got my duel webcam stream working with the help of this tutorial. Thanks for the help! I was wondering if it is possible to have a webcam tab in octoprint, which shows both webcam streams at once. Something like this:
(Currently I/m importing both webcam streams in a OBS scene to accomplish this)