mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-16 02:55:44 +00:00
21 lines
651 B
C#
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;
|
|
}
|