Git Product home page Git Product logo

bambusource2raw's Introduction

USE AT YOUR OWN RISK!

How to use

Prepare

  1. Open BambuStudio and Login account
  2. Goto Devices Tab and view your machine status
  3. Close BambuStudio and it will generate BambuNetworkEngine.conf under X:\Users\[user_name]\AppData\Roaming\BambuStudio
  4. Download release archive of this project or just compile your own.

Linux

  1.  apt-get install -y libcurl4
    
  2. Download https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz

    Extract ffmpeg to release dir

  3. Download https://github.com/aler9/rtsp-simple-server/releases/download/v0.20.0/rtsp-simple-server_v0.20.0_linux_amd64.tar.gz

    Extract rtsp-simple-server and rtsp-simple-server.yml to release dir

  4. Download https://upgrade-file.bambulab.cn/studio/plugins/01.03.00.02/linux_01.03.00.02.zip

    Extract libBambuSource.so to release dir

  5. Start

    1. Start in host shell:

       cd release-dir
       cp BambuNetworkEngine.conf .
       ./start_rtsp_feed.sh
      
    2. Start 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:v1
      

Windows

  1. Download https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z

    Extract bin\ffmpeg.exe to release dir

  2. Download https://github.com/aler9/rtsp-simple-server/releases/download/v0.20.0/rtsp-simple-server_v0.20.0_windows_amd64.zip

    Extract rtsp-simple-server.exe and rtsp-simple-server.yml to release dir

  3. Download https://upgrade-file.bambulab.cn/studio/plugins/01.03.00.02/win_01.03.00.02.zip

    Extract BambuSource.dll to release dir

  4. start start_rtsp_feed.bat

  5. 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

macOS

  1. Make sure you have the developer tools and homebrew installed

  2. Run the following

brew install curl`
cd BambuSource2Raw
make -f Makefile.macos

Linux

apt-get install -y unzip libcurl4 libcurl4-openssl-dev 
cd BambuSource2Raw
make -f Makefile.linux

Windows

  1. 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
    
  2. Download https://www.gyan.dev/ffmpeg/builds/ffmpeg-git-full.7z

    Extract bin\ffmpeg.exe to win-build/amd64 dir

  3. Download https://github.com/aler9/rtsp-simple-server/releases/download/v0.20.0/rtsp-simple-server_v0.20.0_windows_amd64.zip

    Extract rtsp-simple-server.exe and rtsp-simple-server.yml to win-build/amd64 dir

  4. Download https://upgrade-file.bambulab.cn/studio/plugins/01.03.00.02/win_01.03.00.02.zip

    Extract BambuSource.dll to win-build/amd64 dir

  5. Copy start_rtsp_feed.bat to win-build/amd64 dir

Remark

Currently login function is not implemented.

If bambusource2raw fails when starting stream, try to refresh token or relogin in BambuStudio and generate a new BambuNetworkEngine.conf.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.