Provide fps argument to input parameter as well

This commit is contained in:
Malte Rosenbjerg 2025-10-17 21:49:42 +02:00
parent fc5e8a66e3
commit 0f800c4333

View file

@ -132,7 +132,8 @@ public static class FFMpeg
} }
return FFMpegArguments return FFMpegArguments
.FromFileInput(Path.Combine(tempFolderName, $"%09d{fileExtension}"), false) .FromFileInput(Path.Combine(tempFolderName, $"%09d{fileExtension}"), false, options => options
.WithFramerate(frameRate))
.OutputToFile(output, true, options => options .OutputToFile(output, true, options => options
.ForcePixelFormat("yuv420p") .ForcePixelFormat("yuv420p")
.Resize(width!.Value, height!.Value) .Resize(width!.Value, height!.Value)