Merge pull request #11713 from gnattu/fix-vt-h264-profile

Fix VideoToolbox H264 constrained profile option
This commit is contained in:
Bond-009 2024-05-21 13:58:01 +02:00 committed by GitHub
commit d608f1e3cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2083,6 +2083,18 @@ namespace MediaBrowser.Controller.MediaEncoding
profile = "constrained_high"; profile = "constrained_high";
} }
if (string.Equals(videoEncoder, "h264_videotoolbox", StringComparison.OrdinalIgnoreCase)
&& profile.Contains("constrainedbaseline", StringComparison.OrdinalIgnoreCase))
{
profile = "constrained_baseline";
}
if (string.Equals(videoEncoder, "h264_videotoolbox", StringComparison.OrdinalIgnoreCase)
&& profile.Contains("constrainedhigh", StringComparison.OrdinalIgnoreCase))
{
profile = "constrained_high";
}
if (!string.IsNullOrEmpty(profile)) if (!string.IsNullOrEmpty(profile))
{ {
// Currently there's no profile option in av1_nvenc encoder // Currently there's no profile option in av1_nvenc encoder