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.
19 lines
477 B
19 lines
477 B
namespace ErsatzTV.FFmpeg.OutputOption; |
|
|
|
public class VideoBitrateOutputOption : OutputOption |
|
{ |
|
private readonly int _bitrate; |
|
|
|
public VideoBitrateOutputOption(int bitrate) => _bitrate = bitrate; |
|
|
|
public override string[] OutputOptions => new[] |
|
{ |
|
"-b:v", $"{_bitrate}k", |
|
"-maxrate:v", $"{_bitrate}k" |
|
}; |
|
|
|
public override FrameState NextState(FrameState currentState) => currentState with |
|
{ |
|
VideoBitrate = _bitrate |
|
}; |
|
}
|
|
|