From c2d15b4e3a57998d86663c4d6a6da8526a22481c Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Thu, 4 Jun 2026 17:11:47 +0000 Subject: [PATCH] debug: capture raw2bmx output to log --- services/capture/src/capture-manager.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/services/capture/src/capture-manager.js b/services/capture/src/capture-manager.js index 45e4bf2..3d6908a 100644 --- a/services/capture/src/capture-manager.js +++ b/services/capture/src/capture-manager.js @@ -936,12 +936,8 @@ cleanup() { rm -f "$VF" "$AF"; [ -n "$PATCHPID" ] && kill "$PATCHPID" 2>/dev/nul # Prime both FIFOs read-write (non-blocking) to break the open-order deadlock. exec 7<>"$VF" 8<>"$AF" # raw2bmx: close priming FDs (no stray writer) before exec so it sees real EOF. -# CRITICAL: redirect raw2bmx stdin from /dev/null so it does NOT inherit the -# parent bash stdin. When the video source is fc_pipe (framecache), bash stdin -# carries the raw video stream destined for ffmpeg's pipe:0 — if raw2bmx also -# inherited fd 0 it would steal bytes from that stream, corrupting both the -# growing master and the ffmpeg input. -( exec 7>&- 8>&- 0&- 8>&- 0/tmp/raw2bmx.log 2>&1 ) & BMXPID=$! # ffmpeg: closes priming FDs and EXPLICITLY inherits bash stdin (fd 0) so that # 'pipe:0' reads the fc_pipe video stream Node piped into this orchestrator's