diff --git a/NotEnoughAV1Encodes/MainWindow.xaml.cs b/NotEnoughAV1Encodes/MainWindow.xaml.cs
index e9eb0df..7fb8d2f 100644
--- a/NotEnoughAV1Encodes/MainWindow.xaml.cs
+++ b/NotEnoughAV1Encodes/MainWindow.xaml.cs
@@ -363,6 +363,16 @@ private void SingleFileInput(string path)
}
}
LabelVideoFramerate.Content = videoDB.MIFramerate + vfr;
+
+ // Output
+ if (!string.IsNullOrEmpty(settingsDB.DefaultOutPath))
+ {
+ string outPath = Path.Combine(settingsDB.DefaultOutPath, Path.GetFileNameWithoutExtension(videoDB.InputPath) + ".mkv");
+
+ videoDB.OutputPath = outPath;
+ LabelVideoDestination.Content = videoDB.OutputPath;
+ videoDB.OutputFileName = Path.GetFileName(videoDB.OutputPath);
+ }
}
private void ButtonSetDestination_Click(object sender, RoutedEventArgs e)
diff --git a/NotEnoughAV1Encodes/NotEnoughAV1Encodes.csproj b/NotEnoughAV1Encodes/NotEnoughAV1Encodes.csproj
index 85f8cbf..de99b88 100644
--- a/NotEnoughAV1Encodes/NotEnoughAV1Encodes.csproj
+++ b/NotEnoughAV1Encodes/NotEnoughAV1Encodes.csproj
@@ -6,7 +6,7 @@
true
true
resources\img\neav1e.ico
- 2.0.6
+ 2.0.7
Alkl58
diff --git a/NotEnoughAV1Encodes/Views/ProgramSettings.xaml b/NotEnoughAV1Encodes/Views/ProgramSettings.xaml
index b1c6ee3..d0d5104 100644
--- a/NotEnoughAV1Encodes/Views/ProgramSettings.xaml
+++ b/NotEnoughAV1Encodes/Views/ProgramSettings.xaml
@@ -10,13 +10,13 @@
lex:LocalizeDictionary.DesignCulture="en"
lex:ResxLocalizationProvider.DefaultAssembly="NotEnoughAV1Encodes"
lex:ResxLocalizationProvider.DefaultDictionary="Strings"
- Title="{lex:Loc ProgramSettings}" Height="450" Width="800" ResizeMode="NoResize" Closing="MetroWindow_Closing" mah:ControlsHelper.ContentCharacterCasing="Normal">
+ Title="{lex:Loc ProgramSettings}" Height="530" Width="800" ResizeMode="NoResize" Closing="MetroWindow_Closing" mah:ControlsHelper.ContentCharacterCasing="Normal">
-
+
-
+
@@ -46,11 +46,11 @@
-
+
-
+
@@ -74,7 +74,7 @@
-
+
@@ -84,12 +84,11 @@
-
+
-
-
-
-
+
+
+
@@ -114,6 +113,13 @@
+
+
+
+
+
+
+
diff --git a/NotEnoughAV1Encodes/Views/ProgramSettings.xaml.cs b/NotEnoughAV1Encodes/Views/ProgramSettings.xaml.cs
index 49d0907..f92b95a 100644
--- a/NotEnoughAV1Encodes/Views/ProgramSettings.xaml.cs
+++ b/NotEnoughAV1Encodes/Views/ProgramSettings.xaml.cs
@@ -27,6 +27,7 @@ public ProgramSettings(Settings settingsDB)
ComboBoxAccentTheme.SelectedIndex = settingsDB.AccentTheme;
ComboBoxBaseTheme.SelectedIndex = settingsDB.BaseTheme;
TextBoxTempPath.Text = settingsDB.TempPath;
+ TextBoxDefaultOutPath.Text = settingsDB.DefaultOutPath;
settingsDBTemp.BGImage = settingsDB.BGImage;
ComboBoxProcessPriority.SelectedIndex = settingsDB.PriorityNormal ? 0 : 1;
string AssemblyVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
@@ -73,6 +74,22 @@ private void ButtonSelectTempPath_Click(object sender, RoutedEventArgs e)
}
}
+ private void ButtonSelectDefaultOutPath_Click(object sender, RoutedEventArgs e)
+ {
+ using var dialog = new System.Windows.Forms.FolderBrowserDialog();
+ dialog.SelectedPath = TextBoxTempPath.Text;
+ System.Windows.Forms.DialogResult result = dialog.ShowDialog();
+ if (result == System.Windows.Forms.DialogResult.OK)
+ {
+ TextBoxDefaultOutPath.Text = dialog.SelectedPath + "\\";
+ }
+ }
+
+ private void ButtonSelectDefaultOutPathReset_Click(object sender, RoutedEventArgs e)
+ {
+ TextBoxDefaultOutPath.Text = "";
+ }
+
private void ButtonSelectTempPathReset_Click(object sender, RoutedEventArgs e)
{
TextBoxTempPath.Text = Path.GetTempPath();
@@ -96,6 +113,7 @@ private void MetroWindow_Closing(object sender, System.ComponentModel.CancelEven
settingsDBTemp.AccentTheme = ComboBoxAccentTheme.SelectedIndex;
settingsDBTemp.Theme = ComboBoxBaseTheme.Text + "." + ComboBoxAccentTheme.Text;
settingsDBTemp.TempPath = TextBoxTempPath.Text;
+ settingsDBTemp.DefaultOutPath = TextBoxDefaultOutPath.Text;
settingsDBTemp.PriorityNormal = ComboBoxProcessPriority.SelectedIndex == 0;
}
diff --git a/NotEnoughAV1Encodes/resources/Settings.cs b/NotEnoughAV1Encodes/resources/Settings.cs
index 44bb0a0..0356d44 100644
--- a/NotEnoughAV1Encodes/resources/Settings.cs
+++ b/NotEnoughAV1Encodes/resources/Settings.cs
@@ -21,6 +21,8 @@ public class Settings
public bool OverrideWorkerCount { get; set; }
/// Specifies the Temp Folder used
public string TempPath { get; set; } = Path.GetTempPath();
+ /// Specifies the default Output Folder
+ public string DefaultOutPath { get; set; } = "";
/// Toggles Logging functionality
public bool Logging { get; set; } = true;
/// Toggles Auto Resume Pause functionality
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs b/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs
index eb59973..d99c8e8 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.Designer.cs
@@ -564,6 +564,15 @@ public static string LabelDefaultAudioBehavior {
}
}
+ ///
+ /// Sucht eine lokalisierte Zeichenfolge, die Default Output Location ähnelt.
+ ///
+ public static string LabelDefaultOutputLocation {
+ get {
+ return ResourceManager.GetString("LabelDefaultOutputLocation", resourceCulture);
+ }
+ }
+
///
/// Sucht eine lokalisierte Zeichenfolge, die Deinterlace: ähnelt.
///
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.de.resx b/NotEnoughAV1Encodes/resources/lang/Strings.de.resx
index db588f8..a84470c 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.de.resx
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.de.resx
@@ -283,6 +283,9 @@
Standard Audio Einstellungen
+
+ Standard Ausgabe Ordner
+
Deinterlace:
diff --git a/NotEnoughAV1Encodes/resources/lang/Strings.resx b/NotEnoughAV1Encodes/resources/lang/Strings.resx
index 558dbb5..652f11a 100644
--- a/NotEnoughAV1Encodes/resources/lang/Strings.resx
+++ b/NotEnoughAV1Encodes/resources/lang/Strings.resx
@@ -286,6 +286,9 @@
Default Audio Behavior
+
+ Default Output Location
+
Deinterlace: