ludiazv / octocitrico

OctoPrint for other fruits
149 stars 18 forks source link

Orangepi 3lts webcam not working #40

Open iamati opened 1 year ago

iamati commented 1 year ago

I ask for help because I've been trying to get the webcam to work for days and I can't. I state that the webcam works both on pc and before on rasberry which now I no longer have.

I installed on an octocitric orangepi 3lts and everything works perfectly except the webcam. I enabled the service I modified the octopi.txt file (through filezille because through ssh it doesn't save the file) and nothing at all I can't get anything to work. every time i go to http://myip/webcam/?action=stream always and usual error "" The webcam server is currently not running If you do not have a camera attached, this is normal and can be safely ignored.ect ect"" via lsusb I have this

root@citrico-opi3lts:~# lsusb Bus 006 Device 002: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 002: ID 05e3:0626 Genesys Logic, Inc. USB3.1 Hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 0483:5740 STMicroelectronics Virtual COM Port Bus 001 Device 003: ID 1b3f:2002 Generalplus Technology Inc. 808 Camera Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

HELPME please :)

ludiazv commented 1 year ago

Hi, For the camara to work you need to check this:

  1. The camera is recognized by the system.
  2. octopi.txt camera configuration must point to the correct video device. Typicall /dev/videoX
  3. webcam service must be enabled to start the streamer when booting.

Lests start with 1. As your camera is recognized by lusb . Yo need to login with ssh and check the video device in linux

ls -ltrh /dev/video*
(this should show the video devices in your system)
sudo v4l2-ctl --list-devices
(this show the properties of the devices)
sudo v4l2-ctl --device=/dev/video0 --all
(this will show details of specific device, in this case the first device indentfied by linux)

Can you share this?