MediaInfo.Wrapper.Core
26.10.0
dotnet add package MediaInfo.Wrapper.Core --version 26.10.0
NuGet\Install-Package MediaInfo.Wrapper.Core -Version 26.10.0
<PackageReference Include="MediaInfo.Wrapper.Core" Version="26.10.0" />
<PackageVersion Include="MediaInfo.Wrapper.Core" Version="26.10.0" />
<PackageReference Include="MediaInfo.Wrapper.Core" />
paket add MediaInfo.Wrapper.Core --version 26.10.0
#r "nuget: MediaInfo.Wrapper.Core, 26.10.0"
#:package MediaInfo.Wrapper.Core@26.10.0
#addin nuget:?package=MediaInfo.Wrapper.Core&version=26.10.0
#tool nuget:?package=MediaInfo.Wrapper.Core&version=26.10.0
MediaInfo.Wrapper.Core
.NET wrapper for MediaArea MediaInfo. Targets .NET Standard 2.1, .NET 8.0 and .NET 10.0.
The native library comes from MediaInfo.Core.Native of the same version.
For .NET Framework use MediaInfo.Wrapper.
dotnet add package MediaInfo.Wrapper.Core
Usage
using MediaInfo.Analysis;
var analyzer = MediaInfoAnalyzer.CreateDefault();
var result = await analyzer.AnalyzeAsync("path/to/film.mkv", cancellationToken);
if (result.Success)
{
var video = result.BestVideoStream;
var audio = result.BestAudioStream;
Console.WriteLine($"{result.General.Format}, {result.General.Duration}");
Console.WriteLine($"{video?.CodecName} {video?.Width}x{video?.Height}, {audio?.CodecName} {audio?.AudioChannelsFriendly}");
}
else
{
Console.WriteLine($"{result.Failure!.Reason}: {result.Failure.Message}");
}
Files, http/https URLs, streams, DVD and Blu-ray folders, whole folders, caching, retries, dependency injection and
RTSP are covered in the guide.
MediaInfoWrapper, the synchronous API, is obsolete. AsLegacy() presents a result under its property names.
Platforms
Windows (x86, x64, ARM64), Linux (x64, ARM64, glibc and musl) and macOS (x64, ARM64). Linux and macOS need libzen and zlib; see the repository README.
Links
BSD 2-Clause. This product uses the MediaInfo library, Copyright (c) 2002-2026 MediaArea.net SARL.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
| .NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- MediaInfo.Core.Native (>= 26.10.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
-
net10.0
- MediaInfo.Core.Native (>= 26.10.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.12)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.12)
-
net8.0
- MediaInfo.Core.Native (>= 26.10.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.3)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on MediaInfo.Wrapper.Core:
| Package | Downloads |
|---|---|
|
Zen.Media
Media handling for Zen |
|
|
Fly.Toolkit.Wpf
请无视它,它并不好用,只是能给我自己带来一点点的便利而已 |
|
|
RnCore.MediaInfoAbstractions
Abstractions for MediaInfo |
|
|
MediaInfo.Analysis.Rtsp
MediaInfo(Lib) is a convenient unified display of the most relevant technical and tag data for video and audio files. MediaInfo .NET wrapper with support network AV streams. |
GitHub repositories (3)
Showing the top 3 popular GitHub repositories that depend on MediaInfo.Wrapper.Core:
| Repository | Stars |
|---|---|
|
TV-Rename/tvrename
Organise your TV & Movie videos with ease
|
|
|
CnGal/CnGalWebSite
CnGal是一个非营利性的,立志于收集整理国内制作组创作的中文Galgame/AVG的介绍、攻略、评测、感想等内容的资料性质的网站。
|
|
|
qian-o/MediaWPF
WPF 视频硬解码渲染Demo
|
| Version | Downloads | Last Updated |
|---|---|---|
| 26.10.0 | 12,986 | 10/7/2026 |
| 26.1.0 | 30,357 | 3/24/2026 |
| 21.9.3 | 566,132 | 9/29/2022 |
| 21.9.2 | 123,113 | 10/13/2021 |
| 21.9.1 | 2,415 | 9/30/2021 |
| 21.9.0 | 643 | 9/29/2021 |
| 21.3.7 | 1,667 | 9/26/2021 |
| 21.3.6 | 1,144 | 9/19/2021 |
| 21.3.5 | 4,210 | 8/24/2021 |
| 21.3.4 | 5,630 | 6/30/2021 |
| 21.3.3 | 2,372 | 5/23/2021 |
| 21.3.2 | 996 | 5/18/2021 |
| 21.3.1 | 2,914 | 3/31/2021 |
| 21.3.0 | 702 | 3/29/2021 |
| 20.9.2 | 9,486 | 12/13/2020 |
| 20.9.0 | 833 | 12/10/2020 |
| 20.8.0 | 2,973 | 8/14/2020 |
| 19.9.4 | 7,549 | 6/21/2020 |
| 19.9.3 | 858 | 6/20/2020 |
MediaInfo.Wrapper.Core 26.10.0
MediaInfoLib 26.10, through MediaInfo.Core.Native 26.10.0. Targets netstandard2.1, net8.0, net10.0 (.NET 6 dropped). Previous release: 26.1.0.
ADDED
- IMediaInfoAnalyzer: AnalyzeAsync for files, URLs, streams and discs; AnalyzeFolderAsync.
- DVD and Blu-ray titles and chapters from the navigation tables.
- MediaInfoAnalyzerBuilder: validation, caching, timeout, retry, concurrency limit, external subtitles.
- AddMediaInfoAnalyzer for dependency injection.
- AsLegacy() for code written against MediaInfoWrapper.
- AudioStream.DynamicObjects, SubtitleStream.MaxCharactersPerLine.
- VideoStream.Rotation, ScanType, DisplayAspectRatio.
- More audio, subtitle, video and HDR format identifiers.
- P/Invoke declarations for the remaining MediaInfoLib exports.
CHANGED
- DTS:X reports 12 channels (7.1.4) instead of 8; its objects are in DynamicObjects.
- Five-channel Opus is 5.0, not 4.1.
- MP3 duration and bit rate are more accurate with encoder delay or a Xing header.
- MediaInfoList.Open honours InfoFileOptions.
- MediaInfoWrapper is obsolete.
FIXED
- Heap corruption: strings owned by the native library were freed by the runtime.
- Unicode file names on Linux and macOS.
- DVD and Blu-ray folder detection on case-sensitive file systems.
LIMITATIONS
- Analyzing a file or a URL cannot be cancelled while the native library opens it.
Guide: https://github.com/yartat/MP-MediaInfo/blob/master/docs/async-api.md
Release notes: https://github.com/yartat/MP-MediaInfo/blob/master/docs/release-notes/26.10.0.md