Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webcam install and configure but no image #1691

Closed
marseillai opened this issue Jan 6, 2017 · 5 comments
Closed

Webcam install and configure but no image #1691

marseillai opened this issue Jan 6, 2017 · 5 comments
Labels
bug Issue describes a bug triage This issue needs triage

Comments

@marseillai
Copy link

marseillai commented Jan 6, 2017

What were you doing?

Trying to use this USB camera : http://www.banggood.com/No-Drive-Mini-USB-Camera-For-Raspberry-Pi-p-1023048.html on octoprint on Raspberry Pi 3 Model B.
I've install octoprint. Set camera="usb" in octopi.txt conf file. Then boot for the first time.
In raspi-config I've enable camera.

What did you expect to happen?

See camera picture in http://192.168.0.28:8080/?action=stream

What happened instead?

When opening http://192.168.0.28:8080/?action=stream nothing happen (no error, no video just brower waiting)

When testing snaphsot URL this message show up : Could not retrieve snapshot URL, please double check the URL

Branch & Commit or Version of OctoPrint

Version: 1.3.0 (master branch) get from 2016-11-25-octopi-jessie-lite-0.14.0.img

Printer model & used firmware incl. version

Anet A8

Browser and Version of Browser, Operating System running Browser

Firefox 50.1.0

Link to octoprint.log

http://pastebin.com/2CkabZfB

Link to contents of terminal tab or serial.log

Link to contents of Javascript console in the browser

Screenshot(s) showing the problem:

I have read the FAQ.

@GitIssueBot
Copy link

Hi @marseillai,

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-01-20 15:20 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.

@GitIssueBot GitIssueBot added incomplete Issue template has not been fully filled out, no further processing until fixed triage This issue needs triage and removed incomplete Issue template has not been fully filled out, no further processing until fixed labels Jan 6, 2017
@marseillai
Copy link
Author

Updated trying to comply rules. Sorry for the mistake.

@Salandora
Copy link
Contributor

This doesn't sound like a bug with octoprint but more like a problem with mjpeg_streamer and your camera.

Can you please post the output of "lsusb" and "systemctl status webcamd"
Maybe your webcam doesn't get recognized.
Did you tried it on a computer might it be a bad webcam?
Also include your octopi.txt please. Maybe there is something wrong. It would also be better to talk in IRC about this :-)

@marseillai
Copy link
Author

marseillai commented Jan 7, 2017

Hi salandora.

I must tell this is my first time with raspberry. And I didn't touch a linux since years now.... So I don't really know where is the problem.

Here is the requested output :

pi@octopi:~ $ lsusb -t
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
        |__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M
        |__ Port 5: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
        |__ Port 5: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M

pi@octopi:~ $ lsusb
Bus 001 Device 004: ID 058f:5608 Alcor Micro Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

pi@octopi:~ $ systemctl status webcamd
● webcamd.service - LSB: webcam daemon
   Loaded: loaded (/etc/init.d/webcamd)
   Active: active (running) since Fri 2017-01-06 20:31:09 UTC; 10h ago
  Process: 436 ExecStart=/etc/init.d/webcamd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/webcamd.service
           ├─465 /bin/bash /root/bin/webcamd
           └─551 ./mjpg_streamer -o output_http.so -w ./www -i input_uvc.so -...

pi@octopi:~ $ cat /boot/octopi.txt (I removed some of the comment for the paste)
# Configure which camera to use
#camera="auto"
camera="usb"


# Additional options to supply to MJPG Streamer for the USB camera
#camera_usb_options="-r 640x480 -f 10"

# Additional webcam devices known to cause problems with -f
# Apparently there a some devices out there that with the current
# mjpg_streamer release do not support the -f parameter (for specifying
# the capturing framerate) and will just refuse to output an image if it
# is supplied.
# The webcam daemon will detect those devices by their USB Vendor and Product
# ID and remove the -f parameter from the options provided to mjpg_streamer.
# By default, this is done for the following devices:
#   Logitech C170 (046d:082b)
# Using the following option it is possible to add additional devices. If
# your webcam happens to show above symptoms, try determining your cam's
# vendor and product id via lsusb, activating the line below by removing # and
# adding it as shown examplatory.
# If this fixes your problem, please report it back so we can include the device
# out of the box.
#additional_brokenfps_usb_devices=("046d:082b" "aabb:ccdd")

# additional options to supply to MJPG Streamer for the RasPi Cam
# See https://github.com/foosel/OctoPrint/wiki/MJPG-Streamer-configuration
# for available options
# Defaults to 10fps
#camera_raspi_options="-fps 10"

Yes I tried the webcam on my computer and it worked fine.

I'll connect on IRC. Thanks.

@marseillai
Copy link
Author

Ok. Now it works fine.
I had to change /boot/octopi.txt
and add
additional_brokenfps_usb_devices=("058f:5608")
Thanks.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 29, 2020
@foosel foosel added the bug Issue describes a bug label Oct 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue describes a bug triage This issue needs triage
Projects
None yet
Development

No branches or pull requests

4 participants