FF-124 - added more bitrate options to add audio track

This commit is contained in:
John Andrews
2022-06-19 11:10:58 +12:00
parent 64c37b0e1c
commit 3eaf1795a6
3 changed files with 8 additions and 9 deletions

View File

@@ -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;

View File

@@ -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; }

View File

@@ -74,16 +74,11 @@ public class FfmpegBuilderAudioAddTrack : FfmpegBuilderNode
_BitrateOptions = new List<ListOption>
{
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;
}