mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-16 02:55:44 +00:00
13 lines
425 B
C#
13 lines
425 B
C#
namespace FFMpegCore.Arguments;
|
|
|
|
public class BlackDetectArgument : IVideoFilterArgument
|
|
{
|
|
public BlackDetectArgument(double minimumDuration = 2.0, double pictureBlackRatioThreshold = 0.98, double pixelBlackThreshold = 0.1)
|
|
{
|
|
Value = $"d={minimumDuration}:pic_th={pictureBlackRatioThreshold}:pix_th={pixelBlackThreshold}";
|
|
}
|
|
|
|
public string Key => "blackdetect";
|
|
|
|
public string Value { get; }
|
|
}
|