MediaLens.Native
0.0.1-alpha.2
See the version list below for details.
dotnet add package MediaLens.Native --version 0.0.1-alpha.2
NuGet\Install-Package MediaLens.Native -Version 0.0.1-alpha.2
<PackageReference Include="MediaLens.Native" Version="0.0.1-alpha.2" />
<PackageVersion Include="MediaLens.Native" Version="0.0.1-alpha.2" />
<PackageReference Include="MediaLens.Native" />
paket add MediaLens.Native --version 0.0.1-alpha.2
#r "nuget: MediaLens.Native, 0.0.1-alpha.2"
#:package MediaLens.Native@0.0.1-alpha.2
#addin nuget:?package=MediaLens.Native&version=0.0.1-alpha.2&prerelease
#tool nuget:?package=MediaLens.Native&version=0.0.1-alpha.2&prerelease
MediaLens.Native
MediaLens.Native packages the official native binaries of MediaInfoLib for consumption in .NET projects.
This package contains only native libraries (no managed API). For the managed wrapper, use MediaLens.
Install
Install the native package (usually pulled in by the wrapper):
dotnet add package MediaLens.Native
For the managed wrapper:
dotnet add package MediaLens
What’s inside
The NuGet package places platform binaries under the standard runtime layout:
runtimes/
win-x64/native/MediaInfo.dll
linux-x64/native/libmediainfo.so
osx-x64/native/libmediainfo.dylib
Also included in the package: README.md, LICENSE (MIT), and LICENSE.MediaInfo (BSD-2-Clause).
Quick build notes
Linux / macOS (autotools)
Clone upstream and build the GNU library:
git clone https://github.com/MediaArea/MediaInfoLib.git cd MediaInfoLib/Project/GNU/Library ./autogen.sh ./configure --enable-shared make -j$(nproc || sysctl -n hw.ncpu)
Copy the produced
.so/.dylibintosrc/MediaLens.Native/runtimes/<rid>/native/.
Windows (MSVC)
Build the MSVC solution (x64 Release), then copy
MediaInfo.dlltosrc/MediaLens.Native/runtimes/win-x64/native/:msbuild MediaInfoLib\Project\MSVC2019\MediaInfoLib.sln /p:Configuration=Release /p:Platform=x64
Pack locally
(assumes binaries are already in src/MediaLens.Native/runtimes/...)
dotnet pack src/MediaLens.Native/MediaLens.Native.csproj -c Release -o ./out
CI / Publishing
The repository includes a GitHub Actions workflow that:
- Builds MediaInfoLib for Windows, Linux, macOS.
- Assembles binaries into
src/MediaLens.Native/runtimes/.../native/. - Packs and publishes the NuGet package on release.
License & attribution
- This repository and packaging code: MIT (
LICENSE). - MediaInfoLib (bundled native binaries): BSD-2-Clause (
LICENSE.MediaInfo), included in the package.
Include and preserve LICENSE.MediaInfo when redistributing the binaries.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on MediaLens.Native:
| Package | Downloads |
|---|---|
|
MediaLens
.NET wrapper for MediaLens.Native to inspect media files and retrieve metadata. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-rc.2 | 79 | 7/21/2026 |
| 0.1.0-rc.1 | 117 | 4/6/2026 |
| 0.0.1-alpha.6 | 151 | 3/15/2026 |
| 0.0.1-alpha.5 | 234 | 10/6/2025 |
| 0.0.1-alpha.4 | 159 | 10/5/2025 |
| 0.0.1-alpha.3 | 149 | 10/5/2025 |
| 0.0.1-alpha.2 | 436 | 10/5/2025 |
| 0.0.1-alpha.1 | 165 | 10/2/2025 |
See full release notes at: https://github.com/MichaelHochriegl/MediaLens.Native/releases/tag/v0.0.1-alpha.2}