Octoprint: C270 Webcam

Created on 18 May 2017  路  7Comments  路  Source: OctoPrint/OctoPrint

What were you doing?

Installing camera on Octoprint.

What did you expect to happen and what happened instead?

The webcam just worked
The webcam didn't worked

Branch & Commit or Version of OctoPrint

1.3.2

Operating System running OctoPrint

Octopi

Printer model & used firmware incl. version

Marlin

Browser and Version of Browser, Operating System running Browser

Google Chrome

Link to octoprint.log

Just did this tutorial
Webcam
If you also want webcam and timelapse support, you'll need to download and compile MJPG-Streamer:
cd ~
sudo apt-get install subversion libjpeg8-dev imagemagick libav-tools libv4l-dev cmake
git clone https://github.com/jacksonliam/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer-experimental
export LD_LIBRARY_PATH=.
make
This should hopefully run through without any compilation errors. You should then be able to start the webcam server using:
./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so"
Everything works untill the last comment.
Result for command "lsusb":
Bus 001 Device 005: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 003: ID 2341:0042 Arduino SA Mega 2560 R3 (CDC ACM)
Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Result for command "./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so":
pi@octopi:~/mjpg-streamer/mjpg-streamer-experimental $ ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so"
MJPG Streamer Version.: 2.0
i: Using V4L2 device.: /dev/video0
i: Desired Resolution: 640 x 480
i: Frames Per Second.: -1
i: Format............: JPEG
i: TV-Norm...........: DEFAULT
UVCIOC_CTRL_ADD - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_ADD - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt (relative): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Pan/tilt Reset: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Focus (absolute): Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Mode: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at LED1 Frequency: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Disable video processing: Inappropriate ioctl for device (25)
UVCIOC_CTRL_MAP - Error at Raw bits per pixel: Inappropriate ioctl for device (25)
o: www-folder-path......: disabled
o: HTTP TCP port........: 8080
o: HTTP Listen Address..: (null)
o: username:password....: disabled
o: commands.............: enabled
libv4l2: error turning on stream: Operation not permitted
Unable to start capture: Operation not permitted
i: Error grabbing frames
Please help me! :(

incomplete

Most helpful comment

This is the bug tracker for a piece of software called OctoPrint, not a support forum. Your problem is not a bug with said software but rather an issue with your particular setup (Pi Zero + OctoPi + a Logitech (?) C270) that you are requesting help with. As repeatedly stated, those kind of problems are better suited for the existing support channels, as in, the mailing list or the G+ community, because there are WAY more people there that might be able to help you troubleshoot your problem.

This is nothing against you, it's simply to keep things manageable - maintaining this piece of software is a lot of work, and I can't do that work if at the same time I also need to field support requests from the thousands of users world wide on top of everything else. It simply does not scale. Hence the redirect of such requests towards the user community, in the hopes that people will help each other there (which usually appears to work nicely).

All 7 comments

Hi @abreumateus,

It looks like there is some information missing from your bug report that will be needed in order to solve the problem. Read the Contribution Guidelines which will provide you with a template to fill out here so that your bug report is ready to be investigated (I promise I'll go away then too!).

If you did not intend to report a bug but wanted to request a feature or brain storm about some kind of development, please take special note of the title format to use as described in the Contribution Guidelines.

Please do not abuse the bug tracker as a support forum - if you have a question or otherwise need some kind of help or support refer to the Mailinglist or the G+ Community instead of here.

Also make sure you are at the right place - this is the bug tracker of the official version of OctoPrint, not the Raspberry Pi image OctoPi nor any unbundled third party OctoPrint plugins or unofficial versions. Make sure too that you have read through the Frequently Asked Questions and searched the existing tickets for your problem - try multiple search terms please.

I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2017-06-01 22:00 UTC) I'll close this ticket so it doesn't clutter the bug tracker. This is nothing personal, so please just be considerate and help the maintainers solve this problem quickly by following the guidelines linked above. Remember, the less time the devs have to spend running after information on tickets, the more time they have to actually solve problems and add awesome new features. Thank you!

Best regards,
~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being, so don't expect any replies from me :) Your ticket is read by humans too, I'm just not one of them.

Octopi

Wrong bug tracker, octopi is over here: https://github.com/guysoft/OctoPi/

Also you don't need to manually install mjpeg streamer for octopi, everything is already installed and set up for you. That you did those manual steps probably broke something, wipe the SD card, flash the octopi image again and check here: https://github.com/foosel/OctoPrint/wiki/Webcams-known-to-work for your webcam and see if it requires any extra command line parameters to function correctly. Enter those parameters in /boot/octopi.txt (or if you're accessing the sd card via windows and an sd reader, it's in the only partition you'll find on the card in octopi.txt)

What @ntoff said. See also this FAQ entry.

Closing because not an issue with OctoPrint, more a case of "I need help with" -> get in touch on the mailing list or the G+ community please.

As a side note, I run the C270 on several Pi's with OctoPi and it works without a flaw out of the box without any additional steps being necessary.

Do not close untill i solve my problem.

I'm using an Pi Zero, maybe it's related to the type of my Pi?

This is the bug tracker for a piece of software called OctoPrint, not a support forum. Your problem is not a bug with said software but rather an issue with your particular setup (Pi Zero + OctoPi + a Logitech (?) C270) that you are requesting help with. As repeatedly stated, those kind of problems are better suited for the existing support channels, as in, the mailing list or the G+ community, because there are WAY more people there that might be able to help you troubleshoot your problem.

This is nothing against you, it's simply to keep things manageable - maintaining this piece of software is a lot of work, and I can't do that work if at the same time I also need to field support requests from the thousands of users world wide on top of everything else. It simply does not scale. Hence the redirect of such requests towards the user community, in the hopes that people will help each other there (which usually appears to work nicely).

This camera worked good for 2 weeks on python with open cv4 on pi 4 then all of a sudden it started giving me these errors. I have an image saved from when it was working fine so i reverted back and is still giving me errors. weird thing is camera still works on pi 3B+ on cv4 i can only assume that it is hardware related.

For questions or other kind of help or support, please get in touch on the community forum. The bug tracker is reserved for bugs, feature requests and brainstorming tickets. See also the Contribution Guidelines. Thank you! :)

Was this page helpful?
0 / 5 - 0 ratings