disable auto rotation for some HWA methods

This commit is contained in:
nyanmisaka 2021-03-22 18:36:04 +08:00
parent fe8cf29cad
commit fcb070abf7

View File

@ -541,6 +541,8 @@ namespace MediaBrowser.Controller.MediaEncoding
.Append(encodingOptions.VaapiDevice)
.Append(' ');
}
arg.Append("-autorotate 0");
}
if (state.IsVideoRequest
@ -585,6 +587,8 @@ namespace MediaBrowser.Controller.MediaEncoding
.Append("-init_hw_device qsv@va ")
.Append("-hwaccel_output_format vaapi ");
}
arg.Append("-autorotate 0 ");
}
}
@ -592,7 +596,8 @@ namespace MediaBrowser.Controller.MediaEncoding
&& string.Equals(encodingOptions.HardwareAccelerationType, "nvenc", StringComparison.OrdinalIgnoreCase)
&& isNvdecDecoder)
{
arg.Append("-hwaccel_output_format cuda ");
arg.Append("-hwaccel_output_format cuda ")
.Append("-autorotate 0 ");
}
if (state.IsVideoRequest