Use low priority decoding for videotoolbox trickplay pipeline

Signed-off-by: gnattu <gnattuoc@me.com>
gnattu 1 month ago
parent 9368b866dd
commit 0e3bcd8be9

@ -848,6 +848,12 @@ namespace MediaBrowser.MediaEncoding.Encoder
inputArg = "-threads " + threads + " " + inputArg; // HW accel args set a different input thread count, only set if disabled
}
if (vidEncoder.Contains("videotoolbox", StringComparison.InvariantCultureIgnoreCase))
{
// VideoToolbox supports low priority decoding, which is useful for trickplay
inputArg = "-hwaccel_flags +low_priority " + inputArg;
}
var filterParam = encodingHelper.GetVideoProcessingFilterParam(jobState, options, vidEncoder).Trim();
if (string.IsNullOrWhiteSpace(filterParam))
{

Loading…
Cancel
Save