Add a new EncodingOption for QsvDevice
This commit is contained in:
parent
51433528a1
commit
0d8669fbe8
|
@ -1061,7 +1061,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
args.Append(GetQsvDeviceArgs(options.VaapiDevice, QsvAlias));
|
args.Append(GetQsvDeviceArgs(options.QsvDevice, QsvAlias));
|
||||||
var filterDevArgs = GetFilterHwDeviceArgs(QsvAlias);
|
var filterDevArgs = GetFilterHwDeviceArgs(QsvAlias);
|
||||||
// child device used by qsv.
|
// child device used by qsv.
|
||||||
if (_mediaEncoder.SupportsHwaccel("vaapi") || _mediaEncoder.SupportsHwaccel("d3d11va"))
|
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,
|
// 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
|
// plus it's the default one in ffmpeg if you don't specify anything
|
||||||
VaapiDevice = "/dev/dri/renderD128";
|
VaapiDevice = "/dev/dri/renderD128";
|
||||||
|
QsvDevice = "";
|
||||||
EnableTonemapping = false;
|
EnableTonemapping = false;
|
||||||
EnableVppTonemapping = false;
|
EnableVppTonemapping = false;
|
||||||
EnableVideoToolboxTonemapping = false;
|
EnableVideoToolboxTonemapping = false;
|
||||||
|
@ -136,6 +137,11 @@ public class EncodingOptions
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string VaapiDevice { get; set; }
|
public string VaapiDevice { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the QSV device.
|
||||||
|
/// </summary>
|
||||||
|
public string QsvDevice { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether tonemapping is enabled.
|
/// Gets or sets a value indicating whether tonemapping is enabled.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user