mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
24 lines
No EOL
540 B
C#
24 lines
No EOL
540 B
C#
using System;
|
|
|
|
namespace FFMpegCore.FFMPEG.Argument
|
|
{
|
|
/// <summary>
|
|
/// Variable Bitrate Argument (VBR) argument
|
|
/// </summary>
|
|
public class VariableBitRateArgument : IArgument
|
|
{
|
|
public readonly int Vbr;
|
|
|
|
public VariableBitRateArgument(int vbr)
|
|
{
|
|
if (vbr < 0 || vbr > 5)
|
|
{
|
|
throw new ArgumentException("Argument is outside range (0 - 5)", nameof(vbr));
|
|
}
|
|
|
|
Vbr = vbr;
|
|
}
|
|
|
|
public string Text => $"-vbr {Vbr}";
|
|
}
|
|
} |