DoenaSoft.MediaInfoHelper
3.1.12
dotnet add package DoenaSoft.MediaInfoHelper --version 3.1.12
NuGet\Install-Package DoenaSoft.MediaInfoHelper -Version 3.1.12
<PackageReference Include="DoenaSoft.MediaInfoHelper" Version="3.1.12" />
<PackageVersion Include="DoenaSoft.MediaInfoHelper" Version="3.1.12" />
<PackageReference Include="DoenaSoft.MediaInfoHelper" />
paket add DoenaSoft.MediaInfoHelper --version 3.1.12
#r "nuget: DoenaSoft.MediaInfoHelper, 3.1.12"
#:package DoenaSoft.MediaInfoHelper@3.1.12
#addin nuget:?package=DoenaSoft.MediaInfoHelper&version=3.1.12
#tool nuget:?package=DoenaSoft.MediaInfoHelper&version=3.1.12
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 informationVideoMeta- Video-specific metadataAudioBookMeta- Audio book metadata including chapters and rolesFFProbeMeta- Raw FFProbe output dataTimeParts- 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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- DoenaSoft.ToolBox (>= 3.0.4)
- NAudio (>= 2.3.0)
- NReco.VideoInfo (>= 1.2.1)
- taglib (>= 2.1.0)
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 |