From 024b847d0531921eea6710bf40869457eee51420 Mon Sep 17 00:00:00 2001 From: Trevor Mears Date: Thu, 1 Jan 2026 16:16:39 -0800 Subject: [PATCH] Increased stream analyze duration to 0.5 seconds --- server/routes/remux.js | 2 +- server/routes/transcode.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/remux.js b/server/routes/remux.js index a7ca193..2f0db39 100644 --- a/server/routes/remux.js +++ b/server/routes/remux.js @@ -28,7 +28,7 @@ router.get('/', (req, res) => { '-loglevel', 'warning', // Low-latency startup: reduce probe/analyze time for faster first bytes '-probesize', '32768', - '-analyzeduration', '0', + '-analyzeduration', '500000', // 0.5 seconds - enough to detect audio // Error resilience: discard corrupt packets, generate timestamps, ignore DTS, no buffering '-fflags', '+genpts+discardcorrupt+igndts+nobuffer', // Ignore errors in stream and continue diff --git a/server/routes/transcode.js b/server/routes/transcode.js index c825eeb..1480917 100644 --- a/server/routes/transcode.js +++ b/server/routes/transcode.js @@ -27,7 +27,7 @@ router.get('/', (req, res) => { '-loglevel', 'warning', // Low-latency startup: reduce probe/analyze time for faster first bytes '-probesize', '32768', - '-analyzeduration', '0', + '-analyzeduration', '500000', // 0.5 seconds - enough to detect audio // Error resilience: discard corrupt packets, generate timestamps, ignore DTS, no buffering '-fflags', '+genpts+discardcorrupt+igndts+nobuffer', // Ignore errors in stream and continue