Increased stream analyze duration to 0.5 seconds

This commit is contained in:
Trevor Mears
2026-01-01 16:16:39 -08:00
parent d5ebd270dc
commit 024b847d05
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ router.get('/', (req, res) => {
'-loglevel', 'warning', '-loglevel', 'warning',
// Low-latency startup: reduce probe/analyze time for faster first bytes // Low-latency startup: reduce probe/analyze time for faster first bytes
'-probesize', '32768', '-probesize', '32768',
'-analyzeduration', '0', '-analyzeduration', '500000', // 0.5 seconds - enough to detect audio
// Error resilience: discard corrupt packets, generate timestamps, ignore DTS, no buffering // Error resilience: discard corrupt packets, generate timestamps, ignore DTS, no buffering
'-fflags', '+genpts+discardcorrupt+igndts+nobuffer', '-fflags', '+genpts+discardcorrupt+igndts+nobuffer',
// Ignore errors in stream and continue // Ignore errors in stream and continue
+1 -1
View File
@@ -27,7 +27,7 @@ router.get('/', (req, res) => {
'-loglevel', 'warning', '-loglevel', 'warning',
// Low-latency startup: reduce probe/analyze time for faster first bytes // Low-latency startup: reduce probe/analyze time for faster first bytes
'-probesize', '32768', '-probesize', '32768',
'-analyzeduration', '0', '-analyzeduration', '500000', // 0.5 seconds - enough to detect audio
// Error resilience: discard corrupt packets, generate timestamps, ignore DTS, no buffering // Error resilience: discard corrupt packets, generate timestamps, ignore DTS, no buffering
'-fflags', '+genpts+discardcorrupt+igndts+nobuffer', '-fflags', '+genpts+discardcorrupt+igndts+nobuffer',
// Ignore errors in stream and continue // Ignore errors in stream and continue