mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
parent
cc82f0b3fa
commit
3ff253f744
1 changed files with 23 additions and 0 deletions
23
FFMpegCore/FFMPEG/Argument/Atoms/VariableBitRateArgument.cs
Normal file
23
FFMpegCore/FFMPEG/Argument/Atoms/VariableBitRateArgument.cs
Normal 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} ";
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue