Stream custom live channels using your own media
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.
 
 

16 lines
536 B

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 };
}