* upgrade sdk * fix warnings in ersatztv.ffmpeg * fix warnings in ersatztv.core * fix warnings in ersatztv.infrastructure * fix warnings in ersatztv.application * disable analysis for migrations projects * fix warnings in ersatztv.scanner * fix warnings in ersatztv * upgrade project framework * update github actions and dockerfiles
19 lines
514 B
C#
19 lines
514 B
C#
namespace ErsatzTV.FFmpeg.OutputOption;
|
|
|
|
public class VideoBufferSizeOutputOption : OutputOption
|
|
{
|
|
private readonly int _decoderBufferSize;
|
|
|
|
public VideoBufferSizeOutputOption(int decoderBufferSize) => _decoderBufferSize = decoderBufferSize;
|
|
|
|
public override string[] OutputOptions => new[]
|
|
{
|
|
"-bufsize:v", $"{_decoderBufferSize}k"
|
|
};
|
|
|
|
public override FrameState NextState(FrameState currentState) => currentState with
|
|
{
|
|
VideoBufferSize = _decoderBufferSize
|
|
};
|
|
}
|