Files
ersatztv/ErsatzTV.FFmpeg/Option/VideoBitrateOutputOption.cs
T
Jason DoveandGitHub c02b83d0d6 code cleanup (#743)
* update tools

* run code cleanup

* update dependencies
2022-04-19 17:47:18 -05:00

20 lines
487 B
C#

namespace ErsatzTV.FFmpeg.Option;
public class VideoBitrateOutputOption : OutputOption
{
private readonly int _bitrate;
public VideoBitrateOutputOption(int bitrate) => _bitrate = bitrate;
public override IList<string> OutputOptions => new List<string>
{
"-b:v", $"{_bitrate}k",
"-maxrate:v", $"{_bitrate}k"
};
public override FrameState NextState(FrameState currentState) => currentState with
{
VideoBitrate = _bitrate
};
}