mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
481 B
13 lines
481 B
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 }; |
|
}
|
|
|