I have been following the wiki guide here step by step.
It looks like "control" is only available for USB cameras, and using ./mjpg_streamer/www instead of www-octopi as that directory contains the control pages.
After changing those parameters as per the guide, and issuing service webcamd restart
command, the stream/snapshot URLs simply don't work.
There is a para saying " If your test has failed, see this troubleshooting guide for help getting the Snapshot Address Template working." However this just seems to go to the wiki homepage.
I don't actually think the template is wrong, as just loading the URLs directly such as http://192.168.1.135/webcam/static.html shows all the mjpg streamer pages, but none of the camera content is working.
At the moment I am stuck, and not been able to find any information on what to do if it fails at this point.
Can anyone point me in the right direction?
Many thanks
Dave
Please upload your octopi.txt
. Maybe there is a typo or something
uncommented lines only
camera="usb"
camera_usb_options="-r 1920x1440"
camera_raspi_options="-x 1920 -y 1440 -fps 10 -ex auto -awb auto"
camera_http_webroot="./www"
camera_http_options=""
and the full thing because it will be the next request
### Windows users: To edit this file use Notepad++, VSCode, Atom or SublimeText.
### Do not use Notepad or WordPad.
### MacOSX users: If you use Textedit to edit this file make sure to use
### "plain text format" and "disable smart quotes" in "Textedit > Preferences"
### Configure which camera to use
#
# Available options are:
# - auto: tries first usb webcam, if that's not available tries raspi cam
# - usb: only tries usb webcam
# - raspi: only tries raspi cam
#
# Defaults to auto
#
#camera="raspi"
camera="usb"
### Additional options to supply to MJPG Streamer for the USB camera
#
# See https://faq.octoprint.org/mjpg-streamer-config for available options
#
# Defaults to a resolution of 640x480 px and a framerate of 10 fps
#
#camera_usb_options="-r 640x480 -f 10"
# https://support.logitech.com/en_us/product/webcam-pro-9000/specs
#camera_usb_options="-r 320x180"
#camera_usb_options="-r 1280x1024"
#camera_usb_options="-r 960x720"
camera_usb_options="-r 1920x1440"
### 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)
# GEMBIRD (1908:2310)
# Genius F100 (0458:708c)
# Cubeternet GL-UPC822 UVC WebCam (1e4e:0102)
#
# 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, e.g. for two broken cameras "aabb:ccdd" and "aabb:eeff"
#
# additional_brokenfps_usb_devices=("aabb:ccdd" "aabb:eeff")
#
# If this fixes your problem, please report it back so we can include the device
# out of the box: https://github.com/guysoft/OctoPi/issues
#
#additional_brokenfps_usb_devices=()
### Additional options to supply to MJPG Streamer for the RasPi Cam
#
# See https://faq.octoprint.org/mjpg-streamer-config for available options
#
# Defaults to 10fps
#
#camera_raspi_options="-x 640 -y 480 -fps 10"
camera_raspi_options="-x 1920 -y 1440 -fps 10 -ex auto -awb auto"
#camera_raspi_options="-x 1640 -y 1232 -fps 10"
#camera_raspi_options="-x 3280 -y 2464 -fps 10"
### Configuration of camera HTTP output
#
# Usually you should NOT need to change this at all! Only touch if you
# know what you are doing and what the parameters mean.
#
# Below settings are used in the mjpg-streamer call like this:
#
# -o "output_http.so -w $camera_http_webroot $camera_http_options"
#
# Current working directory is the mjpg-streamer base directory.
#
camera_http_webroot="./www"
camera_http_options=""
ok, resolved this myself. Turns out it was the resolution. I had that one set for the picam when specified as a raspi cam, and without using this, it was zooming in on the model as per this https://picamera.readthedocs.io/en/release-1.13/fov.html#sensor-modes
So I changed it now to 1280 * 1024 and it seems to be working fine!
Sorry to waste your time, hope this post might be of use to someone one day...
1 Like