overdue code cleanup (#1271)
This commit is contained in:
@@ -6,7 +6,7 @@ namespace ErsatzTV.FFmpeg.Encoder.Nvenc;
|
||||
public class EncoderHevcNvenc : EncoderBase
|
||||
{
|
||||
private readonly bool _bFrames;
|
||||
|
||||
|
||||
public EncoderHevcNvenc(IHardwareCapabilities hardwareCapabilities)
|
||||
{
|
||||
if (hardwareCapabilities is NvidiaHardwareCapabilities nvidia)
|
||||
@@ -17,11 +17,12 @@ public class EncoderHevcNvenc : EncoderBase
|
||||
|
||||
public override string Name => "hevc_nvenc";
|
||||
public override StreamKind Kind => StreamKind.Video;
|
||||
|
||||
public override IList<string> OutputOptions =>
|
||||
new[] { "-c:v", "hevc_nvenc", "-b_ref_mode", _bFrames ? "1" : "0" };
|
||||
|
||||
public override FrameState NextState(FrameState currentState) => currentState with
|
||||
{
|
||||
VideoFormat = VideoFormat.Hevc
|
||||
};
|
||||
|
||||
public override IList<string> OutputOptions =>
|
||||
new[] { "-c:v", "hevc_nvenc", "-b_ref_mode", _bFrames ? "1" : "0" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user