|
|
@ -2642,22 +2642,9 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|
|
|
else
|
|
|
|
else
|
|
|
|
return "-hwaccel dxva2";
|
|
|
|
return "-hwaccel dxva2";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
switch (videoStream.Codec.ToLowerInvariant())
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case "avc":
|
|
|
|
return "-hwaccel vaapi";
|
|
|
|
case "h264":
|
|
|
|
|
|
|
|
if (_mediaEncoder.SupportsDecoder("h264_amf") && encodingOptions.HardwareDecodingCodecs.Contains("h264", StringComparer.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "-c:v h264_amf";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "mpeg2video":
|
|
|
|
|
|
|
|
if (_mediaEncoder.SupportsDecoder("hevc_amf") && encodingOptions.HardwareDecodingCodecs.Contains("mpeg2video", StringComparer.OrdinalIgnoreCase))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
return "-c:v mpeg2_mmal";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|