From 3f4ab12815a4faff9efacc9bcacb45553f55598f Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Sat, 3 Apr 2021 00:22:32 +0200 Subject: [PATCH] Fixed scene extraction --- Code/Media/FfmpegExtract.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Media/FfmpegExtract.cs b/Code/Media/FfmpegExtract.cs index b1f9f85..413623d 100644 --- a/Code/Media/FfmpegExtract.cs +++ b/Code/Media/FfmpegExtract.cs @@ -32,7 +32,7 @@ namespace Flowframes.Media string scnDetect = $"-vf \"select='gt(scene,{Config.GetFloatString("scnDetectValue")})'\""; string rateArg = (rate.GetFloat() > 0) ? $"-r {rate}" : ""; - string args = $"{rateArg} -vsync 0 {GetTrimArg(true)} {inArg} {compr} {scnDetect} -frame_pts 1 -s 256x144 {GetTrimArg(false)} \"{outDir}/%{Padding.inputFrames}d.png\""; + string args = $"-vsync 0 {GetTrimArg(true)} {inArg} {compr} {rateArg} {scnDetect} -frame_pts 1 -s 256x144 {GetTrimArg(false)} \"{outDir}/%{Padding.inputFrames}d.png\""; LogMode logMode = Interpolate.currentInputFrameCount > 50 ? LogMode.OnlyLastLine : LogMode.Hidden; await RunFfmpeg(args, logMode, inputIsFrames ? "panic" : "warning", TaskType.ExtractFrames, true);