Files
ersatztv/ErsatzTV.FFmpeg/OutputOption/VideoBitrateOutputOption.cs
T
Jason DoveandGitHub 245c4ec359 code analysis and cleanup (#1411)
* cleanup scanner project

* cleanup infrastructure projects

* cleanup ffmpeg project

* cleanup core project

* cleanup app project

* cleanup main project

* update dependencies

* code cleanup
2023-09-03 06:23:42 -05:00

20 lines
493 B
C#

namespace ErsatzTV.FFmpeg.OutputOption;
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
};
}