|
|
|
@ -99,30 +99,30 @@ public class TranscodingTests |
|
|
|
{ |
|
|
|
{ |
|
|
|
public static Watermark[] Watermarks = |
|
|
|
public static Watermark[] Watermarks = |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Watermark.None,
|
|
|
|
Watermark.None, |
|
|
|
Watermark.PermanentOpaqueScaled, |
|
|
|
Watermark.PermanentOpaqueScaled, |
|
|
|
// Watermark.PermanentOpaqueActualSize,
|
|
|
|
// Watermark.PermanentOpaqueActualSize,
|
|
|
|
// Watermark.PermanentTransparentScaled,
|
|
|
|
Watermark.PermanentTransparentScaled, |
|
|
|
// Watermark.PermanentTransparentActualSize
|
|
|
|
// Watermark.PermanentTransparentActualSize
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public static Subtitle[] Subtitles = |
|
|
|
public static Subtitle[] Subtitles = |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Subtitle.None,
|
|
|
|
Subtitle.None, |
|
|
|
// Subtitle.Picture,
|
|
|
|
Subtitle.Picture, |
|
|
|
Subtitle.Text |
|
|
|
Subtitle.Text |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public static Padding[] Paddings = |
|
|
|
public static Padding[] Paddings = |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Padding.NoPadding,
|
|
|
|
Padding.NoPadding, |
|
|
|
Padding.WithPadding |
|
|
|
Padding.WithPadding |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public static VideoScanKind[] VideoScanKinds = |
|
|
|
public static VideoScanKind[] VideoScanKinds = |
|
|
|
{ |
|
|
|
{ |
|
|
|
VideoScanKind.Progressive, |
|
|
|
VideoScanKind.Progressive, |
|
|
|
// VideoScanKind.Interlaced
|
|
|
|
VideoScanKind.Interlaced |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public static InputFormat[] InputFormats = |
|
|
|
public static InputFormat[] InputFormats = |
|
|
|
@ -131,15 +131,15 @@ public class TranscodingTests |
|
|
|
new("libx264", "yuv420p", "tv", "smpte170m", "bt709", "smpte170m"), |
|
|
|
new("libx264", "yuv420p", "tv", "smpte170m", "bt709", "smpte170m"), |
|
|
|
|
|
|
|
|
|
|
|
// new("libx264", "yuvj420p"),
|
|
|
|
// new("libx264", "yuvj420p"),
|
|
|
|
// new("libx264", "yuv420p10le"),
|
|
|
|
new("libx264", "yuv420p10le"), |
|
|
|
// new("libx264", "yuv444p10le"),
|
|
|
|
// new("libx264", "yuv444p10le"),
|
|
|
|
|
|
|
|
|
|
|
|
// new("mpeg1video", "yuv420p"),
|
|
|
|
// new("mpeg1video", "yuv420p"),
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// new("mpeg2video", "yuv420p"),
|
|
|
|
// new("mpeg2video", "yuv420p"),
|
|
|
|
|
|
|
|
|
|
|
|
// new("libx265", "yuv420p"),
|
|
|
|
new("libx265", "yuv420p"), |
|
|
|
// new("libx265", "yuv420p10le"),
|
|
|
|
new("libx265", "yuv420p10le"), |
|
|
|
|
|
|
|
|
|
|
|
// new("mpeg4", "yuv420p"),
|
|
|
|
// new("mpeg4", "yuv420p"),
|
|
|
|
//
|
|
|
|
//
|
|
|
|
@ -156,14 +156,14 @@ public class TranscodingTests |
|
|
|
|
|
|
|
|
|
|
|
public static Resolution[] Resolutions = |
|
|
|
public static Resolution[] Resolutions = |
|
|
|
{ |
|
|
|
{ |
|
|
|
// new() { Width = 1920, Height = 1080 },
|
|
|
|
new() { Width = 1920, Height = 1080 }, |
|
|
|
new() { Width = 1280, Height = 720 } |
|
|
|
new() { Width = 1280, Height = 720 } |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public static FFmpegProfileBitDepth[] BitDepths = |
|
|
|
public static FFmpegProfileBitDepth[] BitDepths = |
|
|
|
{ |
|
|
|
{ |
|
|
|
FFmpegProfileBitDepth.EightBit, |
|
|
|
FFmpegProfileBitDepth.EightBit, |
|
|
|
// FFmpegProfileBitDepth.TenBit
|
|
|
|
FFmpegProfileBitDepth.TenBit |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public static HardwareAccelerationKind[] NoAcceleration = |
|
|
|
public static HardwareAccelerationKind[] NoAcceleration = |
|
|
|
@ -201,6 +201,14 @@ public class TranscodingTests |
|
|
|
{ |
|
|
|
{ |
|
|
|
HardwareAccelerationKind.Qsv |
|
|
|
HardwareAccelerationKind.Qsv |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static HardwareAccelerationKind[] LinuxTestAccelerations = |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
HardwareAccelerationKind.None, |
|
|
|
|
|
|
|
HardwareAccelerationKind.Nvenc, |
|
|
|
|
|
|
|
HardwareAccelerationKind.Vaapi, |
|
|
|
|
|
|
|
HardwareAccelerationKind.Qsv |
|
|
|
|
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test] |
|
|
|
[Test] |
|
|
|
@ -222,8 +230,9 @@ public class TranscodingTests |
|
|
|
Subtitle subtitle, |
|
|
|
Subtitle subtitle, |
|
|
|
[ValueSource(typeof(TestData), nameof(TestData.VideoFormats))] |
|
|
|
[ValueSource(typeof(TestData), nameof(TestData.VideoFormats))] |
|
|
|
FFmpegProfileVideoFormat profileVideoFormat, |
|
|
|
FFmpegProfileVideoFormat profileVideoFormat, |
|
|
|
|
|
|
|
[ValueSource(typeof(TestData), nameof(TestData.LinuxTestAccelerations))] HardwareAccelerationKind profileAcceleration) |
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.NoAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.NoAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
[ValueSource(typeof(TestData), nameof(TestData.NvidiaAcceleration))] HardwareAccelerationKind profileAcceleration) |
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.NvidiaAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.VaapiAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.VaapiAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.QsvAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.QsvAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.VideoToolboxAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
// [ValueSource(typeof(TestData), nameof(TestData.VideoToolboxAcceleration))] HardwareAccelerationKind profileAcceleration)
|
|
|
|
|