diff --git a/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs b/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs index 4d94c55..eff9f42 100644 --- a/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs +++ b/Application/FileConverter/ConversionJobs/ConversionJob_FFMPEG.cs @@ -84,6 +84,16 @@ namespace FileConverter.ConversionJobs protected virtual void FillFFMpegArgumentsList() { + string customCommand = this.ConversionPreset.GetSettingsValue(ConversionPreset.ConversionSettingKeys.FFMPEGCustomCommand); + if (!string.IsNullOrEmpty(customCommand)) + { + // Custom command override other settings. + 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"; diff --git a/Application/FileConverter/ConversionPreset/ConversionPreset.cs b/Application/FileConverter/ConversionPreset/ConversionPreset.cs index 669b287..1b25b2f 100644 --- a/Application/FileConverter/ConversionPreset/ConversionPreset.cs +++ b/Application/FileConverter/ConversionPreset/ConversionPreset.cs @@ -597,6 +597,7 @@ 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";