Created
May 7, 2022 15:25
-
-
Save blackfyre/2d127d0cdb682fd5b1be8635c6b844c1 to your computer and use it in GitHub Desktop.
MainsailOS Webcams
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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="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 1024x768 -f 30 -d /dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._Canyon_CNS-CWC6_Webcam_SN0001-video-index0" | |
### 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") | |
# | |
# | |
#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="-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-mainsail" | |
#camera_http_options="-n" | |
### EXPERIMENTAL | |
# Support for different streamer types. | |
# | |
# Available options: | |
# mjpeg [default] - stable MJPG-streamer | |
#camera_streamer=mjpeg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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="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 1024x768 -f 30 -d /dev/v4l/by-id/usb-Sonix_Technology_Co.__Ltd._USB_2.0_Camera-video-index0" | |
### 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") | |
# | |
# | |
#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="-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-mainsail" | |
camera_http_options="-n -p 8081" | |
### EXPERIMENTAL | |
# Support for different streamer types. | |
# | |
# Available options: | |
# mjpeg [default] - stable MJPG-streamer | |
#camera_streamer=mjpeg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment