More music fixes
This commit is contained in:
@@ -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()}`);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user