mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
19 lines
429 B
C#
19 lines
429 B
C#
using FFMpegCore.Extend;
|
|
|
|
namespace FFMpegCore.Arguments
|
|
{
|
|
/// <summary>
|
|
/// Represents seek parameter
|
|
/// </summary>
|
|
public class SeekArgument : IArgument
|
|
{
|
|
public readonly TimeSpan? SeekTo;
|
|
|
|
public SeekArgument(TimeSpan? seekTo)
|
|
{
|
|
SeekTo = seekTo;
|
|
}
|
|
|
|
public string Text => SeekTo.HasValue ? $"-ss {SeekTo.Value.ToLongString()}" : string.Empty;
|
|
}
|
|
}
|