fix some profiles for H264 AMF encoder
This commit is contained in:
parent
f42208673f
commit
b61541b6f7
|
@ -1177,6 +1177,18 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
profile = "high";
|
profile = "high";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (string.Equals(videoEncoder, "h264_amf", StringComparison.OrdinalIgnoreCase)
|
||||||
|
&& profile.Contains("constrainedbaseline", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
profile = "constrained_baseline";
|
||||||
|
}
|
||||||
|
|
||||||
|
if (string.Equals(videoEncoder, "h264_amf", StringComparison.OrdinalIgnoreCase)
|
||||||
|
&& profile.Contains("constrainedhigh", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
profile = "constrained_high";
|
||||||
|
}
|
||||||
|
|
||||||
// Currently hevc_amf only support encoding HEVC Main Profile, otherwise force Main Profile.
|
// Currently hevc_amf only support encoding HEVC Main Profile, otherwise force Main Profile.
|
||||||
if (string.Equals(videoEncoder, "hevc_amf", StringComparison.OrdinalIgnoreCase)
|
if (string.Equals(videoEncoder, "hevc_amf", StringComparison.OrdinalIgnoreCase)
|
||||||
&& profile.Contains("main10", StringComparison.OrdinalIgnoreCase))
|
&& profile.Contains("main10", StringComparison.OrdinalIgnoreCase))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user