mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-19 13:06:44 +00:00
c3b5cd997e
Former-commit-id: 72366d573a
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";
|
|
}
|
|
} |