Free.NET Library for Manipulating Audio File Formats

Convert & Process Audio files via .NET API.

MediaToolkit is an open source API to manipulate audio files programmatically. The API allows the .NET Developer to effortlessly convert, slice and get metadata of audio files. MediaToolkit API is a wrapper for FFmpeg. It is a free multimedia framework containing multiple audio codecs.

Using the API, you can resolve audio metadata and transcode audio into other formats using parameters including Bit rate, Frame rate, Resolution, Aspect ratio, Seek position, Duration, Sample rate and Media Format.

Previous Next

Getting Started with MediaToolkit

The best way to install MediaToolkit is via NuGet. Run the following command and install MediaToolkit in you application.

Install MediaToolkit from NuGet

 Install-Package MediaToolkit

Free C# API to Retrieve Audio Metadata

The API allows the developers to retrieve metadata of Audio file formats. The developers can extract audio metadata inside their own application. In order to get metadata of audio file format the API provides the GetMetadata() method. By using the following lines of code, you can easily get metadata of audio file format.

How to Retrieve Audio Metadata

  1. Import MediaFile
  2. Initialize MediaToolkit's Engine and Get audio metadata using Engine.GetMetadata(inputFile) method and pass MediaFile as parameter
  3. Print Metadata

Retrieve Audio Metadata via C#

var inputFile = new MediaFile {Filename = @"C:\Path\Audio.mp3"};
using (var engine = new Engine())