-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTSP Feed for printer cameras #1536
Comments
+1 For an easily accessible RTSP camera stream feed, such that we can access it without needing bambu studio or the camera tools plugin running as a middleman. This way, I could open it in a browser or hook it up to several home automation platforms easily, or open it conveniently on my phone whether or not it is in LAN only mode. |
I didn't copy the best, I took the drama out of it. End of. Stop being a child. |
+1 for webcam style access direct from the printer. |
+1 would love this feature as I now have multiple bambus connected to home assistant - being able to view the camera for each from one place and without internet would be useful |
+1 this would be a great feature |
+1 for a RTSP Stream direct from 3D-Printer |
+1 I think anyone coming from a printer using OctoPrint or Klipper expected RTSP out of the box |
+1 for RTSP, would love to be able to see what my printer is doing from my TV and steam. |
+1 for RTSP direct from 3D-Printer |
need it! hate to use wyze instead of existing camera |
+1 for RTSP direct from 3D-Printer |
+1 for a video stream locally from the 3d printer. |
+1 for LAN RTSP |
+1 for RTSP on LAN |
+1 for stream |
+1 This would be awesome! would be great to have this linked to my home automation dashboard! |
+1 for this. Would be great |
Just a reminder that people who are interested in RTSP may also be interested in this one: #1504 |
+1 would be awesome to add to BlueIris. |
+1 for this. |
+1 for RTSP on LAN |
+1 |
2 similar comments
+1 |
+1 |
+1 For an accessible RTSP camera stream on LAN. |
+1 for this would be amazing to have it natively work in both handy / desktop apps without having to have home assistant running |
@synman see the ChamberImageThread() method here for more optimized processing which eliminates the search entirely: It's on my list to see how I can convert the stream of jpegs into an mjpeg video stream so it can be exposed as a camera feed in home assistant. I hadn't got very far into investigating the plethora of tools that could be used but I'm pretty familiar with go2rtc as I'm using it to make the X1 stream reliable (by using it to proxy it so there's only a single connection to the printer that never disconnects). |
@AdrianGarside thanks for that link... ya know, I had looked at pybambu the other night and glossed over the webcam code. I'll see about adapting it for my specific use case. |
The pybambu snippet works wonderfully... Better than anything I've got out of handy and/or studio. Thanks again! |
Awesome. If you can expand on how you can convert the jpegs into an mjpeg with go2rtc that would be very helpful to me! :) |
here's a pure python solution I pulled together today using a multi-threaded mjpeg web server I suped up a couple years ago and the protocol details provided in this thread. |
golang version of @synman 's bambu-go2rtc if anyone need to run on device without python environment. https://gist.github.com/0x5e/dfb03f2ae7335bf03bb4b9cf59971597 does anyone know why a1 mini's camera stream is so slow, only 0.5~1 fps? Update: |
It's how it is sadly. A1 and the P1 series' cameras are intentionally frame rate limited due to the processor (an ESP32) not being able to handle a high framerate camera alongside managing the core functions of the printer. |
Sadly, 6 months later, this is still the case. Had to ditch the camera in HA Automations as it frequently caused them to fail (I/O Error, Timeouts) |
I did hear recently that the 1.8 firmware supposedly is going to bring reliability improvements to camera streams via live-view and wifi. Only a rumour though but wouldn't be surprised. |
RTSP stability issue may be related to the client, network performance and the server on the printer. To narrow down if this issue is related to the client, would you please check if it is OK with BambuStudio? If there issue is still there, please share the LOG of Studio and Printer with us. Thanks! |
Handy and Bambu Studio keep the connection, but querying the printer directly (LAN Live View turned on) results in no image. Please also see: Most common error for me is:
|
@synman Hi. Looks like you using python to convert data. I can add this code inside go2rtc. So it will be less CPU cost and more native. Just needs to access to stream. For example via Ngrok You or anyone else can PM me. |
For anyone with an X1 who comes across this, this seems to be a problem with the P1 series rather than the X1 series. When an X1 is in LAN mode, you can connect to it at streams:
bambu: rtsps://bblp:<access code>:<ip>:322/streaming/live/1 You can also connect directly with VLC, ffmpeg, mpv etc. but go2rtc makes it much more stable. Maybe you might want to add it to the docs @AlexxIT? |
Just FYI for X1 series, it does not require LAN mode, but does require LAN Liveview to be enabled, the name is slightly confusing but it is separate. As for P1/A1 series, they do not have the rtsps functionality at this time. |
Trying to access the camera feed this way |
This works perfectly fine: https://github.com/slynn1324/BambuP1Streamer/blob/main/Dockerfile Using scrypted, ffmpeg plugin. If anyone want detailed steps, please let me know. Will document this with all configuration details. |
Iam trying that since 3 days…
|
Try |
Bambu studio doesn’t use the RTSP connection. Support for that was added solely for external access to the video feed locally on the network. It often stops working and rebooting the printer is the only way to start it working again. |
@saileshkotha Does this Docker app still work for you on newest printer firmware? I get errors when trying to stream with it on newest P1S FW. |
Using Scrypted here which works okay, though I'm disappointed in the reliability of the RTSPS stream. It frequently becomes inoperable after a short time and only resumes working after a full restart of the printer. I'd really appreciate a more reliable local RTSPS stream. |
@bobobo1618, how were you able to get VLC to work? VLC doesn't seem to recognize the |
If you could detail it or send me it i have got as far as installing scrypted on and adding ffmpeg plugin within there but then all the settings i dont know |
Is your feature request related to a problem? Please describe.
As a user, I cannot access the camera stream of my printer without using the Handy app or Bambu Studio
Describe the solution you'd like
As a user, I would like to be able to access my devices camera via a RTSP stream locally. This should be available whilst the device is in LAN or Cloud Mode, and should have the option to be secured using credentials, without the need for Bambu Studio camera tools to forward on the stream
Describe alternatives you've considered
There are no alternatives, due to the way this is currently implemented
Additional context
This was originally raised here
#1372, however the original poster decided to edit and close the issue for some reason. They then became toxic and it seems theirs GitHub account has been closed.
It had around 60
+1
comments and quite a lot of votes on the original post, so a much requested feature.This feature is for the printer team, and is not a request for Bambu Studio.
As a developer of the Home Assistant integration, this is a much requested feature, but we are unable to implement this without a RTSP feed.
The text was updated successfully, but these errors were encountered: