1
0

More music fixes

This commit is contained in:
2025-11-09 12:02:01 -05:00
parent 3a2a9e12e3
commit 86a79d0cc0
2 changed files with 24 additions and 6 deletions

View File

@@ -86,12 +86,18 @@ async function streamHandler(req, res, { useMusic = false, musicPath, lateGeocod
ffmpegProcess.stderr.on('data', (data) => {
const message = data.toString();
// Log important warnings about audio discontinuities or errors
// Suppress expected warnings from corrupted audio frames and HLS piping
if (message.includes('failed to delete old segment') ||
message.includes('Error submitting packet to decoder') ||
message.includes('Invalid data found when processing input')) {
// These are expected with some music files - FFmpeg handles them gracefully
return;
}
// Log important warnings about stream issues
if (message.includes('Non-monotonous DTS') ||
message.includes('Application provided invalid') ||
message.includes('past duration') ||
message.includes('Error while decoding stream') ||
message.includes('Invalid data found')) {
message.includes('Error while decoding stream')) {
console.warn(`FFmpeg warning: ${message.trim()}`);
}
});