mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-28 21:59:58 -06:00
FF-1553 - aborting if more than 10 packet errors are detected
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -284,19 +284,20 @@ public class FFMpegEncoder
|
||||
}
|
||||
}
|
||||
|
||||
private int PacketErrorCount = 0;
|
||||
private int ErrorCount = 0;
|
||||
|
||||
private void CheckOutputLine(string line)
|
||||
{
|
||||
if (line.Contains("Skipping NAL unit"))
|
||||
return; // just slightly ignore these
|
||||
|
||||
if (line.Contains("Error submitting a packet to the muxer"))
|
||||
if (line.Contains("Error "))
|
||||
{
|
||||
if (++PacketErrorCount > 10)
|
||||
if (++ErrorCount > 20)
|
||||
{
|
||||
// Abort
|
||||
Abort("Error submitting a packet to the muxer");
|
||||
Logger.ELog("Maximum number of errors triggered: " + line);
|
||||
Abort(line);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user