jacksonliam / mjpg-streamer

Fork of http://sourceforge.net/projects/mjpg-streamer/
2.96k stars 1.21k forks source link

Webcam not running on Orange pi pc plus #383

Open tneijsel opened 1 year ago

tneijsel commented 1 year ago

Have seen several questions about having issues concerning webcam images from usb webcam for Octoprint.

My Camera is running on desktop but unable to get it working for Octoprint Motion and others.

This camera works fine wit Webcamoid on Desktop on XFCE on Orange pi Pc Plus running:

NAME="Ubuntu" VERSION="20.04.5 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Armbian 22.11.4 Focal" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal

But I am unable to get it working. The purpose is to get the usb webcam image streaming in Octoprint which is installad and running. in Motion the video I get unable to decode video..

V4l2 output: v4l2-ctl --list devices cedrus (platform:cedrus): /dev/video0 /dev/media0

USB PHY 2.0: USB CAMERA (usb-1c1b000.usb-1): /dev/video1 /dev/video2 /dev/media1

And on format: v4l2-ctl --list-formats ioctl: VIDIOC_ENUM_FMT Type: Video Capture

So if the webcamoid application is running the camera on esktop by default is it not possible to get any image in Motion or any other program I tested.

Help or suggestions Appreciated. Ton.