Skip to content

Commit

Permalink
changes for 3.41.0
Browse files Browse the repository at this point in the history
* Add HDR10 bits support
* Fix darker colors in Chromium browsers
  • Loading branch information
argorar committed Oct 22, 2024
1 parent 263b016 commit e693412
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
14 changes: 12 additions & 2 deletions MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ public partial class MainForm : Form
bool audioDisabled;
bool yuvj420p;
bool fullRange;
bool hdr10;

private List<string> _temporaryFilesList;

Expand Down Expand Up @@ -1838,6 +1839,11 @@ void SetFile(string path)
yuvj420p= false;
}

if (nav.GetAttribute("pix_fmt", "") == "yuv420p10le")
{
hdr10 = true;
}

// Check if this is a Hi444p video - if so, we'll need to do something weird if you wanna add subs later.
Program.InputHasWeirdPixelFormat = nav.GetAttribute("pix_fmt", "").StartsWith("yuv444p");

Expand Down Expand Up @@ -2459,6 +2465,9 @@ string GenerateArguments()
}
var pixelFormat = checkBoxAlpha.Checked && checkBoxAlpha.Enabled ? "yuva420p" : "yuv420p";
pixelFormat = hdr10 && checkHWAcceleration.Checked ? "p010le" : pixelFormat;
pixelFormat = hdr10 && !checkHWAcceleration.Checked ? "yuv420p10le" : pixelFormat;
var threads = trackThreads.Value;
var slices = GetSlices();
Expand All @@ -2470,10 +2479,11 @@ string GenerateArguments()

var vcodec = boxNGOV.Checked ? @"libvpx-vp9" : @"libvpx";
var extraArguments = boxNGOV.Checked && boxNGOV.Enabled ? @" -aq-mode 4 -row-mt 1 -tile-columns 6 -tile-rows 2" : @"";
extraArguments = yuvj420p | fullRange ? extraArguments + @" -color_range 2" : extraArguments;
extraArguments = yuvj420p | fullRange ? extraArguments + @" -color_range full -colorspace bt709" : extraArguments;
extraArguments = hdr10 ? extraArguments + @" -color_trc smpte2084 -color_primaries bt2020 -colorspace bt2020nc " : extraArguments;

if (checkMP4.Checked && checkHWAcceleration.Checked)
vcodec = @"h264_nvenc";
vcodec = @"hevc_nvenc";
else if (checkMP4.Checked && !checkHWAcceleration.Checked && box265.Checked)
vcodec = @"libx265";
else if (checkMP4.Checked && !checkHWAcceleration.Checked && !box265.Checked)
Expand Down
Binary file added NewUpdate/3.41.0.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion NewUpdate/latest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.40.7
3.41.0
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.40.8")]
[assembly: AssemblyVersion("3.41.0")]
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ Drag and drop two or more video files inside the application, select what do you

## Changelog

#### Version 3.41.0
* Add HDR10 bits support
* Fix darker colors in Chromium browsers

#### Version 3.40.8
* Fix horizontal and vertical rotation [issue](https://github.com/argorar/WebMConverter/issues/99)

Expand Down

0 comments on commit e693412

Please sign in to comment.