FFMpegCore/FFMpegCore/FFMpeg/Arguments/SegmentResetTimestampsArgument.cs
2025-10-16 15:14:14 +02:00

21 lines
651 B
C#

namespace FFMpegCore.Arguments;
/// <summary>
/// Represents reset_timestamps parameter
/// </summary>
public class SegmentResetTimeStampsArgument : ISegmentArgument
{
public readonly bool ResetTimestamps;
/// <summary>
/// Represents reset_timestamps parameter
/// </summary>
/// <param name="resetTimestamps">true if files timestamps are to be reset</param>
public SegmentResetTimeStampsArgument(bool resetTimestamps)
{
ResetTimestamps = resetTimestamps;
}
public string Key { get; } = "reset_timestamps";
public string Value => ResetTimestamps ? "-reset_timestamps 1" : string.Empty;
}