From 2a28bf68bf1d790e523f63e0a53d667c1e8a4019 Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Thu, 11 Jan 2024 11:42:26 -0600 Subject: [PATCH] fix crop mode with nvidia accel (#1545) --- CHANGELOG.md | 1 + ErsatzTV.FFmpeg/Pipeline/NvidiaPipelineBuilder.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a3941874..e89488e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Unlock playout when playout build fails - Ignore errors deleting old HLS segments; this should improve stream reliability - Update show year when changed within Plex +- Fix crop scale mode with NVIDIA acceleration ### Changed - Upgrade from .NET 7 to .NET 8 diff --git a/ErsatzTV.FFmpeg/Pipeline/NvidiaPipelineBuilder.cs b/ErsatzTV.FFmpeg/Pipeline/NvidiaPipelineBuilder.cs index 33847537..1edb6cea 100644 --- a/ErsatzTV.FFmpeg/Pipeline/NvidiaPipelineBuilder.cs +++ b/ErsatzTV.FFmpeg/Pipeline/NvidiaPipelineBuilder.cs @@ -160,6 +160,7 @@ public class NvidiaPipelineBuilder : SoftwarePipelineBuilder currentState = SetDeinterlace(videoInputFile, context, currentState); currentState = SetScale(videoInputFile, videoStream, context, ffmpegState, desiredState, currentState); currentState = SetPad(videoInputFile, videoStream, desiredState, currentState); + currentState = SetCrop(videoInputFile, desiredState, currentState); if (currentState.BitDepth == 8 && context.HasSubtitleOverlay || context.HasWatermark) {