mirror of
https://github.com/Tichau/FileConverter.git
synced 2026-11-20 17:42:20 +01:00
Merge pull request #90 from Tichau/feature/custom-command
Custom FFMPEG command
This commit is contained in:
13 files changed
+602
-231
No files matched your search
@@ -57,11 +57,6 @@
|
||||
<valueConverters:ApplicationVersionToApplicationName x:Key="ApplicationVersionToApplicationName"/>
|
||||
<generic:BoolToVisibility x:Key="BoolToVisibility"/>
|
||||
|
||||
<generic:ValueConverterGroup x:Key="InvBoolToVisibility">
|
||||
<generic:BoolInverterConverter/>
|
||||
<generic:BoolToVisibility/>
|
||||
</generic:ValueConverterGroup>
|
||||
|
||||
<generic:ValueConverterGroup x:Key="EnumEqualsToVisibility">
|
||||
<generic:ValueToString/>
|
||||
<generic:EqualsConverter/>
|
||||
|
||||
@@ -84,6 +84,18 @@ namespace FileConverter.ConversionJobs
|
||||
|
||||
protected virtual void FillFFMpegArgumentsList()
|
||||
{
|
||||
bool customCommandEnabled = this.ConversionPreset.GetSettingsValue<bool>(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand);
|
||||
if (customCommandEnabled)
|
||||
{
|
||||
// Custom command override other settings.
|
||||
string customCommand = this.ConversionPreset.GetSettingsValue<string>(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand) ?? string.Empty;
|
||||
|
||||
string arguments = string.Format("-n -stats -i \"{0}\" {2} \"{1}\"", this.InputFilePath, this.OutputFilePath, customCommand);
|
||||
this.ffmpegArgumentStringByPass.Add(new FFMpegPass(arguments));
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// This option are necessary to be able to read metadata on Windows. src: http://jonhall.info/how_to/create_id3_tags_using_ffmpeg
|
||||
const string MP3MetadataArgs = "-id3v2_version 3 -write_id3v1 1";
|
||||
|
||||
|
||||
@@ -127,10 +127,7 @@ namespace FileConverter
|
||||
[XmlAttribute]
|
||||
public OutputType OutputType
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.outputType;
|
||||
}
|
||||
get => this.outputType;
|
||||
|
||||
set
|
||||
{
|
||||
@@ -254,10 +251,7 @@ namespace FileConverter
|
||||
[XmlIgnore]
|
||||
public IConversionSettings Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.settings;
|
||||
}
|
||||
get => this.settings;
|
||||
|
||||
set
|
||||
{
|
||||
@@ -341,9 +335,9 @@ namespace FileConverter
|
||||
throw new ArgumentNullException("key");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(value))
|
||||
if (value == null)
|
||||
{
|
||||
throw new ArgumentNullException("value");
|
||||
throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
if (!this.IsRelevantSetting(settingsKey))
|
||||
@@ -428,26 +422,36 @@ namespace FileConverter
|
||||
case OutputType.Aac:
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "128");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioChannelCount, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Flac:
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioChannelCount, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Ogg:
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "160");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioChannelCount, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Mp3:
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioEncodingMode, EncodingMode.Mp3VBR.ToString(), true);
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "190");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioChannelCount, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Wav:
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioEncodingMode, EncodingMode.Wav16.ToString(), true);
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioChannelCount, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
// Video
|
||||
@@ -457,6 +461,8 @@ namespace FileConverter
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale, "1");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoRotation, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "190");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Mkv:
|
||||
@@ -466,6 +472,8 @@ namespace FileConverter
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale, "1");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoRotation, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "128");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Mp4:
|
||||
@@ -475,6 +483,8 @@ namespace FileConverter
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale, "1");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoRotation, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "128");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Ogv:
|
||||
@@ -483,6 +493,8 @@ namespace FileConverter
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale, "1");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoRotation, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.AudioBitrate, "160");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
case OutputType.Webm:
|
||||
@@ -491,6 +503,8 @@ namespace FileConverter
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoQuality, "40");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoScale, "1");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.VideoRotation, "0");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.EnableFFMPEGCustomCommand, "False");
|
||||
this.InitializeSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand, string.Empty);
|
||||
break;
|
||||
|
||||
// Images
|
||||
@@ -544,9 +558,9 @@ namespace FileConverter
|
||||
throw new ArgumentNullException("key");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(value))
|
||||
if (value == null)
|
||||
{
|
||||
throw new ArgumentNullException("value");
|
||||
throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
if (!this.settings.ContainsKey(settingsKey))
|
||||
@@ -597,9 +611,11 @@ namespace FileConverter
|
||||
public const string VideoScale = "VideoScale";
|
||||
public const string VideoRotation = "VideoRotation";
|
||||
public const string VideoFramesPerSecond = "VideoFramesPerSecond";
|
||||
public const string FFMPEGCustomCommand = "FFMPEGCustomCommand";
|
||||
|
||||
public const string EnableAudio = "EnableAudio";
|
||||
public const string EnableVideo = "EnableVideo";
|
||||
public const string EnableFFMPEGCustomCommand = "EnableFFMPEGCustomCommand";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -201,6 +201,7 @@
|
||||
<Compile Include="ValueConverters\ChangelogConverter.cs" />
|
||||
<Compile Include="ValueConverters\ConversionJobToEstimatedRemainingDuration.cs" />
|
||||
<Compile Include="ValueConverters\ConversionJobsToProgressValue.cs" />
|
||||
<Compile Include="ValueConverters\ConversionSettingsRelevant.cs" />
|
||||
<Compile Include="ValueConverters\Generic\IcoFileSizeSelectorConverter.cs" />
|
||||
<Compile Include="ValueConverters\OutputTypeEnumToViewModel.cs" />
|
||||
<Compile Include="ValueConverters\BitrateToString.cs" />
|
||||
@@ -236,7 +237,6 @@
|
||||
<Compile Include="Views\DiagnosticsWindow.xaml.cs">
|
||||
<DependentUpon>DiagnosticsWindow.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Views\ConversionSettingsTemplateSelector.cs" />
|
||||
<Compile Include="ViewModels\InputExtension.cs" />
|
||||
<Compile Include="ViewModels\InputExtensionCategory.cs" />
|
||||
<Compile Include="ViewModels\OutputTypeViewModel.cs" />
|
||||
@@ -287,7 +287,7 @@
|
||||
<DependentUpon>MainWindow.xaml</DependentUpon>
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
<Page Include="Views\Resources\ConversionPresets.xaml">
|
||||
<Page Include="Views\Resources\ConversionPresetTemplates.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
<SubType>Designer</SubType>
|
||||
</Page>
|
||||
|
||||
@@ -96,6 +96,15 @@ namespace FileConverter.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Advanced mode.
|
||||
/// </summary>
|
||||
public static string AdvancedMode {
|
||||
get {
|
||||
return ResourceManager.GetString("AdvancedMode", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Application.
|
||||
/// </summary>
|
||||
@@ -627,6 +636,24 @@ namespace FileConverter.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Custom Arguments.
|
||||
/// </summary>
|
||||
public static string FFMPEGCustomArguments {
|
||||
get {
|
||||
return ResourceManager.GetString("FFMPEGCustomArguments", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Custom FFMPEG command line arguments.
|
||||
/// </summary>
|
||||
public static string FFMPEGCustomArgumentsTooltip {
|
||||
get {
|
||||
return ResourceManager.GetString("FFMPEGCustomArgumentsTooltip", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to File Converter is a shell extension..
|
||||
/// </summary>
|
||||
|
||||
@@ -562,4 +562,13 @@ use maj for uppercase version</value>
|
||||
<data name="PresetFolderName" xml:space="preserve">
|
||||
<value>Folder Name</value>
|
||||
</data>
|
||||
<data name="AdvancedMode" xml:space="preserve">
|
||||
<value>Advanced mode</value>
|
||||
</data>
|
||||
<data name="FFMPEGCustomArguments" xml:space="preserve">
|
||||
<value>Custom Arguments</value>
|
||||
</data>
|
||||
<data name="FFMPEGCustomArgumentsTooltip" xml:space="preserve">
|
||||
<value>Custom FFMPEG command line arguments</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -24,6 +24,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
@@ -47,6 +49,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Mp4 (low quality)" OutputType="Mp4" IsDefaultSettings="true">
|
||||
@@ -70,6 +74,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="96" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
@@ -92,6 +98,8 @@
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
@@ -114,6 +122,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
@@ -136,6 +146,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Gif" OutputType="Gif" IsDefaultSettings="true">
|
||||
@@ -235,6 +247,8 @@
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Flac" OutputType="Flac" IsDefaultSettings="true">
|
||||
@@ -244,6 +258,8 @@
|
||||
<InputTypes>aiff</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Wav" OutputType="Wav" IsDefaultSettings="true">
|
||||
@@ -271,6 +287,8 @@
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioEncodingMode" Value="Wav16" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Mp3" OutputType="Mp3" IsDefaultSettings="true">
|
||||
@@ -299,6 +317,8 @@
|
||||
<Settings Key="AudioEncodingMode" Value="Mp3VBR" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Aac" OutputType="Aac" IsDefaultSettings="true">
|
||||
@@ -326,6 +346,8 @@
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioBitrate" Value="128" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract DVD to Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
@@ -337,6 +359,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:v)DVD Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract DVD to Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
@@ -348,12 +372,16 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:v)DVD Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract DVD to Flac" OutputType="Flac" IsDefaultSettings="true">
|
||||
<InputTypes>vob</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:m)DVD Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract DVD to Ogg" OutputType="Ogg" IsDefaultSettings="true">
|
||||
@@ -361,6 +389,8 @@
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioBitrate" Value="192" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:m)DVD Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract DVD to Mp3" OutputType="Mp3" IsDefaultSettings="true">
|
||||
@@ -369,12 +399,16 @@
|
||||
<Settings Key="AudioEncodingMode" Value="Mp3VBR" />
|
||||
<Settings Key="AudioBitrate" Value="225" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:m)DVD Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract CDA to Flac" OutputType="Flac" IsDefaultSettings="true">
|
||||
<InputTypes>cda</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:m)CDA Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract CDA to Ogg" OutputType="Ogg" IsDefaultSettings="true">
|
||||
@@ -382,6 +416,8 @@
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="AudioBitrate" Value="192" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:m)CDA Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Extract CDA to Mp3" OutputType="Mp3" IsDefaultSettings="true">
|
||||
@@ -390,6 +426,8 @@
|
||||
<Settings Key="AudioEncodingMode" Value="Mp3VBR" />
|
||||
<Settings Key="AudioBitrate" Value="225" />
|
||||
<Settings Key="AudioChannelCount" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p:m)CDA Extraction\(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="To Png" OutputType="Png" IsDefaultSettings="true">
|
||||
@@ -539,7 +577,7 @@
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Mkv" OutputType="Mkv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -560,9 +598,11 @@
|
||||
<Settings Key="VideoScale" Value="0.75" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Mp4" OutputType="Mp4" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
@@ -583,9 +623,11 @@
|
||||
<Settings Key="VideoScale" Value="0.75" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Webm" OutputType="Webm" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
@@ -605,9 +647,11 @@
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="0.75" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Ogv" OutputType="Ogv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -627,9 +671,11 @@
|
||||
<Settings Key="VideoScale" Value="0.75" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Avi" OutputType="Avi" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -649,9 +695,11 @@
|
||||
<Settings Key="VideoScale" Value="0.75" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Png" OutputType="Png" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Png" OutputType="Png" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -677,7 +725,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)-small</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Webp" OutputType="Webp" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Webp" OutputType="Webp" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -704,7 +752,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 75%/To Jpg" OutputType="Jpg" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 75%/To Jpg" OutputType="Jpg" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -731,7 +779,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Mkv" OutputType="Mkv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -752,9 +800,11 @@
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Mp4" OutputType="Mp4" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
@@ -775,9 +825,11 @@
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Webm" OutputType="Webm" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
@@ -797,9 +849,11 @@
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Ogv" OutputType="Ogv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -819,9 +873,11 @@
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Avi" OutputType="Avi" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -841,6 +897,8 @@
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Png" OutputType="Png" IsDefaultSettings="true">
|
||||
@@ -869,7 +927,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)-small</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Webp" OutputType="Webp" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Webp" OutputType="Webp" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -896,7 +954,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 25%/To Jpg" OutputType="Jpg" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 25%/To Jpg" OutputType="Jpg" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -923,7 +981,251 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Mkv" OutputType="Mkv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Scale 720p/To Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="30" />
|
||||
<Settings Key="VideoEncodingSpeed" Value="Medium" />
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v libx264 -preset medium -crf 21 -c:a aac -qscale:a 1.3 -vf "scale=1280:720,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 720p/To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="28" />
|
||||
<Settings Key="VideoEncodingSpeed" Value="Medium" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="128" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v libx264 -preset medium -crf 21 -c:a aac -qscale:a 1.3 -vf "scale=1280:720,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 720p/To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v libvpx-vp9 -crf 23 -b:v 0 -c:a libvorbis -qscale:a 5 -vf "scale=1280:720,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 720p/To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="7" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-codec:v libtheora -qscale:v 8 -codec:a libvorbis -qscale:a 5 -vf "scale=1280:720,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 720p/To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="20" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v mpeg4 -vtag xvid -qscale:v 4 -c:a libmp3lame -qscale:a 2 -id3v2_version 3 -write_id3v1 1 -vf "scale=1280:720,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 1080p/To Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="30" />
|
||||
<Settings Key="VideoEncodingSpeed" Value="Medium" />
|
||||
<Settings Key="VideoScale" Value="0.25" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v libx264 -preset medium -crf 21 -c:a aac -qscale:a 1.3 -vf "scale=1920:1080,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 1080p/To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="28" />
|
||||
<Settings Key="VideoEncodingSpeed" Value="Medium" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="128" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v libx264 -preset medium -crf 21 -c:a aac -qscale:a 1.3 -vf "scale=1920:1080,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 1080p/To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v libvpx-vp9 -crf 23 -b:v 0 -c:a libvorbis -qscale:a 5 -vf "scale=1920:1080,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 1080p/To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="7" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-codec:v libtheora -qscale:v 8 -codec:a libvorbis -qscale:a 5 -vf "scale=1920:1080,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Scale 1080p/To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
<InputTypes>m4v</InputTypes>
|
||||
<InputTypes>mkv</InputTypes>
|
||||
<InputTypes>mov</InputTypes>
|
||||
<InputTypes>mp4</InputTypes>
|
||||
<InputTypes>mpeg</InputTypes>
|
||||
<InputTypes>ogv</InputTypes>
|
||||
<InputTypes>webm</InputTypes>
|
||||
<InputTypes>wmv</InputTypes>
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputPostConversionAction>None</InputPostConversionAction>
|
||||
<Settings Key="EnableAudio" Value="True" />
|
||||
<Settings Key="VideoQuality" Value="20" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="0" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="True" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="-c:v mpeg4 -vtag xvid -qscale:v 4 -c:a libmp3lame -qscale:a 2 -id3v2_version 3 -write_id3v1 1 -vf "scale=1920:1080,format=yuv420p"" />
|
||||
<OutputFileNameTemplate>(p)(f) (720p)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -944,6 +1246,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
@@ -967,9 +1271,11 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Mp4 (low quality)" OutputType="Mp4" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate left/To Mp4 (low quality)" OutputType="Mp4" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -990,9 +1296,11 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="96" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Webm" OutputType="Webm" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate left/To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
@@ -1012,9 +1320,11 @@
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Ogv" OutputType="Ogv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate left/To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -1034,9 +1344,11 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Avi" OutputType="Avi" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate left/To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
@@ -1056,6 +1368,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="90" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Png" OutputType="Png" IsDefaultSettings="true">
|
||||
@@ -1083,7 +1397,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Webp" OutputType="Webp" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate left/To Webp" OutputType="Webp" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -1110,7 +1424,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate left/To Jpg" OutputType="Jpg" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate left/To Jpg" OutputType="Jpg" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -1137,7 +1451,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Mkv" OutputType="Mkv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Mkv" OutputType="Mkv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -1158,6 +1472,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="270" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Mp4" OutputType="Mp4" IsDefaultSettings="true">
|
||||
@@ -1181,9 +1497,11 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="270" />
|
||||
<Settings Key="AudioBitrate" Value="155" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Mp4 (low quality)" OutputType="Mp4" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Mp4 (low quality)" OutputType="Mp4" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -1204,9 +1522,11 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="270" />
|
||||
<Settings Key="AudioBitrate" Value="96" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Webm" OutputType="Webm" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Webm" OutputType="Webm" IsDefaultSettings="true">
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
<InputTypes>flv</InputTypes>
|
||||
@@ -1226,9 +1546,11 @@
|
||||
<Settings Key="VideoQuality" Value="40" />
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="270" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Ogv" OutputType="Ogv" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Ogv" OutputType="Ogv" IsDefaultSettings="true">
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
<InputTypes>bik</InputTypes>
|
||||
@@ -1248,9 +1570,11 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="270" />
|
||||
<Settings Key="AudioBitrate" Value="160" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Avi" OutputType="Avi" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Avi" OutputType="Avi" IsDefaultSettings="true">
|
||||
<InputTypes>gif</InputTypes>
|
||||
<InputTypes>3gp</InputTypes>
|
||||
<InputTypes>avi</InputTypes>
|
||||
@@ -1270,6 +1594,8 @@
|
||||
<Settings Key="VideoScale" Value="1" />
|
||||
<Settings Key="VideoRotation" Value="270" />
|
||||
<Settings Key="AudioBitrate" Value="190" />
|
||||
<Settings Key="EnableFFMPEGCustomCommand" Value="False" />
|
||||
<Settings Key="FFMPEGCustomCommand" Value="" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Png" OutputType="Png" IsDefaultSettings="true">
|
||||
@@ -1297,7 +1623,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Webp" OutputType="Webp" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Webp" OutputType="Webp" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
@@ -1324,7 +1650,7 @@
|
||||
<Settings Key="ImageMaximumSize" Value="0" />
|
||||
<OutputFileNameTemplate>(p)(f)</OutputFileNameTemplate>
|
||||
</ConversionPreset>
|
||||
<ConversionPreset Name="Rotate right/To Jpg" OutputType="Jpg" IsDefaultSettings="false">
|
||||
<ConversionPreset Name="Rotate right/To Jpg" OutputType="Jpg" IsDefaultSettings="true">
|
||||
<InputTypes>arw</InputTypes>
|
||||
<InputTypes>bmp</InputTypes>
|
||||
<InputTypes>cr2</InputTypes>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
// <copyright file="ConversionSettingsToString.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright>
|
||||
|
||||
namespace FileConverter.ValueConverters
|
||||
{
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Windows.Data;
|
||||
|
||||
public class ConversionSettingsRelevant : IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!(value is IConversionSettings))
|
||||
{
|
||||
throw new ArgumentException("The value must be a conversion preset array.");
|
||||
}
|
||||
|
||||
IConversionSettings settings = (IConversionSettings)value;
|
||||
|
||||
string key = parameter as string;
|
||||
if (key == null)
|
||||
{
|
||||
throw new ArgumentException("The parameter must be a string value.");
|
||||
}
|
||||
|
||||
return settings.ContainsKey(key);
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -17,11 +17,27 @@ namespace FileConverter.ValueConverters.Generic
|
||||
|
||||
string stringParameter = parameter as string;
|
||||
|
||||
string falseResult = stringParameter ?? "Hidden";
|
||||
string trueResult = "Visible";
|
||||
string falseResult = "Hidden";
|
||||
if (!string.IsNullOrEmpty(stringParameter))
|
||||
{
|
||||
string[] results = stringParameter.Split(';');
|
||||
Diagnostics.Debug.Assert(results.Length <= 2, "results.Length <= 2");
|
||||
|
||||
if (results.Length >= 1)
|
||||
{
|
||||
falseResult = results[0];
|
||||
}
|
||||
|
||||
if (results.Length >= 2)
|
||||
{
|
||||
trueResult = results[1];
|
||||
}
|
||||
}
|
||||
|
||||
bool booleanValue = (bool)value;
|
||||
|
||||
return booleanValue ? "Visible" : falseResult;
|
||||
return booleanValue ? trueResult : falseResult;
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
|
||||
@@ -1,157 +0,0 @@
|
||||
// <copyright file="ConversionSettingsTemplateSelector.cs" company="AAllard">License: http://www.gnu.org/licenses/gpl.html GPL version 3.</copyright>
|
||||
|
||||
namespace FileConverter.Views
|
||||
{
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
public class ConversionSettingsTemplateSelector : DataTemplateSelector
|
||||
{
|
||||
public DataTemplate DefaultDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate AviSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate FlacSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate WavSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate Mp3SettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate Mp4SettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate OggSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate OgvSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate AacSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate GifSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate JpgSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate PngSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate MkvSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate WebmSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DataTemplate WebpSettingsDataTemplate
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public override DataTemplate SelectTemplate(object item, DependencyObject container)
|
||||
{
|
||||
if (item == null)
|
||||
{
|
||||
return this.DefaultDataTemplate;
|
||||
}
|
||||
|
||||
ConversionPreset conversionPreset = (ConversionPreset)item;
|
||||
|
||||
switch (conversionPreset.OutputType)
|
||||
{
|
||||
case OutputType.Aac:
|
||||
return this.AacSettingsDataTemplate;
|
||||
|
||||
case OutputType.Avi:
|
||||
return this.AviSettingsDataTemplate;
|
||||
|
||||
case OutputType.Flac:
|
||||
return this.FlacSettingsDataTemplate;
|
||||
|
||||
case OutputType.Gif:
|
||||
return this.GifSettingsDataTemplate;
|
||||
|
||||
case OutputType.Jpg:
|
||||
return this.JpgSettingsDataTemplate;
|
||||
|
||||
case OutputType.Mkv:
|
||||
return this.MkvSettingsDataTemplate;
|
||||
|
||||
case OutputType.Mp3:
|
||||
return this.Mp3SettingsDataTemplate;
|
||||
|
||||
case OutputType.Mp4:
|
||||
return this.Mp4SettingsDataTemplate;
|
||||
|
||||
case OutputType.Ogg:
|
||||
return this.OggSettingsDataTemplate;
|
||||
|
||||
case OutputType.Ogv:
|
||||
return this.OgvSettingsDataTemplate;
|
||||
|
||||
case OutputType.Png:
|
||||
return this.PngSettingsDataTemplate;
|
||||
|
||||
case OutputType.Wav:
|
||||
return this.WavSettingsDataTemplate;
|
||||
|
||||
case OutputType.Webm:
|
||||
return this.WebmSettingsDataTemplate;
|
||||
|
||||
case OutputType.Webp:
|
||||
return this.WebpSettingsDataTemplate;
|
||||
}
|
||||
|
||||
return this.DefaultDataTemplate;
|
||||
}
|
||||
}
|
||||
}
|
||||
+105
-20
@@ -19,6 +19,7 @@
|
||||
<generic:CollectionContainsElementToBool x:Key="CollectionContainsElementToBool"/>
|
||||
<generic:FormatStringConverter x:Key="FormatStringConverter"/>
|
||||
<valueConverters:OutputTypeEnumToViewModel x:Key="OutputTypeEnumToViewModel"/>
|
||||
<valueConverters:ConversionSettingsRelevant x:Key="ConversionSettingsRelevant"/>
|
||||
|
||||
<generic:ValueConverterGroup x:Key="ConversionSettingsToEnum">
|
||||
<valueConverters:ConversionSettingsToString/>
|
||||
@@ -35,6 +36,12 @@
|
||||
<generic:StringToValueType/>
|
||||
</generic:ValueConverterGroup>
|
||||
|
||||
<generic:ValueConverterGroup x:Key="ConversionSettingsToVisibility">
|
||||
<valueConverters:ConversionSettingsToString/>
|
||||
<generic:StringToValueType/>
|
||||
<generic:BoolToVisibility/>
|
||||
</generic:ValueConverterGroup>
|
||||
|
||||
<generic:ValueConverterGroup x:Key="ReferenceToVisibility">
|
||||
<generic:EqualsConverter/>
|
||||
<generic:BoolInverterConverter/>
|
||||
@@ -312,11 +319,12 @@
|
||||
<Label Content="(H.264)" FontWeight="Light" Foreground="#004B82" />
|
||||
</DockPanel>
|
||||
|
||||
<Label Content="{x:Static project:Resources.Quality}" Grid.Row="1" Grid.Column="0" ToolTip="{x:Static project:Resources.VideoEncodingQualityTooltip}" HorizontalContentAlignment="Right"/>
|
||||
<Slider x:Name="QualitySlider" Grid.Row="1" Grid.Column="1" Value="{Binding Settings, ConverterParameter=VideoQuality|System.Double, Converter={StaticResource ConversionSettingsToValueType}, Mode=TwoWay}"
|
||||
Margin="0,2,0,0" VerticalAlignment="Top" AutoToolTipPlacement="TopLeft" IsSnapToTickEnabled="True" IsSelectionRangeEnabled="True" SelectionStart="20" SelectionEnd="33" Minimum="0" Maximum="51" TickPlacement="BottomRight" SmallChange="1" LargeChange="6" TickFrequency="1" Foreground="#004B82" />
|
||||
<Label Grid.Row="1" Grid.Column="0" Content="{x:Static project:Resources.Quality}" ToolTip="{x:Static project:Resources.VideoEncodingQualityTooltip}" HorizontalContentAlignment="Right"/>
|
||||
<Slider x:Name="QualitySlider" Grid.Row="1" Grid.Column="1"
|
||||
Value="{Binding Settings, ConverterParameter=VideoQuality|System.Double, Converter={StaticResource ConversionSettingsToValueType}, Mode=TwoWay}"
|
||||
Margin="0,2,0,0" VerticalAlignment="Top" AutoToolTipPlacement="TopLeft" IsSnapToTickEnabled="True" IsSelectionRangeEnabled="True" SelectionStart="20" SelectionEnd="33" Minimum="0" Maximum="51" TickPlacement="BottomRight" SmallChange="1" LargeChange="6" TickFrequency="1" Foreground="#004B82" />
|
||||
|
||||
<Label Content="{x:Static project:Resources.EncodingSpeed}" Grid.Row="2" Grid.Column="0" ToolTip="{x:Static project:Resources.VideoEncodingSpeedTooltip}" HorizontalContentAlignment="Right"/>
|
||||
<Label Grid.Row="2" Grid.Column="0" Content="{x:Static project:Resources.EncodingSpeed}" ToolTip="{x:Static project:Resources.VideoEncodingSpeedTooltip}" HorizontalContentAlignment="Right"/>
|
||||
<ComboBox Grid.Row="2" Grid.Column="1"
|
||||
ItemsSource="{Binding Path=(conversionJobs:ConversionJob_FFMPEG.VideoEncodingSpeeds)}"
|
||||
SelectedValue="{Binding Settings, ConverterParameter=VideoEncodingSpeed|FileConverter.ConversionJobs.VideoEncodingSpeed, Converter={StaticResource ConversionSettingsToEnum}, Mode=TwoWay, TargetNullValue=veryslow}">
|
||||
@@ -606,22 +614,99 @@
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
|
||||
<views:ConversionSettingsTemplateSelector x:Key="ConversionSettingsSelector"
|
||||
DefaultDataTemplate="{StaticResource EmptyDataTemplate}"
|
||||
AacSettingsDataTemplate="{StaticResource AacSettingsDataTemplate}"
|
||||
AviSettingsDataTemplate="{StaticResource AviSettingsDataTemplate}"
|
||||
FlacSettingsDataTemplate="{StaticResource FlacSettingsDataTemplate}"
|
||||
GifSettingsDataTemplate="{StaticResource GifSettingsDataTemplate}"
|
||||
JpgSettingsDataTemplate="{StaticResource JpgSettingsDataTemplate}"
|
||||
MkvSettingsDataTemplate="{StaticResource MkvSettingsDataTemplate}"
|
||||
Mp3SettingsDataTemplate="{StaticResource Mp3SettingsDataTemplate}"
|
||||
Mp4SettingsDataTemplate="{StaticResource MkvSettingsDataTemplate}"
|
||||
OggSettingsDataTemplate="{StaticResource OggSettingsDataTemplate}"
|
||||
OgvSettingsDataTemplate="{StaticResource OgvSettingsDataTemplate}"
|
||||
PngSettingsDataTemplate="{StaticResource PngSettingsDataTemplate}"
|
||||
WavSettingsDataTemplate="{StaticResource WavSettingsDataTemplate}"
|
||||
WebmSettingsDataTemplate="{StaticResource WebmSettingsDataTemplate}"
|
||||
WebpSettingsDataTemplate="{StaticResource JpgSettingsDataTemplate}" />
|
||||
<Style x:Key="OutputTypeSelectorStyle" TargetType="{x:Type ContentControl}">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource EmptyDataTemplate}"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Aac">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource AacSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Avi">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource AviSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Flac">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource FlacSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Gif">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource GifSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Jpg">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource JpgSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Mkv">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource MkvSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Mp3">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource Mp3SettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Mp4">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource MkvSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Ogg">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource OggSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Ogv">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource OgvSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Png">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource PngSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Wav">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource WavSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Webm">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource WebmSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
<DataTrigger Binding="{Binding OutputType}" Value="Webp">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource JpgSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
<DataTemplate x:Key="CustomSettingsDataTemplate" DataType="{x:Type fileConverter:ConversionPreset}">
|
||||
<StackPanel>
|
||||
<DockPanel>
|
||||
<CheckBox Margin="0,6,0,0"
|
||||
IsChecked="{Binding Settings, ConverterParameter=EnableFFMPEGCustomCommand|System.Boolean, Converter={StaticResource ConversionSettingsToValueType}, Mode=TwoWay}" />
|
||||
<Label FontWeight="Bold"
|
||||
Content="{x:Static project:Resources.AdvancedMode}" IsEnabled="{Binding Settings, ConverterParameter=EnableFFMPEGCustomCommand|System.Boolean, Converter={StaticResource ConversionSettingsToValueType}, Mode=OneWay}"/>
|
||||
</DockPanel>
|
||||
<Grid Visibility="{Binding Settings, Converter={StaticResource ConversionSettingsToVisibility}, ConverterParameter=EnableFFMPEGCustomCommand|System.Boolean|Collapsed}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="Auto"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<Label Content="{x:Static project:Resources.FFMPEGCustomArguments}" Grid.Row="0" Grid.Column="0" HorizontalContentAlignment="Right" />
|
||||
<TextBox Grid.Row="0" Grid.Column="1" Margin="5,2,25,2" TextWrapping="Wrap" Width="Auto"
|
||||
ToolTip="{x:Static project:Resources.FFMPEGCustomArgumentsTooltip}"
|
||||
Text="{Binding Settings, ConverterParameter=FFMPEGCustomCommand|System.String, Converter={StaticResource ConversionSettingsToValueType}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" />
|
||||
<TextBlock Grid.Row="1" Grid.Column="1" Margin="0,5,5,0">
|
||||
<Hyperlink CommandParameter="https://ffmpeg.org/ffmpeg.html" Command="{Binding DataContext.OpenUrlCommand, RelativeSource={RelativeSource AncestorType={x:Type Window}}, Mode=OneWay}" Foreground="#1E6BB8"><x:Static Member="project:Resources.Help" /></Hyperlink>
|
||||
</TextBlock>
|
||||
|
||||
</Grid>
|
||||
<DockPanel Visibility="{Binding Settings, Converter={StaticResource ConversionSettingsToVisibility}, ConverterParameter=EnableFFMPEGCustomCommand|System.Boolean|Visible;Collapsed}">
|
||||
<ContentControl Content="{Binding .}" Style="{StaticResource OutputTypeSelectorStyle}"/>
|
||||
</DockPanel>
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
|
||||
<DataTemplate x:Key="EmptyCustomSettingsDataTemplate" DataType="{x:Type fileConverter:ConversionPreset}">
|
||||
<ContentControl Content="{Binding .}" Style="{StaticResource OutputTypeSelectorStyle}"/>
|
||||
</DataTemplate>
|
||||
|
||||
<Style x:Key="ConversionSettingsSelectorStyle" TargetType="{x:Type ContentControl}">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource EmptyCustomSettingsDataTemplate}"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding SelectedPreset.Preset.Settings, Converter={StaticResource ConversionSettingsRelevant}, ConverterParameter=EnableFFMPEGCustomCommand}" Value="True">
|
||||
<Setter Property="ContentTemplate" Value="{StaticResource CustomSettingsDataTemplate}"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
|
||||
</ResourceDictionary>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<ResourceDictionary>
|
||||
<ResourceDictionary.MergedDictionaries>
|
||||
<ResourceDictionary Source="Resources/CustomStyles.xaml"/>
|
||||
<ResourceDictionary Source="Resources/ConversionPresets.xaml"/>
|
||||
<ResourceDictionary Source="Resources/ConversionPresetTemplates.xaml"/>
|
||||
</ResourceDictionary.MergedDictionaries>
|
||||
|
||||
<generic:IcoFileSizeSelectorConverter x:Key="IcoFileSizeSelector" />
|
||||
@@ -277,14 +277,16 @@
|
||||
</GroupStyle>
|
||||
</ComboBox.GroupStyle>
|
||||
<ComboBox.ItemTemplate>
|
||||
<DataTemplate DataType="viewModels:OutputTypeViewModel">
|
||||
<DataTemplate DataType="{x:Type viewModels:OutputTypeViewModel}">
|
||||
<TextBlock Text="{Binding Type}" Padding="10,2,2,2"/>
|
||||
</DataTemplate>
|
||||
</ComboBox.ItemTemplate>
|
||||
</ComboBox>
|
||||
|
||||
<ContentControl ContentTemplateSelector="{StaticResource ResourceKey=ConversionSettingsSelector}"
|
||||
Content="{Binding SelectedPreset.Preset, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<ContentControl Content="{Binding SelectedPreset.Preset}"
|
||||
Style="{StaticResource ConversionSettingsSelectorStyle}">
|
||||
</ContentControl>
|
||||
|
||||
<Separator/>
|
||||
|
||||
<!-- Output file name template -->
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# Change Log
|
||||
|
||||
## Next version
|
||||
- Added: Possibility to create custom command line preset for types converted with FFMPEG (video and audio).
|
||||
- Added: Possibility to create preset folders in File Converter context menu.
|
||||
- Added: Ability to drag and drop to move conversion presets.
|
||||
- Added: Brazilian Portuguese translation (thanks to Marhc).
|
||||
|
||||
Reference in new issue
Block a user