* fix formatting rules * reformat ersatztv * reformat ersatztv.application * reformat ersatztv.core * refactor ersatztv.core.tests * reformat ersatztv.ffmpeg * reformat ersatztv.ffmpeg.tests * reformat ersatztv.infrastructure * cleanup infra mysql * cleanup infra sqlite * cleanup infra tests * cleanup ersatztv.scanner * cleanup ersatztv.scanner.tests * sln cleanup * update dependencies
20 lines
573 B
C#
20 lines
573 B
C#
namespace ErsatzTV.FFmpeg.Capabilities;
|
|
|
|
public record FFmpegKnownEncoder
|
|
{
|
|
public static readonly FFmpegKnownEncoder H264VideoToolbox = new("h264_videotoolbox");
|
|
public static readonly FFmpegKnownEncoder HevcVideoToolbox = new("hevc_videotoolbox");
|
|
private FFmpegKnownEncoder(string Name) => this.Name = Name;
|
|
|
|
public string Name { get; }
|
|
|
|
// only list the encoders that we actually check for
|
|
public static IList<string> AllEncoders =>
|
|
[
|
|
"h264_amf",
|
|
"hevc_amf",
|
|
"h264_videotoolbox",
|
|
"hevc_videotoolbox"
|
|
];
|
|
}
|