* re-namespace * optimize usings * more usings * more of the same * more implicit/global usings * cleanup all usings * minor fixes
38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using ErsatzTV.FFmpeg.OutputFormat;
|
|
|
|
namespace ErsatzTV.FFmpeg;
|
|
|
|
public record FFmpegState(
|
|
bool SaveReport,
|
|
HardwareAccelerationMode HardwareAccelerationMode,
|
|
Option<string> VaapiDriver,
|
|
Option<string> VaapiDevice,
|
|
Option<TimeSpan> Start,
|
|
Option<TimeSpan> Finish,
|
|
bool DoNotMapMetadata,
|
|
Option<string> MetadataServiceProvider,
|
|
Option<string> MetadataServiceName,
|
|
Option<string> MetadataAudioLanguage,
|
|
OutputFormatKind OutputFormat,
|
|
Option<string> HlsPlaylistPath,
|
|
Option<string> HlsSegmentTemplate,
|
|
long PtsOffset)
|
|
{
|
|
public static FFmpegState Concat(bool saveReport, string channelName) =>
|
|
new(
|
|
saveReport,
|
|
HardwareAccelerationMode.None,
|
|
Option<string>.None,
|
|
Option<string>.None,
|
|
Option<TimeSpan>.None,
|
|
Option<TimeSpan>.None,
|
|
true, // do not map metadata
|
|
"ErsatzTV",
|
|
channelName,
|
|
Option<string>.None,
|
|
OutputFormatKind.MpegTs,
|
|
Option<string>.None,
|
|
Option<string>.None,
|
|
0);
|
|
}
|