mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
Add a new EncodingOption for QsvDevice
This commit is contained in:
parent
51433528a1
commit
0d8669fbe8
2 changed files with 7 additions and 1 deletions
|
|
@ -1061,7 +1061,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
return string.Empty;
|
||||
}
|
||||
|
||||
args.Append(GetQsvDeviceArgs(options.VaapiDevice, QsvAlias));
|
||||
args.Append(GetQsvDeviceArgs(options.QsvDevice, QsvAlias));
|
||||
var filterDevArgs = GetFilterHwDeviceArgs(QsvAlias);
|
||||
// child device used by qsv.
|
||||
if (_mediaEncoder.SupportsHwaccel("vaapi") || _mediaEncoder.SupportsHwaccel("d3d11va"))
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ public class EncodingOptions
|
|||
// This is a DRM device that is almost guaranteed to be there on every intel platform,
|
||||
// plus it's the default one in ffmpeg if you don't specify anything
|
||||
VaapiDevice = "/dev/dri/renderD128";
|
||||
QsvDevice = "";
|
||||
EnableTonemapping = false;
|
||||
EnableVppTonemapping = false;
|
||||
EnableVideoToolboxTonemapping = false;
|
||||
|
|
@ -136,6 +137,11 @@ public class EncodingOptions
|
|||
/// </summary>
|
||||
public string VaapiDevice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the QSV device.
|
||||
/// </summary>
|
||||
public string QsvDevice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether tonemapping is enabled.
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue