From 6a8c3db820c686bac6fb2a42e37394bcc6e3d69d Mon Sep 17 00:00:00 2001 From: N00MKRAD <61149547+n00mkrad@users.noreply.github.com> Date: Mon, 10 Mar 2025 11:58:28 +0100 Subject: [PATCH] Do not add input rate arg if the specified rate is 0 --- CodeLegacy/Media/FfmpegEncode.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CodeLegacy/Media/FfmpegEncode.cs b/CodeLegacy/Media/FfmpegEncode.cs index f015032..ffc4060 100644 --- a/CodeLegacy/Media/FfmpegEncode.cs +++ b/CodeLegacy/Media/FfmpegEncode.cs @@ -47,9 +47,12 @@ namespace Flowframes.Media public static async Task GetFfmpegExportArgsIn(Fraction fps, float itsScale, int rotation = 0) { var args = new List(); - fps = fps / new Fraction(itsScale); - args.Add($"-r {fps}"); + + if(fps > 0.1f) + { + args.Add($"-r {fps}"); + } if(rotation != 0) {