Files
ersatztv/ErsatzTV.FFmpeg/Option/VideoTrackTimescaleOutputOption.cs
T
Jason DoveandGitHub c02b83d0d6 code cleanup (#743)
* update tools

* run code cleanup

* update dependencies
2022-04-19 17:47:18 -05:00

14 lines
481 B
C#

namespace ErsatzTV.FFmpeg.Option;
public class VideoTrackTimescaleOutputOption : OutputOption
{
private readonly int _timeScale;
public VideoTrackTimescaleOutputOption(int timeScale) => _timeScale = timeScale;
public override IList<string> OutputOptions => new List<string> { "-video_track_timescale", _timeScale.ToString() };
public override FrameState NextState(FrameState currentState) =>
currentState with { VideoTrackTimeScale = _timeScale };
}