AudioSeparator.FFMPEG 0.2.0-beta.2

This is a prerelease version of AudioSeparator.FFMPEG.
dotnet add package AudioSeparator.FFMPEG --version 0.2.0-beta.2
                    
NuGet\Install-Package AudioSeparator.FFMPEG -Version 0.2.0-beta.2
                    
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.
<PackageReference Include="AudioSeparator.FFMPEG" Version="0.2.0-beta.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AudioSeparator.FFMPEG" Version="0.2.0-beta.2" />
                    
Directory.Packages.props
<PackageReference Include="AudioSeparator.FFMPEG" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AudioSeparator.FFMPEG --version 0.2.0-beta.2
                    
#r "nuget: AudioSeparator.FFMPEG, 0.2.0-beta.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AudioSeparator.FFMPEG@0.2.0-beta.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AudioSeparator.FFMPEG&version=0.2.0-beta.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AudioSeparator.FFMPEG&version=0.2.0-beta.2&prerelease
                    
Install as a Cake Tool

AudioSeparator.FFMPEG

FFMPEG/ffprobe extensions for AudioSeparator — broad format support for reading input and encoding separated stems.

NuGet License: MIT .NET

Part of AudioSeparator — modular .NET audio stem separation.


Install

dotnet add package AudioSeparator.FFMPEG

Pair with a separator backend, e.g. AudioSeparator.Onnx.Demucs.


When to use this package

  • You need broad input format support (anything ffmpeg can decode).
  • You want configurable output format and codec (WAV, MP3, etc.).
  • You already have ffmpeg and ffprobe on the system.

For simple WAV/MP3 without ffmpeg, consider AudioSeparator.NAudio.


Quick start

using AudioSeparator.FFMPEG;
using AudioSeparator.Onnx.Demucs;

var builder = DemucsBuilder.Create("htdemucs.onnx")
    .UseStemNames("drums", "bass", "other", "vocals")
    .UseFFMPEG(options =>
    {
        options.OutputFormat = "mp3";
        options.OutputCodec = "libmp3lame";
    });

using var separator = builder.Build();
var session = await separator.CreateSession("input.flac");
var result = await session.RunAsync();

await result.WriteToDirectoryAsync("./Outputs");

Executable resolution

ffmpeg and ffprobe are resolved via:

  1. FFMPEG_PATH environment variable (directory containing both executables)
  2. PATH — first match on each path entry

Use FFMPEGExtensions.FindExecutablePath("ffmpeg") to resolve paths manually.


Key API

Type Role
FFMPEGExtensions.UseFFMPEG<TBuilder>(configure?) Registers reader + writer on the builder
FFMPEGExtensions.FindExecutablePath(executable) Resolves ffmpeg / ffprobe path
FFMPEGAudioReader IAudioReader — ffprobe probe + ffmpeg pipe decode
FFMPEGAudioWriter IAudioWriter — ffmpeg pipe encode
FFMPEGSettings OutputFormat (default wav), OutputCodec (default pcm_s16le)
FFProbeResult ffprobe JSON DTOs for probe metadata

Requirements


Package NuGet Description
AudioSeparator.Onnx.Demucs Demucs backend Recommended separator
AudioSeparator.NAudio NAudio I/O Simpler I/O without ffmpeg
AudioSeparator.Abstractions Contracts IAudioReader / IAudioWriter

Source: AudioSeparator.FFMPEG on GitHub


License

MIT — see AudioSeparator repository.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0-beta.2 56 9/13/2026
0.2.0-beta.1 56 9/13/2026
0.2.0-beta 78 8/30/2026
0.1.0-beta 87 8/13/2026