Skip to content

A modern, cross-platform, .NET 8+ wrapper for the MediaInfo native library. Extracts audio/video metadata from media files on Windows, macOS, and Linux.

License

Notifications You must be signed in to change notification settings

meineGlock20/MediaInfoWrapper

Repository files navigation

MediaInfoWrapper

A modern, cross-platform .NET 8 wrapper for the MediaInfo library.
Extracts audio and video metadata (codec, bitrate, resolution, duration, etc.) from media files — with support for Windows, macOS, and Linux.


✨ Features

  • 🎥 Extracts audio and video media metadata (codec, bitrate, resolution, etc.)
  • 🖥️ Cross-platform support: Windows, macOS, and Linux
  • 🔁 Thin and focused wrapper around native MediaInfo
  • ⚡ Fast parsing options (ParseSpeed.Fast, Complete.No)
  • 📦 Ready-to-use native binaries included via runtimes/

📦 Installation

NuGet version

dotnet add package MeineGlock.MediaInfoWrapperDotNet --version 1.0.1

📄 Usage

using MediaInfoWrapper;

// Get audio metadata from a file
var audioInfo = AudioInfo.GetAudioInfo("myfile.mp3", ParseSpeed.Maximum, Complete.Yes);
Console.WriteLine(audioInfo.Codec);       // e.g., AAC
Console.WriteLine(audioInfo.Bitrate);     // e.g., 128000

// Get video metadata from a file
var videoInfo = VideoInfo.GetVideoInfo("myfile.mp4", ParseSpeed.Maximum, Complete.Yes);
Console.WriteLine(videoInfo.Resolution);  // e.g., 1920x1080
Console.WriteLine(videoInfo.FriendlyResolution); // e.g., 1080p

📜 License

This wrapper is MIT licensed.

GitHub

This product uses MediaInfo library, Copyright (c) 2002-2025 MediaArea.net SARL.

About

A modern, cross-platform, .NET 8+ wrapper for the MediaInfo native library. Extracts audio/video metadata from media files on Windows, macOS, and Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages