* fix formatting rules * reformat ersatztv * reformat ersatztv.application * reformat ersatztv.core * refactor ersatztv.core.tests * reformat ersatztv.ffmpeg * reformat ersatztv.ffmpeg.tests * reformat ersatztv.infrastructure * cleanup infra mysql * cleanup infra sqlite * cleanup infra tests * cleanup ersatztv.scanner * cleanup ersatztv.scanner.tests * sln cleanup * update dependencies
14 lines
541 B
C#
14 lines
541 B
C#
using ErsatzTV.FFmpeg.Environment;
|
|
|
|
namespace ErsatzTV.FFmpeg.OutputOption;
|
|
|
|
public class TimeLimitOutputOption(TimeSpan finish) : IPipelineStep
|
|
{
|
|
public EnvironmentVariable[] EnvironmentVariables => [];
|
|
public string[] GlobalOptions => [];
|
|
public string[] InputOptions(InputFile inputFile) => [];
|
|
public string[] FilterOptions => [];
|
|
public string[] OutputOptions => ["-t", $"{(int)finish.TotalHours:00}:{finish:mm}:{finish:ss\\.fffffff}"];
|
|
public FrameState NextState(FrameState currentState) => currentState;
|
|
}
|