Progress bar for async frame counting with ffmpeg

This commit is contained in:
N00MKRAD
2021-02-07 18:12:41 +01:00
parent 4b5da3df75
commit 34d1113d8c
4 changed files with 14 additions and 28 deletions

View File

@@ -34,8 +34,8 @@ namespace Flowframes.UI
Logger.Log("Your file seems to be on an HDD or USB device. It is recommended to interpolate videos on an SSD drive for best performance.");
Logger.Log("Loading metadata...");
Program.mainForm.currInDuration = FfmpegCommands.GetDuration(path);
int frameCount = await InterpolateUtils.GetInputFrameCountAsync(path);
string fpsStr = "Not Found";
float fps = await IOUtils.GetFpsFolderOrVideo(path);
fpsInTbox.Text = fps.ToString();
@@ -50,7 +50,6 @@ namespace Flowframes.UI
Program.mainForm.currInFps = fps;
Program.mainForm.currInFrames = frameCount;
InterpolateUtils.UpdateVideoDuration(path);
Program.mainForm.UpdateInputInfo();
CheckExistingFolder(path, outputTbox.Text.Trim());
await Task.Delay(10);