FFMpegCore
FFMpegCore copied to clipboard
add Crop supprot
VideoCropArgument.cs ` namespace FFMpegCore.Arguments { public class VideoCropArgument : IArgument {
public VideoCropArgument(string w,string h,string x, string y)
{
this.w = w;
this.h = h;
this.x = x;
this.y = y;
}
private string w { get; set; }
private string h { get; set; }
private string x { get; set; }
private string y { get; set; }
public string Text => $"-vf crop={w}:{h}:{x}:{y}";
}
}
`
FFMpegArgumentOptions.cs file add method
` public FFMpegArgumentOptions VideoCrop(string w, string h, string x, string y) { return WithArgument(new VideoCropArgument(w, h, x, y)); }
`
A PR that adds this as an IVideoFilterArgument instead an IArgument would be welcome