Browse Source

fix green padding with vaapi i965 driver (#2298)

pull/2300/head
Jason Dove 12 months ago committed by GitHub
parent
commit
a04adf45c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 6
      ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs

1
CHANGELOG.md

@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- YAML playouts in particular should build significantly faster
- Fix channel playout mode `On Demand` for Block and YAML schedules
- Fix QSV transitions when remote streaming from a media server
- Fix green output when padding with VAAPI accel and i965 driver
### Changed
- Allow multiple watermarks in playback troubleshooting

6
ErsatzTV.FFmpeg/Pipeline/VaapiPipelineBuilder.cs

@ -575,13 +575,13 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder @@ -575,13 +575,13 @@ public class VaapiPipelineBuilder : SoftwarePipelineBuilder
if (desiredState.CroppedSize.IsNone && currentState.PaddedSize != desiredState.PaddedSize)
{
// pad_vaapi seems to pad with green when input is HDR
// also green with 10-bit content and i965
// also green with i965 driver
// so use software pad in these cases
bool is10Bit965 = currentState.BitDepth == 10 && ffmpegState.VaapiDriver
bool is965 = ffmpegState.VaapiDriver
.IfNone(string.Empty)
.Contains("i965", StringComparison.OrdinalIgnoreCase);
if (isHdrTonemap || is10Bit965)
if (isHdrTonemap || is965)
{
var padStep = new PadFilter(currentState, desiredState.PaddedSize);
currentState = padStep.NextState(currentState);

Loading…
Cancel
Save