DoenaSoft.MediaInfoHelper 3.1.12

dotnet add package DoenaSoft.MediaInfoHelper --version 3.1.12
                    
NuGet\Install-Package DoenaSoft.MediaInfoHelper -Version 3.1.12
                    
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="DoenaSoft.MediaInfoHelper" Version="3.1.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DoenaSoft.MediaInfoHelper" Version="3.1.12" />
                    
Directory.Packages.props
<PackageReference Include="DoenaSoft.MediaInfoHelper" />
                    
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 DoenaSoft.MediaInfoHelper --version 3.1.12
                    
#r "nuget: DoenaSoft.MediaInfoHelper, 3.1.12"
                    
#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 DoenaSoft.MediaInfoHelper@3.1.12
                    
#: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=DoenaSoft.MediaInfoHelper&version=3.1.12
                    
Install as a Cake Addin
#tool nuget:?package=DoenaSoft.MediaInfoHelper&version=3.1.12
                    
Install as a Cake Tool

MediaInfoHelper

A .NET library to query audio and video files for their metadata information.

Description

DoenaSoft.MediaInfoHelper is a comprehensive library that provides easy access to metadata from various media file formats including video files and audio books. It wraps popular media information libraries and provides a unified interface for extracting technical details and metadata from media files.

Features

  • Read video file metadata (duration, resolution, codec, etc.)
  • Extract audio book information (chapters, duration, tags)
  • Support for multiple media formats
  • Built on top of proven libraries:
    • FFProbe (via NReco.VideoInfo)
    • NAudio for audio file analysis
    • TagLib for tag reading
  • Simple and intuitive API
  • Strongly-typed data objects for media information

Installation

Install via NuGet Package Manager:

Install-Package DoenaSoft.MediaInfoHelper

Or via .NET CLI:

dotnet add package DoenaSoft.MediaInfoHelper

Requirements

  • .NET Framework 4.7.2 or higher

Usage

Reading Video File Information

using DoenaSoft.MediaInfoHelper.DataObjects;
using DoenaSoft.MediaInfoHelper.Readers;

// Create a media file object
var mediaFile = new MediaFile { FileName = @"C:\path\to\video.mp4" };

// Create a video reader
var videoReader = new VideoReader(mediaFile);

// Determine the length of the video
videoReader.DetermineLength();

// Access the length
uint durationInSeconds = mediaFile.Length;

Reading Audio Book Information

using DoenaSoft.MediaInfoHelper.Readers;

// Create an audio book reader
var audioBookReader = new AudioBookReader();

// Get total length of audio files in a directory
var directoryInfo = new DirectoryInfo(@"C:\path\to\audiobook");
var totalLength = audioBookReader.GetLength(directoryInfo);

Console.WriteLine($"Hours: {totalLength.Hours}");
Console.WriteLine($"Minutes: {totalLength.Minutes}");
Console.WriteLine($"Seconds: {totalLength.Seconds}");

Data Objects

The library provides strongly-typed classes for different types of media:

  • MediaFile - General media file information
  • VideoMeta - Video-specific metadata
  • AudioBookMeta - Audio book metadata including chapters and roles
  • FFProbeMeta - Raw FFProbe output data
  • TimeParts - Time duration broken into hours, minutes, seconds

Dependencies

  • DoenaSoft.ToolBox
  • NReco.VideoInfo (FFProbe wrapper)
  • NAudio (Audio file processing)
  • TagLib (Metadata tag reading)

License

This project is licensed under the MIT License.

Author

DJ Doena Doena Soft.

Repository

https://github.com/DJDoena/MediaInfoHelper

Support

For issues, questions, or contributions, please visit the GitHub repository.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DoenaSoft.MediaInfoHelper:

Package Downloads
DoenaSoft.CopySeries.Xml

XML schemas for handling CopySeries

DoenaSoft.WatchHistory.Xml

XML schemas for handling WatchHistory

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.12 46 3/30/2026
3.1.11 58 3/29/2026
3.1.10 120 2/14/2026
3.1.9 465 12/10/2025
3.1.8 227 11/26/2025
3.1.7 316 4/20/2025
3.1.6 268 9/28/2024
3.1.5 377 12/5/2023
3.1.4 219 12/5/2023
3.1.3 242 12/3/2023
3.1.2 246 10/6/2023
3.1.1 351 9/12/2023
3.1.0 285 8/28/2023
3.0.6 415 8/27/2023
3.0.5 359 8/25/2023
3.0.3 367 8/3/2023
3.0.2 391 8/3/2023
Loading failed