using ErsatzTV.FFmpeg.Environment; namespace ErsatzTV.FFmpeg.Option; public class RealtimeInputOption : IPipelineStep { public IList EnvironmentVariables => Array.Empty(); // some builds of ffmpeg seem to hang when realtime input is requested with multithreading, // so we force a single thread here // public IList GlobalOptions => new List { "-threads", "1" }; public IList GlobalOptions => Array.Empty(); public IList InputOptions => new List { "-re" }; public IList FilterOptions => Array.Empty(); public IList OutputOptions => Array.Empty(); public FrameState NextState(FrameState currentState) => currentState with { Realtime = true }; }