FFmpegArgs.Cores 1.3.0

.NET 5.0 .NET Standard 2.0 .NET Framework 4.6.2
There is a newer version of this package available.
See the version list below for details.
NuGet\Install-Package FFmpegArgs.Cores -Version 1.3.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package FFmpegArgs.Cores --version 1.3.0
<PackageReference Include="FFmpegArgs.Cores" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FFmpegArgs.Cores --version 1.3.0
#r "nuget: FFmpegArgs.Cores, 1.3.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install FFmpegArgs.Cores as a Cake Addin
#addin nuget:?package=FFmpegArgs.Cores&version=1.3.0

// Install FFmpegArgs.Cores as a Cake Tool
#tool nuget:?package=FFmpegArgs.Cores&version=1.3.0


NuGet Package
Github Repo

Easy to use

FFmpegArg ffmpegArg = new FFmpegArg().OverWriteOutput();

var green_video = ffmpegArg.AddVideoInput(new VideoFileInput(@"chromakey.mp4")
var background_video = ffmpegArg.AddVideoInput(new VideoFileInput(@"background.mp4")

var color_keys = green_video.ImageMaps.First()
    .ColorKeyFilter().Color(Color.FromArgb(101, 220, 8)).Similarity(0.25f)//ColorKey

var overlay = color_keys.First()
    //overlay color_key on-center background_video

ffmpegArg.AddOutput(new VideoFileOutput(@"out.mp4", overlay, background_video.AudioMaps.First()).Fps(24));
ffmpegArg.AddOutput(new VideoFileOutput(@"out2.mp4", color_keys.Last(), background_video.AudioMaps.First()).Fps(30));

var renderResult = ffmpegArg
    .Render(c => c
        .WithFFmpegBinaryPath("path to ffmpeg.exe")

For more example, see FFmpegArgs.Test

Easy extend

public class PadFilter : ImageToImageFilter
    static readonly IEnumerable<string> _variables = new List<string>()
        "in_w", "in_h", "iw", "ih",
        "out_w", "out_h", "ow", "oh",
        "hsub", "vsub"
    readonly FFmpegExpression expression = new FFmpegExpression(_variables);
    internal PadFilter(ImageMap imageMap) : base("pad", imageMap)

    public PadFilter XY(Action<FFmpegExpression> x, Action<FFmpegExpression> y)
        => this.SetOption("x", x.Run(expression)).SetOption("y", y.Run(expression));

    public PadFilter XY(string x, string y)
        => XY(x.Expression(), y.Expression());

    public PadFilter Color(Color color)
        => this.SetOption("color", color.ToHexStringRGBA());

    public PadFilter Eval(ScaleEval eval)
        => this.SetOption("eval", eval.ToString().ToLower());

public static class PadFilterExtension
    public static PadFilter PadFilter(this ImageMap imageMap)
        return new PadFilter(imageMap ?? throw new ArgumentNullException(nameof(imageMap)));

public static T FrameRate<T>(this T input, int r) where T : BaseInput
    => input.SetOption("-r", r);

public static T VSync<T>(this T output,int vsync) where T : ImageOutput
    => output.SetOption("-vsync", vsync);
public static T ASync<T>(this T output, int async) where T : AudioOutput
    => output.SetOption("-async", async);

public static FFmpegArg OverWriteOutput(this FFmpegArg ffmpegArg)
    => ffmpegArg.SetFlag("-y");

ffmpeg expression check

//auto check with expression
img.ScaleFilter("iw/3", "ih/3")
img.ScaleFilter(w => w.Check("iw/3"), h => h.Check("ih/3"))
//if expression bropblem
img.ScaleFilter(w => w.NonCheck("iw/3"), h => h.NonCheck("ih/3"));


Under ffmpeg licence

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on FFmpegArgs.Cores:

Package Downloads

Outputs for FFmpegArgs


Filters for FFmpegArgs


Generate arguments for ffmpeg executable


Inputs for FFmpegArgs


Filters auto generate for FFmpegArgs

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.5.1 108 6/9/2022
1.4.1 103 3/28/2022
1.4.0 960 2/28/2022
1.3.0 249 2/11/2022