MediaInfo.Wrapper 26.10.0

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

MediaInfo.Wrapper

.NET Framework wrapper for MediaArea MediaInfo. Targets .NET Framework 4.0, 4.5 and 4.8.1. The native library comes from MediaInfo.Native of the same version. For .NET Standard 2.1, .NET 8.0 and .NET 10.0, and for the asynchronous analyzer, use MediaInfo.Wrapper.Core.

Install-Package MediaInfo.Wrapper

Usage

using MediaInfo;

var media = new MediaInfoWrapper(@"C:\Videos\film.mkv");
if (!media.Success)
{
    return;
}

Console.WriteLine($"{media.Format}, {media.Duration} ms, {media.Size} bytes");

foreach (var video in media.VideoStreams)
{
    Console.WriteLine($"{video.Codec} {video.Width}x{video.Height} {video.FrameRate} fps, {video.Hdr}");
}

foreach (var audio in media.AudioStreams)
{
    Console.WriteLine($"{audio.Language} {audio.Codec} {audio.AudioChannelsFriendly}, {audio.DynamicObjects} objects");
}

foreach (var subtitle in media.Subtitles)
{
    Console.WriteLine($"{subtitle.Language} {subtitle.Codec}");
}

IsDvd and IsBluRay identify a disc folder. Text is the library's full report. A MediaInfo.ILogger is the optional second argument.

BSD 2-Clause. This product uses the MediaInfo library, Copyright (c) 2002-2026 MediaArea.net SARL.

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MediaInfo.Wrapper:

Package Downloads
Fly.Toolkit.Wpf

请无视它,它并不好用,只是能给我自己带来一点点的便利而已

GitHub repositories (4)

Showing the top 4 popular GitHub repositories that depend on MediaInfo.Wrapper:

Repository Stars
QL-Win/QuickLook
Bring macOS “Quick Look” feature to Windows
MediaPortal/MediaPortal-1
Home Theater and Digital Video Recording solution for Windows.
FredTungsten/ScriptPlayer
ScriptPlayer is a video player that controls the Handy and lots of other toys in sync with videos.
simontime/Brovicon
BROadcast-quality VIdeo CONverter
Version Downloads Last Updated
26.10.0 119 10/7/2026
26.1.0 2,871 3/24/2026
21.9.3 31,420 9/29/2022
21.9.2 20,183 10/13/2021
21.9.1 13,728 9/30/2021
21.9.0 686 9/29/2021
21.3.7 626 9/26/2021
21.3.6 678 9/19/2021
21.3.5 2,198 8/24/2021
21.3.4 1,361 6/30/2021
21.3.3 2,522 5/23/2021
21.3.2 920 5/18/2021
21.3.1 5,685 3/31/2021
21.3.0 1,193 3/29/2021
20.9.2 15,944 12/13/2020
20.9.0 895 12/10/2020
20.8.0 1,780 8/14/2020
19.9.4 5,800 6/21/2020
19.9.3 1,100 6/20/2020
Loading failed

MediaInfo.Wrapper 26.10.0

MediaInfoLib 26.10, through MediaInfo.Native 26.10.0. Targets net4.0, net4.5, net481 (new). The asynchronous analyzer is in MediaInfo.Wrapper.Core only. Previous release: 26.1.0.

ADDED

- 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.

FIXED

- Heap corruption (process exit 0xc0000374): strings owned by the native library were freed by the runtime.
- MediaInfoWrapper no longer passes a missing file to the native library.

Release notes: https://github.com/yartat/MP-MediaInfo/blob/master/docs/release-notes/26.10.0.md