public static async Task GetFrames(bool stepByStep = false) { current.RefreshAlpha(); if (!current.inputIsFrames) // Extract if input is video, import if image sequence { await ExtractFrames(current.inPath, current.framesFolder, current.alpha, !stepByStep); } else { await FfmpegExtract.ImportImages(current.inPath, current.framesFolder, current.alpha, await Utils.GetOutputResolution(current.inPath, true)); } }
public static async Task GetFrames() { current.RefreshAlpha(); if (Config.GetBool("scnDetect")) { Program.mainForm.SetStatus("Extracting scenes from video..."); await FfmpegExtract.ExtractSceneChanges(current.inPath, Path.Combine(current.tempFolder, Paths.scenesDir), current.inFps, current.inputIsFrames); } if (!current.inputIsFrames) // Extract if input is video, import if image sequence { await ExtractFrames(current.inPath, current.framesFolder, current.alpha); } else { await FfmpegExtract.ImportImages(current.inPath, current.framesFolder, current.alpha, await Utils.GetOutputResolution(current.inPath, true)); } }