mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 12:19:27 +01:00
cleanup
This commit is contained in:
@@ -141,28 +141,6 @@ namespace Flowframes
|
||||
return false;
|
||||
}
|
||||
|
||||
static void FfmpegOutputHandlerSilent (object sendingProcess, DataReceivedEventArgs outLine)
|
||||
{
|
||||
timeSinceLastOutput.Restart();
|
||||
|
||||
if (outLine == null || outLine.Data == null || outLine.Data.Trim().Length < 2)
|
||||
return;
|
||||
|
||||
string line = outLine.Data;
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(lastOutputFfmpeg))
|
||||
lastOutputFfmpeg += "\n";
|
||||
|
||||
lastOutputFfmpeg = lastOutputFfmpeg + line;
|
||||
Logger.Log(line, true, false, "ffmpeg");
|
||||
|
||||
if (showProgressBar && line.Contains("time="))
|
||||
{
|
||||
Regex timeRegex = new Regex("(?<=time=).*(?= )");
|
||||
UpdateFfmpegProgress(timeRegex.Match(line).Value);
|
||||
}
|
||||
}
|
||||
|
||||
public static async Task<string> GetFfmpegOutputAsync(string args, bool setBusy = false, bool progressBar = false)
|
||||
{
|
||||
timeSinceLastOutput.Restart();
|
||||
|
||||
Reference in New Issue
Block a user