mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 10:05:44 +00:00
20 lines
No EOL
490 B
C#
20 lines
No EOL
490 B
C#
using FFMpegCore.Enums;
|
|
|
|
namespace FFMpegCore.Arguments
|
|
{
|
|
/// <summary>
|
|
/// Represents parameter of audio codec and it's quality
|
|
/// </summary>
|
|
public class AudioBitrateArgument : IArgument
|
|
{
|
|
public readonly int Bitrate;
|
|
public AudioBitrateArgument(AudioQuality value) : this((int)value) { }
|
|
public AudioBitrateArgument(int bitrate)
|
|
{
|
|
Bitrate = bitrate;
|
|
}
|
|
|
|
|
|
public string Text => $"-b:a {Bitrate}k";
|
|
}
|
|
} |