Remove NVEnc encode modes cbrhq and vbrhq

This commit is contained in:
Dendraspis
2021-04-07 11:05:30 +02:00
parent f254071d52
commit c00167e2b0
3 changed files with 13 additions and 22 deletions
+1
View File
@@ -12,6 +12,7 @@ v2.4.0 (2021-04-??)
- Remove '/vfw.h' from 'Err' (stax76)
- Bring Command Line options from *Settings* sub-menu back to top level (Dendraspis)
- Improve keyboard support in apps dialog (stax76)
- Remove NVEnc encode modes cbrhq and vbrhq (Dendraspis, [#652](/../../issues/652))
- Optimize, extend and add new AviSynth filters (44vince44)
- Typo and consistency fixes (JKyle)
- Fix AssumeBFF filter selection (JKyle)
+10 -20
View File
@@ -110,9 +110,7 @@ Public Class NVEnc
Overrides Property QualityMode() As Boolean
Get
Return Params.Mode.Value = 0 OrElse
((Params.Mode.Value = 3 OrElse Params.Mode.Value = 4) AndAlso
Params.ConstantQualityMode.Value)
Return Params.Mode.Value = 0 OrElse Params.Mode.Value = 2 AndAlso Params.ConstantQualityMode.Value
End Get
Set(Value As Boolean)
End Set
@@ -139,7 +137,7 @@ Public Class NVEnc
audio-disposition audio-metadata option-list sub-disposition sub-metadata process-codepage
metadata attachment-copy chapter-no-trim video-metadata input-csp sub-source"
tester.UndocumentedSwitches = "cbrhq vbrhq"
tester.UndocumentedSwitches = ""
tester.Package = Package.NVEnc
tester.CodeFile = Folder.Startup.Parent + "Encoding\nvenc.vb"
@@ -165,12 +163,10 @@ Public Class NVEnc
Property Mode As New OptionParam With {
.Text = "Mode",
.Switches = {"--cqp", "--cbr", "--cbrhq", "--vbr", "--vbrhq"},
.Switches = {"--cqp", "--cbr", "--vbr"},
.Options = {"CQP: Constant QP",
"CBR: Constant Bitrate",
"CBRHQ: Const. Bitrate HQ",
"VBR: Variable Bitrate",
"VBRHQ: Var. Bitrate HQ"},
"VBR: Variable Bitrate"},
.VisibleFunc = Function() Not Lossless.Value,
.ArgsFunc = AddressOf GetModeArgs,
.ImportAction = Sub(param, arg)
@@ -178,7 +174,7 @@ Public Class NVEnc
Mode.Value = Array.IndexOf(Mode.Switches.ToArray, param)
End If
If param = "--vbrhq" AndAlso arg = "0" Then
If param = "--vbr" AndAlso arg = "0" Then
ConstantQualityMode.Value = True
End If
End Sub}
@@ -209,14 +205,14 @@ Public Class NVEnc
Property ConstantQualityMode As New BoolParam With {
.Switches = {"--vbr-quality"},
.Text = "Constant Quality Mode",
.VisibleFunc = Function() Mode.Value = 3 OrElse Mode.Value = 4}
.VisibleFunc = Function() Mode.Value = 2}
Property QPAdvanced As New BoolParam With {
.Text = "Show advanced QP settings",
.VisibleFunc = Function() Mode.Value = 0}
Property Bitrate As New NumParam With {
.Switches = {"--cbr", "--cbrhq", "--vbr", "--vbrhq"},
.Switches = {"--cbr", "--vbr"},
.Text = "Bitrate",
.Init = 5000,
.VisibleFunc = Function() Mode.Value > 0,
@@ -254,11 +250,9 @@ Public Class NVEnc
.Switch = "--vbr-quality",
.Text = "VBR Quality",
.Config = {0, 51, 1, 1},
.VisibleFunc = Function() (Mode.Value = 3 OrElse Mode.Value = 4) AndAlso ConstantQualityMode.Value,
.VisibleFunc = Function() Mode.Value = 2 AndAlso ConstantQualityMode.Value,
.ArgsFunc = Function()
If ConstantQualityMode.Value AndAlso
VbrQuality.Value <> VbrQuality.DefaultValue Then
If ConstantQualityMode.Value AndAlso VbrQuality.Value <> VbrQuality.DefaultValue Then
Return "--vbr-quality " & VbrQuality.Value.ToInvariantString
End If
End Function}
@@ -449,7 +443,7 @@ Public Class NVEnc
QPAdvanced, Bitrate, QP, QPI, QPP, QPB)
Add("Rate Control",
New StringParam With {.Switch = "--dynamic-rc", .Text = "Dynamic RC"},
New OptionParam With {.Switch = "--multipass", .Text = "Multipass", .Options = {"None", "2Pass-Quarter", "2Pass-Full"}, .VisibleFunc = Function() Mode.Value = 1 OrElse Mode.Value = 3},
New OptionParam With {.Switch = "--multipass", .Text = "Multipass", .Options = {"None", "2Pass-Quarter", "2Pass-Full"}, .VisibleFunc = Function() Mode.Value > 0},
New NumParam With {.Switch = "--qp-init", .Text = "Initial QP", .Config = {0, Integer.MaxValue, 1}},
New NumParam With {.Switch = "--qp-max", .Text = "Maximum QP", .Config = {0, Integer.MaxValue, 1}},
New NumParam With {.Switch = "--qp-min", .Text = "Minimum QP", .Config = {0, Integer.MaxValue, 1}},
@@ -940,11 +934,7 @@ Public Class NVEnc
Case 1
Return "--cbr " & rate
Case 2
Return "--cbrhq " & rate
Case 3
Return "--vbr " & rate
Case 4
Return "--vbrhq " & rate
End Select
End Function
+2 -2
View File
@@ -7,6 +7,6 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyCopyright("Copyright (C) 2002-2021 StaxRip Authors")>
<Assembly: ComVisible(False)>
<Assembly: Guid("54d5dc0f-6ba7-42f0-a82f-9c71d561cb8b")>
<Assembly: AssemblyVersion("2.3.36")>
<Assembly: AssemblyFileVersion("2.3.36")>
<Assembly: AssemblyVersion("2.3.38")>
<Assembly: AssemblyFileVersion("2.3.38")>
<Assembly: AssemblyDescription("Video encoding app")>