* 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
553 B
C#
19 lines
553 B
C#
using ErsatzTV.FFmpeg.Format;
|
|
|
|
namespace ErsatzTV.FFmpeg.Encoder.Qsv;
|
|
|
|
public class EncoderMpeg2Qsv : EncoderBase
|
|
{
|
|
public override string Name => "mpeg2_qsv";
|
|
public override StreamKind Kind => StreamKind.Video;
|
|
|
|
public override string[] OutputOptions =>
|
|
new[] { "-c:v", "mpeg2_qsv", "-low_power", "0", "-look_ahead", "0" };
|
|
|
|
public override FrameState NextState(FrameState currentState) => currentState with
|
|
{
|
|
VideoFormat = VideoFormat.Mpeg2Video,
|
|
FrameDataLocation = FrameDataLocation.Hardware
|
|
};
|
|
}
|