From cf3b8d90e30d5718cbea3525fb13494228dd239a Mon Sep 17 00:00:00 2001 From: Jason Dove <1695733+jasongdove@users.noreply.github.com> Date: Wed, 5 Apr 2023 10:02:46 -0500 Subject: [PATCH] fix bt470bg color normalization using qsv (#1230) --- CHANGELOG.md | 1 + ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9b4618e8..338fdfacf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - Fix bug where local libraries would merge with media server libraries when the same file was added to both libraries - Fix transcoding some 10-bit content from media servers using VAAPI acceleration - Fix decoding of MPEG-4 Part 2 (e.g. DivX) content using NVIDIA acceleration +- Fix color normalization from `bt470bg` to `bt709` using QSV acceleration ### Changed - Use Poster artwork for XMLTV if available diff --git a/ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs b/ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs index 25409aaa5..ea0a1cb6f 100644 --- a/ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs +++ b/ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs @@ -72,8 +72,8 @@ public class ColorspaceFilter : BaseFilter { return _desiredPixelFormat.BitDepth switch { - 10 => $"{hwdownload}colormatrix=dst=bt709,format=yuv420p10", - 8 => $"{hwdownload}colormatrix=dst=bt709,format=yuv420p", + 10 => $"{hwdownload}colormatrix=src=bt470bg:dst=bt709,format=yuv420p10", + 8 => $"{hwdownload}colormatrix=src=bt470bg:dst=bt709,format=yuv420p", _ => string.Empty }; }