79719809

Date: 2025-07-30 10:37:29
Score: 0.5
Natty:
Report link

Adding this event handler solved my issue. Process is stopped crashing, just print the error

ffmpeg.stdin.on('error', (stdinError: any) => {
                    // This error means ffmpeg's stdin pipe closed unexpectedly.
                    cleanup(true, new Error(`FFmpeg stdin error: ${stdinError.message}`));
                });

Now in logs I see something like this:

Failed to get replay gain volume of the audio file Error: FFmpeg stdin error: write EPIPE

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rougher