diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a46ef4fb..305b0c0f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Fixed - Only allow a single instance of ErsatzTV to run - This fixes some cases where the search index would become unusable +- Fix VAAPI rate control mode capability check ### Changed - Rework startup process to show UI as early as possible diff --git a/ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs b/ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs index 0943a10b2..a63029327 100644 --- a/ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs +++ b/ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs @@ -198,7 +198,7 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder if (pipelineSteps.OfType().All(e => e.Kind != StreamKind.Video)) { RateControlMode rateControlMode = - _hardwareCapabilities.GetRateControlMode(videoStream.Codec, videoStream.PixelFormat) + _hardwareCapabilities.GetRateControlMode(desiredState.VideoFormat, desiredState.PixelFormat) .IfNone(RateControlMode.VBR); Option maybeEncoder =