* cleanup scanner project * cleanup infrastructure projects * cleanup ffmpeg project * cleanup core project * cleanup app project * cleanup main project * update dependencies * code cleanup
17 lines
552 B
C#
17 lines
552 B
C#
using System.Globalization;
|
|
|
|
namespace ErsatzTV.FFmpeg.OutputOption;
|
|
|
|
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(CultureInfo.InvariantCulture) };
|
|
|
|
public override FrameState NextState(FrameState currentState) =>
|
|
currentState with { VideoTrackTimeScale = _timeScale };
|
|
}
|