Increased stream analyze duration to 0.5 seconds
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user