FFMpegCore/FFMpegCore/FFMPEG/Argument/Atoms/CopyArgument.cs
Malte Rosenbjerg 494e38c14a Fix tests
2020-05-06 21:15:06 +02:00

24 lines
659 B
C#

using FFMpegCore.FFMPEG.Enums;
namespace FFMpegCore.FFMPEG.Argument
{
/// <summary>
/// Represents parameter of copy parameter
/// Defines if channel (audio, video or both) should be copied to output file
/// </summary>
public class CopyArgument : Argument<Channel>
{
public CopyArgument(Channel value = Channel.Both) : base(value) { }
/// <inheritdoc/>
public override string GetStringValue()
{
return Value switch
{
Channel.Audio => "-c:a copy",
Channel.Video => "-c:v copy",
_ => "-c copy"
};
}
}
}