diff --git a/FFMpegCore/FFMPEG/Argument/Atoms/ForceFormatArgument.cs b/FFMpegCore/FFMPEG/Argument/Atoms/ForceFormatArgument.cs
index 700d320..c2322e0 100644
--- a/FFMpegCore/FFMPEG/Argument/Atoms/ForceFormatArgument.cs
+++ b/FFMpegCore/FFMPEG/Argument/Atoms/ForceFormatArgument.cs
@@ -5,16 +5,17 @@ namespace FFMpegCore.FFMPEG.Argument
///
/// Represents force format parameter
///
- public class ForceFormatArgument : Argument
+ public class ForceFormatArgument : Argument
{
public ForceFormatArgument() { }
+ public ForceFormatArgument(string format) : base(format) { }
- public ForceFormatArgument(VideoCodec value) : base(value) { }
+ public ForceFormatArgument(VideoCodec value) : base(value.ToString().ToLower()) { }
///
public override string GetStringValue()
{
- return $"-f {Value.ToString().ToLower()}";
+ return $"-f {Value}";
}
}
}
diff --git a/FFMpegCore/FFMPEG/Argument/Atoms/VideoCodecArgument.cs b/FFMpegCore/FFMPEG/Argument/Atoms/VideoCodecArgument.cs
index e8296ab..ac35f35 100644
--- a/FFMpegCore/FFMPEG/Argument/Atoms/VideoCodecArgument.cs
+++ b/FFMpegCore/FFMPEG/Argument/Atoms/VideoCodecArgument.cs
@@ -5,15 +5,17 @@ namespace FFMpegCore.FFMPEG.Argument
///
/// Represents video codec parameter
///
- public class VideoCodecArgument : Argument
+ public class VideoCodecArgument : Argument
{
public int Bitrate { get; protected set; } = 0;
public VideoCodecArgument() { }
- public VideoCodecArgument(VideoCodec value) : base(value) { }
+ public VideoCodecArgument(string codec) : base(codec) { }
- public VideoCodecArgument(VideoCodec value, int bitrate) : base(value)
+ public VideoCodecArgument(VideoCodec value) : base(value.ToString().ToLower()) { }
+
+ public VideoCodecArgument(VideoCodec value, int bitrate) : base(value.ToString().ToLower())
{
Bitrate = bitrate;
}
@@ -21,7 +23,7 @@ public VideoCodecArgument(VideoCodec value, int bitrate) : base(value)
///
public override string GetStringValue()
{
- var video = $"-c:v {Value.ToString().ToLower()} -pix_fmt yuv420p";
+ var video = $"-c:v {Value} -pix_fmt yuv420p";
if (Bitrate != default)
{