FFMpegCore/FFMpegCore/FFMpeg/Arguments/EndSeekArgument.cs
2025-10-16 12:38:57 +02:00

18 lines
389 B
C#

using FFMpegCore.Extend;
namespace FFMpegCore.Arguments;
/// <summary>
/// Represents seek parameter
/// </summary>
public class EndSeekArgument : IArgument
{
public readonly TimeSpan? SeekTo;
public EndSeekArgument(TimeSpan? seekTo)
{
SeekTo = seekTo;
}
public string Text => SeekTo.HasValue ? $"-to {SeekTo.Value.ToLongString()}" : string.Empty;
}