mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-04 07:10:45 +00:00
fix: move trickplay specific option into TrickplayOptions (#11229)
This commit is contained in:
parent
aac96addfe
commit
be21d51742
5 changed files with 10 additions and 7 deletions
|
|
@ -800,6 +800,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
int maxWidth,
|
||||
TimeSpan interval,
|
||||
bool allowHwAccel,
|
||||
bool enableHwEncoding,
|
||||
int? threads,
|
||||
int? qualityScale,
|
||||
ProcessPriorityClass? priority,
|
||||
|
|
@ -828,7 +829,7 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
MediaPath = inputFile,
|
||||
OutputVideoCodec = "mjpeg"
|
||||
};
|
||||
var vidEncoder = options.AllowMjpegEncoding ? encodingHelper.GetVideoEncoder(jobState, options) : jobState.OutputVideoCodec;
|
||||
var vidEncoder = enableHwEncoding ? encodingHelper.GetVideoEncoder(jobState, options) : jobState.OutputVideoCodec;
|
||||
|
||||
// Get input and filter arguments
|
||||
var inputArg = encodingHelper.GetInputArgument(jobState, options, container).Trim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue