* upgrade sdk * fix warnings in ersatztv.ffmpeg * fix warnings in ersatztv.core * fix warnings in ersatztv.infrastructure * fix warnings in ersatztv.application * disable analysis for migrations projects * fix warnings in ersatztv.scanner * fix warnings in ersatztv * upgrade project framework * update github actions and dockerfiles
17 lines
536 B
C#
17 lines
536 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 string[] OutputOptions => new[]
|
|
{ "-video_track_timescale", _timeScale.ToString(CultureInfo.InvariantCulture) };
|
|
|
|
public override FrameState NextState(FrameState currentState) =>
|
|
currentState with { VideoTrackTimeScale = _timeScale };
|
|
}
|