BambuSource2Raw
Get raw webcam stream of BambuLab X1/P1P 3D printer
Install / Use
/learn @hisptoot/BambuSource2RawREADME
USE AT YOUR OWN RISK!
How to use
Prepare
- Download release archive of this project or just compile your own.
Linux
-
apt-get install -y libcurl4 -
Download https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
Extract
ffmpegtoreleasedir -
Extract
rtsp-simple-serverandrtsp-simple-server.ymltoreleasedir -
Download https://public-cdn.bambulab.cn/upgrade/studio/plugins/01.04.00.15/linux_01.04.00.15.zip
Extract
libBambuSource.sotoreleasedir -
Get dev id and access code of the machine
./bambusource2raw list_dev -u <account_name> -p <password> -r <region: us cn> -
Generate
BambuNetworkEngine.conf./bambusource2raw gen_cfg -u <account_name> -p <password> -r <region: us cn> -d <dev_id> -
Start
For X1/X1C
Start in host shell:
cd release-dir cp BambuNetworkEngine.conf . ./start_rtsp_feed.shStart in docker:
mkdir bambu_cfg cp -f BambuNetworkEngine.conf bambu_cfg cd release-dir docker build -t bblrtsp:v1 . docker run --name BambuRTSP-1 -p 8554:8554 -v <FULL_PATH_OF_bambu_cfg_DIR>:/bambu-bin/cfg -d bblrtsp:v1For P1P
Start in host shell:
Modify
P1PIPandP1PACCESSCODEinstart_rtsp_feed_p1p.shto the exact valuecd release-dir cp BambuNetworkEngine.conf . ./start_rtsp_feed_p1p.shStart in docker:
Modify
P1PIPandP1PACCESSCODEinstart_rtsp_feed_docker_p1p.shto the exact valueModify the entry of
Dockerfileto/bambu-bin/start_rtsp_feed_docker_p1p.shmkdir bambu_cfg cp -f BambuNetworkEngine.conf bambu_cfg cd release-dir docker build -t bblrtsp:v1 . docker run --name BambuRTSP-1 -p 8554:8554 -v <FULL_PATH_OF_bambu_cfg_DIR>:/bambu-bin/cfg -d bblrtsp:v1
Windows
-
Download https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
Extract
bin\ffmpeg.exetoreleasedir -
Extract
rtsp-simple-server.exeandrtsp-simple-server.ymltoreleasedir -
Download https://public-cdn.bambulab.cn/upgrade/studio/plugins/01.04.00.16/win_01.04.00.16.zip
Extract
BambuSource.dlltoreleasedir -
Get dev id and access code of the machine
bambusource2raw.exe list_dev -u <account_name> -p <password> -r <region: us cn> -
Generate
BambuNetworkEngine.confbambusource2raw.exe gen_cfg -u <account_name> -p <password> -r <region: us cn> -d <dev_id> -
Put
BambuNetworkEngine.confin the same folder withbambusource2raw.exe -
Start
For X1/X1C
start
start_rtsp_feed.batFor P1P
Modify
P1PIPandP1PACCESSCODEinstart_rtsp_feed_p1p.batto the exact valuestart
start_rtsp_feed_p1p.bat
View live stream
Use VLC or something else to view the live stream: rtsp://127.0.0.1:8554/bbl or rtsp://[ip of pc]:8554/bbl
How to compile
Linux
apt-get install -y unzip libcurl4 libcurl4-openssl-dev
cd BambuSource2Raw
make -f Makefile.linux
Windows
-
Download and Install Windows Driver Kit Version 7.1.0 from https://www.microsoft.com/en-us/download/details.aspx?id=11800
Open 'x64 Free Build Environment'
cd /d [Project Root Dir] build -
Download https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z
Extract
bin\ffmpeg.exetowin-build/amd64dir -
Extract
rtsp-simple-server.exeandrtsp-simple-server.ymltowin-build/amd64dir -
Download https://public-cdn.bambulab.cn/upgrade/studio/plugins/01.04.00.16/win_01.04.00.16.zip
Extract
BambuSource.dlltowin-build/amd64dir -
Copy
start_rtsp_feed.battowin-build/amd64dir
Remark
If bambusource2raw fails when starting stream, try to generate a new BambuNetworkEngine.conf.
Related Skills
node-connect
337.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
337.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.1kCommit, push, and open a PR
