From 3eaf1795a6ec8ebdf414bdfe577951b8de1267b1 Mon Sep 17 00:00:00 2001 From: John Andrews Date: Sun, 19 Jun 2022 11:10:58 +1200 Subject: [PATCH] FF-124 - added more bitrate options to add audio track --- BasicNodes/File/CopyFile.cs | 2 ++ BasicNodes/File/MoveFile.cs | 2 ++ .../Audio/FfmpegBuilderAudioAddTrack.cs | 13 ++++--------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/BasicNodes/File/CopyFile.cs b/BasicNodes/File/CopyFile.cs index 4dfcfa3d..cf90fb36 100644 --- a/BasicNodes/File/CopyFile.cs +++ b/BasicNodes/File/CopyFile.cs @@ -12,6 +12,8 @@ namespace FileFlows.BasicNodes.File public override FlowElementType Type => FlowElementType.Process; public override string Icon => "far fa-copy"; + public override string HelpUrl => "https://docs.fileflows.com/plugins/basic-nodes/copy-file"; + private string _DestinationPath = string.Empty; private string _DestinationFile = string.Empty; diff --git a/BasicNodes/File/MoveFile.cs b/BasicNodes/File/MoveFile.cs index e5b310bc..f2118b08 100644 --- a/BasicNodes/File/MoveFile.cs +++ b/BasicNodes/File/MoveFile.cs @@ -13,6 +13,8 @@ namespace FileFlows.BasicNodes.File public override FlowElementType Type => FlowElementType.Process; public override string Icon => "fas fa-file-export"; + public override string HelpUrl => "https://docs.fileflows.com/plugins/basic-nodes/move-file"; + [Required] [Folder(1)] public string DestinationPath { get; set; } diff --git a/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioAddTrack.cs b/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioAddTrack.cs index 3816b2f5..d0d7ab36 100644 --- a/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioAddTrack.cs +++ b/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioAddTrack.cs @@ -74,16 +74,11 @@ public class FfmpegBuilderAudioAddTrack : FfmpegBuilderNode _BitrateOptions = new List { new ListOption { Label = "Automatic", Value = 0}, - new ListOption { Label = "64 Kbps", Value = 64}, - new ListOption { Label = "96 Kbps", Value = 96}, - new ListOption { Label = "128 Kbps", Value = 128}, - new ListOption { Label = "160 Kbps", Value = 160}, - new ListOption { Label = "192 Kbps", Value = 192}, - new ListOption { Label = "224 Kbps", Value = 224}, - new ListOption { Label = "256 Kbps", Value = 256}, - new ListOption { Label = "288 Kbps", Value = 288}, - new ListOption { Label = "320 Kbps", Value = 320}, }; + for (int i = 64; i <= 2048; i += 32) + { + _BitrateOptions.Add(new ListOption { Label = i + " Kbps", Value = i }); + } } return _BitrateOptions; }