Debian Camera error 400

Hello

I have a logitech C920 on a debian linux install trying to get the camera running. When I type in ".mjpg_streamer -i "input_uvc.so" -o "output_http.so -w ./www" I get an error 400 not found! No File Extension when browsing to the http://:8080/webcam/?action=stream. The camera light is on, however I am not getting any stream or snapshots. Any thoughts?

Your command looks right. Its what I have in my mjpg-streamer.service file.
But this is off.

You need the IP in that url
Maybe localhost?

Something like this:
http://localhost:8080/webcam/?action=stream
or
http://127.0.0.1:8080/?action=stream
the above should be correct if you are on your Debian system while trying to see the camera in a browser.

If you are on a different system you should use the IP Of your Debian system.
For me (also using C920) I use this:
http://10.41.41.148:8080/?action=stream

The "10.41.41.148" is the IP of the system that the Camera is connected to. Yours will be different.

Hello,
Yeah I do I have IP address, it is 10.0.1.63. I just did not put it down I put .

I am making an assumption you are not using a RPi. But please confirm.

I am by no means an expert on this but, I my setup seems similar to yours.

Looking at your post, you have

Depending on where you are in the file system. You may need to have a leading forward slash
This is copied from my personal setup notes. For testing install of streamer with a camera plugged in.

sudo ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so"

Yeah I am running Debian, and I just forgot the slash, my bad.

@Adam_Donner please don't forget mark solutions. It helps others find answers.

I am sorry I forgot the slash in my original post, it is still not functional even with the slash.

Thanks

What script did you use for install?

Assuming Octoprint is all set, the below is the steps I take to setup my Cameras.

Now we install webcam support********
cd\

sudo apt install subversion
sudo apt install libjpeg8-dev
sudo apt install imagemagick
sudo apt install ffmpeg
sudo apt install libjpeg-dev
sudo apt install libv4l-dev <<<< that is an "L(l)" not a "one(1)"
sudo apt install cmake

git clone GitHub - jacksonliam/mjpg-streamer: Fork of http://sourceforge.net/projects/mjpg-streamer/
cd mjpg-streamer/mjpg-streamer-experimental
export LD_LIBRARY_PATH=.
make

Test mjpg streamer
***plug in your usb camera
sudo ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so"

***if you do not get errors, you can see your image at:
***http://[IP]:8080/?action=stream
***ctrl+c to close out.

If you get it working from here, you would setup a service so it runs on startup.

I am getting a ton of errors, however they are about pan and tilt. One that does concern me says "Device (25) UVCIOC_CTRL_MAP - Error at Raw bits per pixel: inappropriate ioctl for device (25)"

The camera still turns on however

Does the camera seem to work on another standard desktop system? Only stuff I could find on that error seems to indicate that the camera or the config for the camera are not optimal but should still work (although causing a lot of load) even with the error.

This is case where you might have better luck switching to ustreamer. You can easily reinstall OctoPrint with ustreamer using octoprint_install: GitHub - paukstelis/octoprint_install: Bash script for installing OctoPrint and webcam streamer

1 Like

Im using C920 with the default image. I just plugged it in and rebooted and it was recognized. Im using wired tho