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