Browse Source

fix vaapi rate control mode (#1340)

pull/1341/head
Jason Dove 2 years ago committed by GitHub
parent
commit
5978e8ecb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs

1
CHANGELOG.md

@ -10,6 +10,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -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

2
ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs

@ -198,7 +198,7 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder @@ -198,7 +198,7 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder
if (pipelineSteps.OfType<IEncoder>().All(e => e.Kind != StreamKind.Video))
{
RateControlMode rateControlMode =
_hardwareCapabilities.GetRateControlMode(videoStream.Codec, videoStream.PixelFormat)
_hardwareCapabilities.GetRateControlMode(desiredState.VideoFormat, desiredState.PixelFormat)
.IfNone(RateControlMode.VBR);
Option<IEncoder> maybeEncoder =

Loading…
Cancel
Save