mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-15 18:45:44 +00:00
24 lines
659 B
C#
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"
|
|
};
|
|
}
|
|
}
|
|
}
|