Skip to content

ADB Bridge 5.2.1

Latest

Choose a tag to compare

@nuken nuken released this 12 Oct 21:58
· 1 commit to main since this release
c074287
  • Goroutine Memory Leak Fix: Replaced the buffered channel and background goroutine reading FFmpeg stdout with a direct streaming loop to prevent memory and CPU leaks when clients disconnect.

  • HTTP Chunk Flushing (Local): Implemented http.Flusher for the local capture card route to immediately deliver video chunks, bypassing Go's default buffering and eliminating stream jitter.

  • Keyframe and GOP Optimization: Forced a 1-second Group of Pictures (GOP) interval using -g and -keyint_min so Channels DVR receives keyframes instantly without waiting 4-5 seconds to begin decoding.

  • Dynamic Muxrate Adjustment: Removed the rigid -muxrate 10M argument that was wasting bandwidth with null packet padding and causing stream drops during high-motion scenes.

  • MPEG-TS Header Broadcasts: Added -pat_period 0.1 and -mpegts_flags +resend_headers to frequently broadcast PAT/PMT program tables, allowing Channels DVR to lock onto the stream immediately.

  • HTTP Chunk Flushing (Network Proxy): Applied the same http.Flusher logic to the network encoder proxy loop to deliver packets instantly while preserving the user-defined blackoutMs splash screen delay.