mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Disable auto rotation for some HWA methods (#5586)
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
This commit is contained in:
parent
f6671e05fd
commit
0853d1265c
@ -541,6 +541,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
.Append(encodingOptions.VaapiDevice)
|
.Append(encodingOptions.VaapiDevice)
|
||||||
.Append(' ');
|
.Append(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
arg.Append("-autorotate 0 ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.IsVideoRequest
|
if (state.IsVideoRequest
|
||||||
@ -585,6 +587,8 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
.Append("-init_hw_device qsv@va ")
|
.Append("-init_hw_device qsv@va ")
|
||||||
.Append("-hwaccel_output_format vaapi ");
|
.Append("-hwaccel_output_format vaapi ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
arg.Append("-autorotate 0 ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -592,7 +596,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
&& string.Equals(encodingOptions.HardwareAccelerationType, "nvenc", StringComparison.OrdinalIgnoreCase)
|
&& string.Equals(encodingOptions.HardwareAccelerationType, "nvenc", StringComparison.OrdinalIgnoreCase)
|
||||||
&& isNvdecDecoder)
|
&& isNvdecDecoder)
|
||||||
{
|
{
|
||||||
arg.Append("-hwaccel_output_format cuda ");
|
arg.Append("-hwaccel_output_format cuda -autorotate 0 ");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.IsVideoRequest
|
if (state.IsVideoRequest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user