mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-24 04:09:29 +01:00
Added step-by-step processing mode, err handling for disk detection and RAM check
This commit is contained in:
@@ -20,6 +20,7 @@ namespace Flowframes
|
||||
|
||||
public static async Task ExtractSceneChanges(string inputFile, string frameFolderPath)
|
||||
{
|
||||
Logger.Log("Extracting scene changes using FFmpeg...");
|
||||
await VideoToFrames(inputFile, frameFolderPath, (Config.GetInt("dedupMode") == 2), false, new Size(320, 180), true, true);
|
||||
}
|
||||
|
||||
@@ -30,6 +31,7 @@ namespace Flowframes
|
||||
|
||||
public static async Task VideoToFrames(string inputFile, string frameFolderPath, bool deDupe, bool delSrc, Size size, bool timecodes = true, bool sceneDetect = false)
|
||||
{
|
||||
if(!sceneDetect) Logger.Log("Extracting video frames using FFmpeg...");
|
||||
string sizeStr = (size.Width > 1 && size.Height > 1) ? $"-s {size.Width}x{size.Height}" : "";
|
||||
if (!Directory.Exists(frameFolderPath))
|
||||
Directory.CreateDirectory(frameFolderPath);
|
||||
|
||||
Reference in New Issue
Block a user