Fix trickplay using the wrong video stream

This commit is contained in:
Cody Robibero 2026-09-08 12:10:27 -04:00
parent 6c073e19dd
commit a0dca2f121

View file

@ -922,6 +922,9 @@ namespace MediaBrowser.MediaEncoding.Encoder
inputArg = "-hwaccel_flags +low_priority " + inputArg;
}
// Force the video stream, otherwise ffmpeg may pick a cover image.
inputArg += " -map 0:" + imageStream.Index.ToString(CultureInfo.InvariantCulture);
var filterParam = encodingHelper.GetVideoProcessingFilterParam(jobState, options, vidEncoder).Trim();
if (string.IsNullOrWhiteSpace(filterParam))
{