Browse Source

fix transcoding bt709/pc (#2363)

pull/2368/head
Jason Dove 11 months ago committed by GitHub
parent
commit
7ac93c6aad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      CHANGELOG.md
  2. 4
      ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs

2
CHANGELOG.md

@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Fix transcoding content with bt709/pc color metadata
## [25.5.0] - 2025-09-01
### Added

4
ErsatzTV.FFmpeg/Filter/ColorspaceFilter.cs

@ -110,9 +110,9 @@ public class ColorspaceFilter : BaseFilter @@ -110,9 +110,9 @@ public class ColorspaceFilter : BaseFilter
$"{hwdownload}setparams=range=tv:colorspace=bt709:color_trc=bt709:color_primaries=bt709",
_ when cp.IsUnknown => "setparams=range=tv:colorspace=bt709:color_trc=bt709:color_primaries=bt709",
10 when !cp.IsUnknown =>
$"{hwdownload}colorspace={inputOverrides}all=bt709:format=yuv420p10",
$"{hwdownload}colorspace={inputOverrides}all=bt709:format=yuv420p10:range=tv",
8 when !cp.IsUnknown =>
$"{hwdownload}colorspace={inputOverrides}all=bt709:format=yuv420p",
$"{hwdownload}colorspace={inputOverrides}all=bt709:format=yuv420p:range=tv",
_ => string.Empty
};

Loading…
Cancel
Save