using ErsatzTV.FFmpeg.Environment; namespace ErsatzTV.FFmpeg.Option; public class FrameRateOutputOption : IPipelineStep { private readonly int _frameRate; public FrameRateOutputOption(int frameRate) => _frameRate = frameRate; public IList EnvironmentVariables => Array.Empty(); public IList GlobalOptions => Array.Empty(); public IList InputOptions(InputFile inputFile) => Array.Empty(); public IList FilterOptions => Array.Empty(); public IList OutputOptions => new List { "-r", _frameRate.ToString(), "-vsync", "cfr" }; public FrameState NextState(FrameState currentState) => currentState with { FrameRate = _frameRate }; }