mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
switch to hwaccel auto
This commit is contained in:
parent
997b357750
commit
8755886761
9 changed files with 34 additions and 37 deletions
|
|
@ -1725,6 +1725,11 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
|
||||
if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(encodingOptions.HardwareAccelerationType))
|
||||
{
|
||||
return "-hwaccel auto";
|
||||
}
|
||||
|
||||
if (string.Equals(encodingOptions.HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
switch (state.MediaSource.VideoStream.Codec.ToLower())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue