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.

14 lines
470 B

using System.Globalization;
namespace ErsatzTV.FFmpeg.OutputOption;
public class OutputTsOffsetOption(long ptsOffset, int videoTrackTimeScale) : OutputOption
{
public override string[] OutputOptions =>
[
"-output_ts_offset",
$"{(ptsOffset / (double)videoTrackTimeScale).ToString(NumberFormatInfo.InvariantInfo)}"
];
// public override FrameState NextState(FrameState currentState) => currentState with { PtsOffset = _ptsOffset };
}