Note
About this project. I built this for my own printer setup with AI, and if it helps others, even better. I have tested it to the best of my knowledge and ability, and every change is backed by an automated test suite, CI, and security scans (Bandit, CodeQL). Disclosed here per the OctoPrint plugin guidelines. Issues and PRs are welcome.
- π· Live MJPEG Stream β Camera of P1P / P1S / A1 / A1 mini in OctoPrint's Control tab
- ποΈ SD-card Timelapse Manager β List, copy, move and delete the printer's
own timelapse videos over FTPS from a dedicated tab, with thumbnails,
multi-select, progress/ETA, and automatic
.aviβ.mp4conversion (see Manage SD-card timelapses) - π€ Auto-sync after a print β Optionally pull the new timelapse automatically once the print finishes and the system is idle (printer done, OctoPrint's own render finished) β copy or move, your choice
- π¬ Raw Files render pipeline β Harvest the printer's raw high-res
/ipcamfootage per print (automatically or on demand), then concat and render it into a finished.mp4with selectable quality presets β the clip lands in OctoPrint's native Timelapse tab (see Render raw /ipcam footage) - πΈ Snapshot & Timelapse β Full
WebcamProviderPluginintegration for OctoPrint's built-in timelapse engine - π‘ Light toggle β Switch the printer's light on/off from a button over the live stream (requires Bambu Connector β see Compatibility)
- π Automatic light β Optionally switch the chamber light on when a print starts and off again when it ends, each with a free delay in seconds. A manual toggle during the print keeps the automation off the light until the next one starts (see Configuration)
- π Offline-resilient β When the printer is powered off the stream shows a "Printer Offline" frame and reconnects automatically once it is back, without tripping the crash limit
- π Auto-config from Bambu Connector β If OctoPrint-BambuConnector is set up, reuse its printer IP and access code instead of entering them twice
- π Auto-managed Daemon β Starts, restarts on crash, and reconfigures without any manual setup
- π Rotation & Overlays β Image rotation, FPS watermark, and activity dot
- π§ͺ Connection Test β Verify IP and access code before saving settings
- π Security Hardened β Access code never exposed via daemon HTTP; unauthenticated shutdown endpoint disabled
- π Reverse-Proxy Ready β Stream URL override for setups behind nginx / Caddy
- π₯οΈ Bind Address Control β
127.0.0.1(safe default) or0.0.0.0for browser live view
| Series | Camera stream | Timelapse manager (FTPS) | Light toggle (MQTT) | Tested |
|---|---|---|---|---|
| A1 mini | β | β | β | β |
| A1 | β | β | β | |
| P1P / P1S | β | β | β | |
| X1 / X1C | β | β |
Legend: β
works Β·
Note: The printer camera delivers roughly 0.5β2 FPS by design β that is a limitation of the printer firmware, not the plugin. If Bambu Studio or the Bambu Handy app is watching the camera simultaneously, the connection may fail.
BambuCam requires OctoPrint β₯ 1.10.0.
OctoPrint 1.x vs. 2.0 β feature breakdown
Almost everything works on the OctoPrint 1.x series in manual mode (you type the printer IP and access code yourself). Two convenience features build on OctoPrint-BambuConnector, which is part of OctoPrint's 2.0 connector architecture, so they are only available on OctoPrint 2.0+ with Bambu Connector set up.
| Feature | OctoPrint 1.x | OctoPrint 2.0 + Bambu Connector |
|---|---|---|
| Live MJPEG stream & snapshot | β | β |
| Auto-managed daemon (restart / offline-resilient) | β | β |
| WebcamProvider (multicam) integration | β | β |
| Manual configuration (IP + access code) | β | β |
| Connection test | β | β |
| SD-card timelapse list / thumbnails | β | β |
| Copy / move / delete timelapses (FTPS) | β | β |
.avi β .mp4 transcode + ffmpeg indicator |
β | β |
Convert local .avi files |
β | β |
Auto-sync after a print (MovieDone) |
β | β |
| Rotation, FPS watermark, activity dot | β | β |
| Auto-config (reuse Connector IP / access code) | β | β |
| Light toggle (needs the printer serial via MQTT) | β | β |
On OctoPrint 1.x the two unavailable features degrade gracefully: the
Configuration dropdown stays on Manual (the Auto option is disabled),
and the light button is hidden. Nothing errors β you just configure the printer
manually and lose the LED control.
-
Open the OctoPrint web interface
-
Navigate to Settings β Plugin Manager
-
Click Get More...
-
Click Install from URL and enter:
https://github.com/Ajimaru/OctoPrint-BambuCam/releases/latest/download/OctoPrint-BambuCam-latest.zip -
Click Install
-
Restart OctoPrint
Manual pip install
pip install https://github.com/Ajimaru/OctoPrint-BambuCam/releases/latest/download/OctoPrint-BambuCam-latest.zipThe releases/latest URL always points to the newest stable release.
Open Settings β Plugins β BambuCam, enter the printer IP and access code (or pick Auto when Bambu Connector is set up), and hit Test connection. Everything else has sensible defaults and is optional.
Required & optional settings
| Setting | Description |
|---|---|
| Configuration | Manual (type the values) or Auto. |
| Printer IP / hostname | LAN address, e.g. 192.168.1.100. |
| Access code | Shown on printer display under Network config. |
Use Test connection to verify both values before saving.
π‘ If OctoPrint-BambuConnector is installed and configured, choose Configuration β Auto to reuse its printer IP and access code instead of entering them twice. The fields then show those values read-only. If it is not available, BambuCam stays on manual entry.
β οΈ The bundled MJPEG server has no authentication. Withbind_address = 0.0.0.0, anyone on your network can watch the camera stream. Use127.0.0.1(default) unless you need browser live view and have a reverse proxy in place.
| Setting | Default | Description |
|---|---|---|
| HTTP port | 8181 |
Local port of the MJPEG server. |
| Bind address | 127.0.0.1 |
127.0.0.1 = safe. 0.0.0.0 = browser live view. |
| Stream URL override | (empty) | Use with a reverse proxy. |
| Override resolution | off | Off = printer sets the frame size (recommended). |
| Width / Height | 1920x1080 |
Only applied when Override resolution is enabled. |
| Rotation | -1 (none) |
Rotate 90 / 180 / 270 degrees. |
| Activity dot | off | Overlay a pulsing dot when the stream is active. |
| FPS watermark | off | Overlay the measured FPS on the image. |
| Auto-restart | on | Automatically restart the daemon on crash. |
| Max restarts | 5 |
Max restarts within the restart window. |
| Restart window | 300 s |
Time window for counting restarts. |
| Filename suffix | (empty) | Appended to downloaded timelapse names. |
Convert to .mp4 |
on | Re-encode copied .avi to playable .mp4. |
| Auto-sync | off | Pull new timelapses automatically after a print. |
| Auto-pull action | copy |
copy (keep on SD) or move (delete from SD). |
| Delay after print | 420 s |
Wait before checking the SD card for the new file. |
| Automatic light | off | Light on at print start, off when it ends. |
| Light on delay | 0 s |
Wait after the print starts before switching on. |
| Light off delay | 0 s |
Wait after the print ends before switching off. |
Found under Webcam Image β Printer light. With it on, the chamber light
goes on when a print starts and off when it ends β finished, failed or
cancelled. A pause does not switch it off, since you often pause
specifically to look inside. Both delays are free in seconds (0 =
immediately): raise the on-delay to skip bed levelling and purging, raise the
off-delay to keep the finished part lit for a while.
A manual toggle wins: switching the light by hand on the live stream while a print is running keeps the automation off it until the next print starts. Switching it off at the printer's own display also counts β before the automation switches off, it checks the real state and leaves an already-off light alone. The light is switched off rather than restored to whatever it was before the print, because that state is often unknown. A pending switch is lost if OctoPrint restarts.
P1/A1 printers record timelapses onto their (micro-)SD card. The BambuCam Timelapse tab browses and manages them over FTPS β no need to pull the card or open Bambu Studio. Each row shows size, date, a clickable preview thumbnail and a β Copied badge; checkboxes allow multi-select with per-file progress.
- Copy downloads into OctoPrint's
timelapsefolder (SD original kept). - Move copies, then deletes the original only after a byte-for-byte verify. Delete removes from the card after a confirmation.
- Copied/converted videos appear in OctoPrint's native Timelapse tab.
Notes and safety:
- Automatic
.aviβ.mp4conversion (on by default). Bambu records Motion-JPEG.avi, which many players can't open, so copies are re-encoded to H.264.mp4via OctoPrint's own ffmpeg. If ffmpeg isn't configured, the.aviis kept. Leftover.avi(off/skipped/failed) can be converted later from the "Local .avi files" section at the bottom of the tab. - Auto-sync (opt-in). Pull a print's new timelapse automatically once the system is idle β printer stopped AND OctoPrint done rendering β so two ffmpeg encodes never overlap. A tunable delay covers the SD-card write.
- Move, delete and conversion are blocked while a print is running; copy is
always allowed (read-only). All SD writes are admin-only, the access code
never appears in any log, and re-copying asks first then saves a numbered copy
(
β¦-1.mp4).
Besides the finished SD-card timelapse, the A1 mini continuously records raw
high-resolution MJPEG chunks (1680Γ1080) into its /ipcam ring buffer β
even when the on-screen timelapse is off. The Raw Files tab turns that
footage into finished clips:
- Harvest per print. With Auto-download /ipcam chunks enabled, the
plugin snapshots
/ipcamat print start and pulls this print's new chunks after the print ends (after the SD-card auto-sync, one FTPS session at a time). A manual Fetch from printer button covers prints the plugin didn't see. The live stream is paused during the pull β the printer serves FTPS at roughly 180 KB/s and the stream would compete for the same link. A running harvest shows a progress bar with live download speed and can be stopped at any time; chunks already downloaded are kept for a re-harvest. - Concat + render. Pick a quality preset (fast 720p up to full-resolution
archive) and render a group; ffmpeg concatenates the chunks losslessly and
re-encodes them to H.264
.mp4. The clip lands in OctoPrint's native Timelapse tab, thumbnail included. Rendering waits for printer idle by default, and an optional auto-render queues the job right after a complete download. - Manage the library. Groups show duration, resolution, size and a
preview; expand a group to include/exclude or delete individual chunks.
Rendered groups stay listed for re-rendering with another preset and can be
aged out automatically (
chunks_retention_days).
Everything is admin-gated like the SD-card operations; fetching and rendering are blocked while a print runs. See the Raw Files render pipeline docs for the full architecture.
The access code is never logged or exposed to the browser, printer connections run over TLS, and privileged SD-card/light actions are permission-gated. See the Security model in SECURITY.md for the full posture and how to report a vulnerability.
For the live stream, the plugin bundles and supervises
webcamd-bambu (bambu branch),
a small MJPEG HTTP server that connects to the printer's camera port (TCP 6000,
TLS) using the LAN access code. BambuCam starts the daemon automatically after
OctoPrint boots, monitors it, restarts it after crashes, and reconfigures it
when you change settings.
The other features talk to the printer directly from the plugin, no daemon involved: timelapse management over FTPS (TCP 990) and the light toggle over the printer's local MQTT broker (TCP 8883) β both using the same LAN access code.
Contributions are welcome! Please see CONTRIBUTING.md for detailed guidelines and instructions.
Please also follow our Code of Conduct.
AGPL-3.0-or-later β see LICENSE for details.
This plugin bundles
webcam.py from webcamd-bambu
(bambu branch), licensed under GPL-3.0. See AUTHORS.md for
the full upstream author list and CHANGELOG.md for release
history.
- π Bug Reports: GitHub Issues
- π¬ Discussion: GitHub Discussions
For troubleshooting, check the BambuCam log at Settings β Logging β octoprint.plugins.bambucam and attach the OctoPrint systeminfo bundle when opening a bug report.
- Development: Built following OctoPrint Plugin Guidelines
- Upstream daemon: webcamd-bambu by Igor Maculan, Christopher RYU, Shell Shrader, disconn3ct (SMS)
- Contributors: See AUTHORS.md
Show all badges
Like this plugin? β Star the repo and share it with the OctoPrint community!