FFmpegArgs.Cores 1.4.1

.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.4.1
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.4.1
<PackageReference Include="FFmpegArgs.Cores" Version="1.4.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FFmpegArgs.Cores --version 1.4.1
#r "nuget: FFmpegArgs.Cores, 1.4.1"
#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.4.1

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

FFmpegArgs

FFmpegArgs is a cli-wrapper library support generate argument for ffmpeg executable.
The standout feature that many cli-wrapper libraries don't have is the FFmpeg FilterGraph system.

Get it on NuGet Package


  • Support file/url/pipe in/output.
  • Works on most systems - if ffmpeg can execution.
  • 130+ filters, add more in future
  • 380+ filters auto-generate

Example

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

var green_video = ffmpegArg.AddVideoInput(new VideoFileInput(@"chromakey.mp4")
    .SsPosition(TimeSpan.FromSeconds(0.5)));
var background_video = ffmpegArg.AddVideoInput(new VideoFileInput(@"background.mp4")
    .SsPosition(TimeSpan.FromSeconds(1))
    .ToPosition(TimeSpan.FromSeconds(10)));

var color_keys = green_video.ImageMaps.First()
    .ColorKeyFilter()//ColorKey
        .Color(Color.FromArgb(101, 220, 8))
        .Similarity(0.25f)
        .Enable("between(t,0,10)").MapOut//ITimelineSupport
    .ScaleFilter().W("iw/3").H("ih/3").MapOut//Scale
    .SplitFilter(2).MapsOut;//Split

var overlay = color_keys.First()
    //overlay color_key on-center background_video
    .OverlayFilterOn(background_video.ImageMaps.First()).X("(W-w)/2").Y("(H-h)/2").MapOut;

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")
        .WithWorkingDirectory(Directory.GetCurrentDirectory()))
    .Execute();

For more example, see FFmpegArgs.Test


LICENCE

MIT

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
FFmpegArgs.Outputs

Outputs for FFmpegArgs

FFmpegArgs.Filters

Filters for FFmpegArgs

FFmpegArgs

Generate arguments for ffmpeg executable

FFmpegArgs.Inputs

Inputs for FFmpegArgs

FFmpegArgs.Filters.Autogen

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