Skip to content

Commit cb2bb7f

Browse files
committed
AV1AN: Added concat method UI option
1 parent 977ab17 commit cb2bb7f

File tree

4 files changed

+49
-7
lines changed

4 files changed

+49
-7
lines changed

ff-utils-winforms/Forms/MainForm.Av1an.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ partial class MainForm
3939

4040
public ComboBox av1anOptsSplitModeBox { get { return av1anOptsSplitMode; } }
4141
public ComboBox av1anOptsChunkModeBox { get { return av1anOptsChunkMode; } }
42+
public ComboBox av1anOptsConcatModeBox { get { return av1anOptsConcatMode; } }
4243
public NumericUpDown av1anOptsWorkerCountUpDown { get { return av1anOptsWorkerCount; } }
4344

4445
public void InitAv1an ()
@@ -81,6 +82,7 @@ public void LoadConfigAv1an ()
8182
ConfigParser.LoadComboxIndex(av1anCodec);
8283
ConfigParser.LoadComboxIndex(av1anAudCodec);
8384
ConfigParser.LoadComboxIndex(av1anOptsChunkMode);
85+
ConfigParser.LoadComboxIndex(av1anOptsConcatMode);
8486
ConfigParser.LoadGuiElement(av1anOptsWorkerCount, false);
8587
}
8688

@@ -93,6 +95,7 @@ public void SaveConfigAv1an (object sender = null, EventArgs e = null)
9395
ConfigParser.SaveComboxIndex(av1anCodec);
9496
ConfigParser.SaveComboxIndex(av1anAudCodec);
9597
ConfigParser.SaveComboxIndex(av1anOptsChunkMode);
98+
ConfigParser.SaveComboxIndex(av1anOptsConcatMode);
9699
ConfigParser.SaveGuiElement(av1anOptsWorkerCount);
97100
}
98101

ff-utils-winforms/Forms/MainForm.Designer.cs

Lines changed: 37 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ff-utils-winforms/UI/Tasks/Av1an.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ public static async Task Run()
4141
string vf = await GetVideoFilterArgs(codecArgs);
4242
string a = CodecUtils.GetCodec(aCodec).GetArgs(GetAudioArgsFromUi()).Arguments;
4343
string w = Program.mainForm.av1anOptsWorkerCountUpDown.Value.ToString();
44-
string sm = GetSplittingMethod();
45-
string cm = GetChunkGenMethod();
44+
string s = GetSplittingMethod();
45+
string m = GetChunkGenMethod();
46+
string c = GetConcatMethod();
4647
IoUtils.TryDeleteIfExists(outPath);
4748

48-
args = $"-i {inPath.Wrap()} --verbose --keep --split-method {sm} -m {cm} {cust} {v} -f \" {vf} \" -a \" {a} \" -w {w} -o {outPath.Wrap()}";
49+
args = $"-i {inPath.Wrap()} --verbose --keep --split-method {s} -m {m} -c {c} {cust} {v} -f \" {vf} \" -a \" {a} \" -w {w} -o {outPath.Wrap()}";
4950

5051
if (vmaf)
5152
{

ff-utils-winforms/UI/Tasks/Av1anUi.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ public static string GetChunkGenMethod()
269269
// return "";
270270
}
271271

272+
public static string GetConcatMethod()
273+
{
274+
return form.av1anOptsConcatModeBox.Text.ToLower().Trim();
275+
}
276+
272277
public static string GetOutPath()
273278
{
274279
return form.av1anOutputPathBox.Text.Trim();

0 commit comments

Comments
 (0)