Skip to content

Commit 6c3ffb0

Browse files
committed
Always use 2-Pass for libvpx-vp9, even with CRF
1 parent 8c96c7c commit 6c3ffb0

30 files changed

+61
-32
lines changed

ff-utils-winforms/Data/Codecs/Audio/Aac.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class Aac : IEncoder
2121
public string PresetInfo { get; }
2222

2323
public bool SupportsTwoPass { get; } = false;
24-
public bool DoesNotEncode { get; } = false;
24+
public bool ForceTwoPass { get; } = false;
25+
public bool DoesNotEncode { get; } = false;
2526
public bool IsFixedFormat { get; } = false;
2627
public bool IsSequence { get; } = false;
2728

ff-utils-winforms/Data/Codecs/Audio/CopyAudio.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class CopyAudio : IEncoder
2222
public string PresetInfo { get; }
2323

2424
public bool SupportsTwoPass { get; } = false;
25-
public bool DoesNotEncode { get; } = true;
25+
public bool ForceTwoPass { get; } = false;
26+
public bool DoesNotEncode { get; } = true;
2627
public bool IsFixedFormat { get; } = false;
2728
public bool IsSequence { get; } = false;
2829

ff-utils-winforms/Data/Codecs/Audio/Flac.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class Flac : IEncoder
2121
public string PresetInfo { get; }
2222

2323
public bool SupportsTwoPass { get; } = false;
24-
public bool DoesNotEncode { get; } = false;
24+
public bool ForceTwoPass { get; } = false;
25+
public bool DoesNotEncode { get; } = false;
2526
public bool IsFixedFormat { get; } = false;
2627
public bool IsSequence { get; } = false;
2728

ff-utils-winforms/Data/Codecs/Audio/Mp3.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class Mp3 : IEncoder
2121
public string PresetInfo { get; }
2222

2323
public bool SupportsTwoPass { get; } = false;
24-
public bool DoesNotEncode { get; } = false;
24+
public bool ForceTwoPass { get; } = false;
25+
public bool DoesNotEncode { get; } = false;
2526
public bool IsFixedFormat { get; } = false;
2627
public bool IsSequence { get; } = false;
2728

ff-utils-winforms/Data/Codecs/Audio/Opus.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class Opus : IEncoder
2121
public string PresetInfo { get; }
2222

2323
public bool SupportsTwoPass { get; } = false;
24-
public bool DoesNotEncode { get; } = false;
24+
public bool ForceTwoPass { get; } = false;
25+
public bool DoesNotEncode { get; } = false;
2526
public bool IsFixedFormat { get; } = false;
2627
public bool IsSequence { get; } = false;
2728

ff-utils-winforms/Data/Codecs/Audio/StripAudio.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class StripAudio : IEncoder
2222
public string PresetInfo { get; }
2323

2424
public bool SupportsTwoPass { get; } = false;
25-
public bool DoesNotEncode { get; } = true;
25+
public bool ForceTwoPass { get; } = false;
26+
public bool DoesNotEncode { get; } = true;
2627
public bool IsFixedFormat { get; } = false;
2728
public bool IsSequence { get; } = false;
2829

ff-utils-winforms/Data/Codecs/Audio/Vorbis.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Vorbis : IEncoder
2121
public string PresetInfo { get; }
2222

2323
public bool SupportsTwoPass { get; } = false;
24+
public bool ForceTwoPass { get; } = false;
2425
public bool DoesNotEncode { get; } = false;
2526
public bool IsFixedFormat { get; } = false;
2627
public bool IsSequence { get; } = false;

ff-utils-winforms/Data/Codecs/IEncoder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ interface IEncoder
2424
string PresetInfo { get; }
2525

2626
bool SupportsTwoPass { get; }
27+
bool ForceTwoPass { get; }
2728
bool DoesNotEncode { get; }
2829
bool IsFixedFormat { get; }
2930
bool IsSequence { get; }

ff-utils-winforms/Data/Codecs/Subs/CopySubs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ class CopySubs : IEncoder
2222
public string PresetInfo { get; }
2323

2424
public bool SupportsTwoPass { get; } = false;
25-
public bool DoesNotEncode { get; } = true;
25+
public bool ForceTwoPass { get; } = false;
26+
public bool DoesNotEncode { get; } = true;
2627
public bool IsFixedFormat { get; } = false;
2728
public bool IsSequence { get; } = false;
2829

ff-utils-winforms/Data/Codecs/Subs/MovText.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ class MovText : IEncoder
2020
public string PresetInfo { get; }
2121

2222
public bool SupportsTwoPass { get; } = false;
23-
public bool DoesNotEncode { get; } = false;
23+
public bool ForceTwoPass { get; } = false;
24+
public bool DoesNotEncode { get; } = false;
2425
public bool IsFixedFormat { get; } = false;
2526
public bool IsSequence { get; } = false;
2627

0 commit comments

Comments
 (0)