Created
November 23, 2024 02:21
-
-
Save khlam/146a72d3fc4d549f6f767cf826c32445 to your computer and use it in GitHub Desktop.
Config: Homebridge Camera FFmpeg for bambu lab x1c lan mode camera
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "Camera FFmpeg", | |
| "cameras": [ | |
| { | |
| "name": "bambu", | |
| "videoConfig": { | |
| "source": "-rtsp_transport tcp -i rtsps://bblp:<LAN mode access code>@<X1C IP address>:322/streaming/live/1" | |
| } | |
| } | |
| ] | |
| } |
Author
Thanks so much! I'll give it a shot.
I think I found a solution. Someone on Reddit suggested that since the Handy app has a timeout on the video feed, perhaps we need to make ffmpeg timeout.
I added this parameter to the URL and it seems to have resolved the issue:
-timelimit 300
So my config is:
-timelimit 300 -rtsp_transport tcp -i rtsps://bblp:<LAN mode access code>@<X1C IP address>:322/streaming/live/1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi thanks for reaching out. Yes occasionally I need to power-cycle the X1C but overall my stream is stable and works for weeks.
Hard to say what could be the issue, maybe verify the printer has a static IP, can send data over UDP, router firewall rules, update x1c firmware (I'm on 1.08), etc. Incase this helps debugging, the following ffmpeg command streams the camera to a file which can be viewed with VLC.
ffmpeg -i rtsps://bblp:<LAN mode access code>@<X1C IP address>/streaming/live/1 -c copy output.ts