Add vbr support

Former-commit-id: 098917a5da
This commit is contained in:
Malte Rosenbjerg 2020-02-27 18:31:57 +01:00
parent cc82f0b3fa
commit 3ff253f744

View file

@ -0,0 +1,23 @@
using System;
namespace FFMpegCore.FFMPEG.Argument
{
/// <summary>
/// Variable Bitrate Argument (VBR) argument
/// </summary>
public class VariableBitRateArgument : Argument<int>
{
public VariableBitRateArgument(int vbr) : base(vbr)
{
if (vbr < 0 || vbr > 5)
{
throw new ArgumentException("Argument is outside range (0 - 5)", nameof(vbr));
}
}
public override string GetStringValue()
{
return $"-vbr {Value} ";
}
}
}