Just got a new H2C. Trying to connect to the camera via RTSP. Anybody know if this is possible? I’ve tried rtsps://bblp:CODE@IP_ADDR:322/streaming/live/1 but that doesn’t seem to work. Have also tried it without a port specified.
My P1S used a docker app called P1Streamer I think to convert it to RTSP. Was hoping I could connect directly to the camera. I’m not in LAN only mode at the moment. Hoping I don’t have to for that.
Think it needs to be LAN only mode for RTSP to be open.
I get it through Home Assistant using some third party module. Not in LAN mode, added it via home kit emulator to Apple and I can watch the camera in PIP on Apple TV as well. I dont know the URL it uses, it’s probably easy enough to find in the repository though. I’ll see if I can find it.
Here is the python file that builds the URL directly from GitHub, I glanced at it, looks pretty simple and you might have it close. ha-bambulab/custom_components/bambu_lab/camera.py at main · greghesp/ha-bambulab · GitHub
Edit - Im not sure if you need to turn something on with live view inside the printer or not, I do have a USB drive for timelapse but not able to check to see the other settings ATM.
Yeah I also have Home Assistant. It shows a Camera sensor for my P1S and I can download the snapshot (it tries to stream video but fails). I do not have a camera sensor or other device for the H2C. I do have a switch to turn camera on and off in Home Assistant for the H2C but that doesn’t help me view video.
I do have a SD card inserted and formatted and have video set to 1080 on the printer. Not sure what else I need to do. I do like Bambu Handy so don’t want to go full “LAN only mode”. I’ve deleted and re-created the H2C in Home Assistant but no camera seems to be detected.
I noticed that the video never works, just still frame inside the native App Store apps, but from a web browser it works fine. I end up with a ! after first frame expires. Honestly I added it, logged in, and never tweaked anything so I might have just gotten lucky. I dont have any custom YAML stuff turned on or webrtc stuff. I do have Unifi Protect integration but never use it except the animal sensors outside for garbage bandits. I 99% of the time use the home kit on Apple TV if I want to watch the camera though.
I found another setting on my printer on LAN mode that (I forget the exact wording) but was basically “LAN only Live View” that I was able to turn on without turning on full LAN mode. Restarted the HA integration and it detected 65 (instead of 64) entities with the camera being the new one.
VLC does not work still but I’m not too concerned, for testing purposes, this worked:
ffplay -rtsp_transport tcp rtsps://bblp:CODE@IP_ADDR:322/streaming/live/
It works in Scrypted (more reliable for cameras than HA for me) and that’s what I wanted so I’m all set. Thanks all.
Click the ‘Camera Setting’ icon at the top-right of the video panel. Then you can toggle the ‘Go Live’ button in the pop up panel. On windows it will produce a file at AppData\Roaming\BambuStudio\cameratools\ffmpeg.sdp and if you associate .sdp with VLC it will work.