mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Add AudioSamplingRateArgument
This commit is contained in:
parent
d1a1864aa1
commit
bc76d830d4
2 changed files with 20 additions and 2 deletions
|
@ -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}";
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue