Skip to content

Commit

Permalink
Merge pull request #61 from TheTaylorLee/4.5.0
Browse files Browse the repository at this point in the history
4.5.0
  • Loading branch information
TheTaylorLee authored Nov 17, 2024
2 parents f28d59f + a514d23 commit 84b3073
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion build/functions/Build-TranscodeParams.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function Build-TranscodeParams {
[Parameter(Mandatory = $true, HelpMessage = "This accepts a filename, but not fullname.")][ValidateNotNullOrEmpty()][string]$video
)

$out = ffprobe -hide_banner -loglevel error -select_streams v -print_format json -show_frames -read_intervals "%+#1" -show_entries "frame=color_space,color_primaries,color_transfer,side_data_list,color_range,color_matrix" -i $video
$out = ffprobe -hide_banner -loglevel error -select_streams v -print_format json -show_frames -read_intervals "%+#1" -show_entries "frame=color_space,color_primaries,color_transfer,side_data_list,color_range,color_matrix,bit_depth,chroma_subsampling" -i $video
$frames = ($out | ConvertFrom-Json -ErrorAction SilentlyContinue).frames
$side_data_list = (($out | ConvertFrom-Json -ErrorAction SilentlyContinue).frames).side_data_list

Expand Down Expand Up @@ -83,6 +83,12 @@ function Build-TranscodeParams {
if ($null -ne $frames -and $null -ne ($frames.color_matrix)) {
$ffmpegArgs += "-colormatrix", $frames.color_matrix
}
if ($null -ne $frames -and $null -ne ($frames.bit_depth)) {
$ffmpegArgs += "-bit_depth", $frames.bit_depth
}
if ($null -ne $frames -and $null -ne ($frames.chroma_subsampling)) {
$ffmpegArgs += "-chroma_subsampling", $frames.chroma_subsampling
}

# HDR Metadata as x265 params
$x265Params = @()
Expand Down
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@
- 4.2.0 Modify Update-Processed null oldsizemb and newsizemb for shows and movies tables if filesexists is false. This ensures old stats aren't inserted for dta-remuxed comment files. Rare scenario but is possible.
- 4.3.0 Add in support for retaining HDR colormapping data
- 4.4.0 Add support for repeating filenames in different directories.
- 4.4.1 Add verbosity to log output.
- 4.4.1 Add verbosity to log output.
- 4.5.0 Carryover subsampling and bit depth metadata explicitly. While likely included by default it is now specified.
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v4.4.1
v4.5.0

0 comments on commit 84b3073

Please sign in to comment.