diff --git a/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioConverter.cs b/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioConverter.cs
index 4ed926c8..abd53a7b 100644
--- a/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioConverter.cs
+++ b/VideoNodes/FfmpegBuilderNodes/Audio/FfmpegBuilderAudioConverter.cs
@@ -3,21 +3,33 @@ using FileFlows.VideoNodes.Helpers;
namespace FileFlows.VideoNodes.FfmpegBuilderNodes;
+///
+/// FFmpeg Builder flow element that converts audio
+///
public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
{
+ ///
public override string HelpUrl => "https://fileflows.com/docs/plugins/video-nodes/ffmpeg-builder/audio-converter";
-
+ ///
public override string Icon => "fas fa-comments";
-
+ ///
public override int Outputs => 2;
-
+ ///
+ /// Gets or sets the codec to use
+ ///
[DefaultValue("aac")]
[Select(nameof(CodecOptions), 1)]
public string Codec { get; set; }
+ ///
+ /// The available codec options
+ ///
private static List _CodecOptions;
+ ///
+ /// Gets the available codec options
+ ///
public static List CodecOptions
{
get
@@ -41,12 +53,21 @@ public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
}
}
+ ///
+ /// Gets or sets the PCM format
+ ///
[DefaultValue("pcm_s16le")]
[Select(nameof(PcmFormats), 2)]
[ConditionEquals(nameof(Codec), "pcm")]
public string PcmFormat { get; set; }
+ ///
+ /// The PCM options
+ ///
private static List _PcmFormats;
+ ///
+ /// Gets the PCM options
+ ///
public static List PcmFormats
{
get
@@ -83,12 +104,19 @@ public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
}
}
-
+ ///
+ /// Gets or sets the number of channels for the converted audio
+ ///
[DefaultValue(0)]
[Select(nameof(ChannelsOptions), 3)]
public float Channels { get; set; }
-
+ ///
+ /// The channel options
+ ///
private static List _ChannelsOptions;
+ ///
+ /// Gets the channel options
+ ///
public static List ChannelsOptions
{
get
@@ -108,10 +136,18 @@ public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
}
}
+ ///
+ /// Gets or sets the bitrate
+ ///
[Select(nameof(BitrateOptions), 4)]
public int Bitrate { get; set; }
-
+ ///
+ /// The bitrate options
+ ///
private static List _BitrateOptions;
+ ///
+ /// Gets the bitrate options
+ ///
public static List BitrateOptions
{
get
@@ -132,16 +168,33 @@ public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
}
}
+ ///
+ /// Gets or sets the field to match again
+ ///
[DefaultValue("")]
[Select(nameof(FieldOptions), 5)]
public string Field { get; set; }
-
+ ///
+ /// The field options
+ ///
private static List _FieldOptions;
+ ///
+ /// Constant for the Title field
+ ///
internal const string FIELD_TITLE = "Title";
+ ///
+ /// Constant for the Language field
+ ///
internal const string FIELD_LANGUAGE = "Language";
+ ///
+ /// Constant for the Codec field
+ ///
internal const string FIELD_CODEC = "Codec";
+ ///
+ /// Gets the field options
+ ///
public static List FieldOptions
{
get
@@ -161,14 +214,21 @@ public class FfmpegBuilderAudioConverter : FfmpegBuilderNode
}
}
+ ///
+ /// Gets or sets the pattern to match against
+ ///
[TextVariable(6)]
[ConditionEquals(nameof(Field), "", true)]
public string Pattern { get; set; }
+ ///
+ /// Gets or sets if the pattern should not match
+ ///
[Boolean(7)]
[ConditionEquals(nameof(Field), "", true)]
public bool NotMatching { get; set; }
+ ///
public override int Execute(NodeParameters args)
{
bool converting = false;