Skip to content

Instantly share code, notes, and snippets.

@mattolenik
Created March 5, 2024 20:57
Show Gist options
  • Save mattolenik/375f7b5946a15a229a7341b3f0f70d9c to your computer and use it in GitHub Desktop.
Save mattolenik/375f7b5946a15a229a7341b3f0f70d9c to your computer and use it in GitHub Desktop.
Pi Cam v2 config for libcamera for octoprint
### Options for libcamera based cameras (PiCam, Arducam, ...)
# The port on which the webcam server for the camera should listen on. If you have only
# one camera, leave at 8080. If you have more, change to 8081, 8082, etc. The primary
# camera will be considered the one with 8080.
PORT=8080
WIDTH=1640
HEIGHT=1232
# The height to use for the video stream. Defaults to 720.
VIDEO_HEIGHT=616
# The height to use for the snapshots. Defaults to 1080.
SNAPSHOT_HEIGHT=1232
# The framerate to set on the camera. Defaults to 15fps.
FRAMERATE=15
# Additional options. By default enables continuous auto focus (if possible).
# OPTIONS='--camera-options="AfMode=2" --camera-options="AfRange=2"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment