mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
24 lines
No EOL
543 B
C#
24 lines
No EOL
543 B
C#
using System;
|
|
|
|
namespace FFMpegCore.FFMPEG.Argument
|
|
{
|
|
/// <summary>
|
|
/// Constant Rate Factor (CRF) argument
|
|
/// </summary>
|
|
public class ConstantRateFactorArgument : IArgument
|
|
{
|
|
public readonly int Crf;
|
|
|
|
public ConstantRateFactorArgument(int crf)
|
|
{
|
|
if (crf < 0 || crf > 63)
|
|
{
|
|
throw new ArgumentException("Argument is outside range (0 - 63)", nameof(crf));
|
|
}
|
|
|
|
Crf = crf;
|
|
}
|
|
|
|
public string Text => $"-crf {Crf}";
|
|
}
|
|
} |