Skip to content

BambuLab X1C 3D printer (and other devices with short RTSP session timeouts) experience video freezing after 10-15 seconds #562

Description

@KishCom

The VDK library sends RTSP keep-alive packets every 25 seconds, but BambuLab cameras have a 10-second session timeout. The session expires before the keep-alive is sent.

  1. Run go mod vendor to update the vendor directory
  2. Apply the single line change outlined below to vendor/github.com/deepch/vdk/format/rtspv2/client.go
  3. Rebuild with go build -mod=vendor
// Changed from:
if int(time.Now().Sub(timer).Seconds()) > 25 {

// To:
if int(time.Now().Sub(timer).Seconds()) > 5 {

I realize this is probably better posted in the deepch/vdk repo, but it hasn't been updated in a couple of years and several of the newer open issues there are users from this project. Hopefully by posting this here I can help others using the RTSPtoWeb app who are having similar issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions