mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
567 B
18 lines
567 B
using ErsatzTV.FFmpeg.Environment; |
|
|
|
namespace ErsatzTV.FFmpeg.OutputOption; |
|
|
|
public class FrameRateOutputOption(FrameRate frameRate) : IPipelineStep |
|
{ |
|
public EnvironmentVariable[] EnvironmentVariables => []; |
|
public string[] GlobalOptions => []; |
|
public string[] InputOptions(InputFile inputFile) => []; |
|
public string[] FilterOptions => []; |
|
|
|
public string[] OutputOptions => ["-r", frameRate.RFrameRate, "-vsync", "cfr"]; |
|
|
|
public FrameState NextState(FrameState currentState) => currentState with |
|
{ |
|
FrameRate = frameRate |
|
}; |
|
}
|
|
|