|
|
|
|
@ -106,11 +106,9 @@ namespace ErsatzTV.Core.FFmpeg
@@ -106,11 +106,9 @@ namespace ErsatzTV.Core.FFmpeg
|
|
|
|
|
result.VideoDecoder = |
|
|
|
|
(result.HardwareAcceleration, videoStream.Codec, videoStream.PixelFormat) switch |
|
|
|
|
{ |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "h264", "yuv420p10le" or "yuv444p10le") => "h264", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "hevc", "yuv420p10le" or "yuv444p10le") => "hevc", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "mpeg2video", "yuv420p10le" or "yuv444p10le") => |
|
|
|
|
"mpeg2", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "mpeg4", "yuv420p10le" or "yuv444p10le") => "mpeg4", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "h264", "yuv420p10le" or "yuv444p" or "yuv444p10le") => |
|
|
|
|
"h264", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "hevc", "yuv444p" or "yuv444p10le") => "hevc", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "h264", _) => "h264_cuvid", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "hevc", _) => "hevc_cuvid", |
|
|
|
|
(HardwareAccelerationKind.Nvenc, "mpeg2video", _) => "mpeg2_cuvid", |
|
|
|
|
|