Add AudioSamplingRateArgument

Former-commit-id: bc76d830d4
This commit is contained in:
Malte Rosenbjerg 2020-04-15 16:46:28 +02:00
parent 2809e0c47b
commit c1393697a3
2 changed files with 20 additions and 2 deletions

View file

@ -0,0 +1,18 @@
namespace FFMpegCore.FFMPEG.Argument
{
/// <summary>
/// Audio sampling rate argument. Defaults to 48000 (Hz)
/// </summary>
public class AudioSamplingRateArgument : Argument<int>
{
public AudioSamplingRateArgument() : base(48000) { }
public AudioSamplingRateArgument(int samplingRate) : base(samplingRate) { }
/// <inheritdoc/>
public override string GetStringValue()
{
return $"-ar {Value}";
}
}
}

View file

@ -10,9 +10,9 @@
<Version>1.0.12</Version>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<FileVersion>1.1.0.0</FileVersion>
<PackageReleaseNotes>Make output file existence check optional</PackageReleaseNotes>
<PackageReleaseNotes>Adds AudioSamplingRateArgument </PackageReleaseNotes>
<LangVersion>8</LangVersion>
<PackageVersion>1.3.2</PackageVersion>
<PackageVersion>1.3.3</PackageVersion>
<Authors>Vlad Jerca, Malte Rosenbjerg</Authors>
<PackageTags>ffmpeg ffprobe convert video audio mediafile resize analyze muxing</PackageTags>
<RepositoryType>GitHub</RepositoryType>