Log error if audio to text cannot generate wav file

This commit is contained in:
niksedk 2022-09-01 21:36:35 +02:00
parent aecb66b1cd
commit 3f035d41e9

View File

@ -437,6 +437,18 @@ namespace Nikse.SubtitleEdit.Forms
}
}
Application.DoEvents();
System.Threading.Thread.Sleep(100);
if (!File.Exists(outWaveFile))
{
SeLogger.Error("Generated wave file not found: " + outWaveFile + Environment.NewLine +
"ffmpeg: " + process.StartInfo.FileName + Environment.NewLine +
"Parameters: " + process.StartInfo.Arguments + Environment.NewLine +
"OS: " + Environment.OSVersion + Environment.NewLine +
"64-bit: " + Environment.Is64BitOperatingSystem);
}
return outWaveFile;
}