Do not apply FPS filter for VFR since muxed timestamps would mismatch

This commit is contained in:
N00MKRAD
2024-11-14 20:38:41 +01:00
parent f9a689878e
commit 7e043f5273

View File

@@ -67,7 +67,16 @@ namespace Flowframes.Media
var mf = Interpolate.currentMediaFile;
if (resampleFps.Float >= 0.1f)
filters.Add($"fps={resampleFps}");
{
if (Interpolate.currentMediaFile.IsVfr)
{
Logger.Log($"Ignoring {resampleFps.Float} FPS limit as this is currently unsupported for variable framerate videos.");
}
else
{
filters.Add($"fps={resampleFps}");
}
}
if (Config.GetBool(Config.Key.keepColorSpace) && extraData.HasAllColorValues())
{