(aka Taglib-sharp) is a .NET platform-independent library (tested on Windows/Linux) for reading and writing metadata in media files, including video, audio, and photo formats. This is a convenient one-stop-shop to present or tag all your media collection, regardless of which format/container these might use. You can read/write the standard or more common tags/properties of a media, or you can also create and retrieve your own custom tags.
It supports the following formats (by file-extensions):
- Video: mkv, ogv, avi, wmv, asf, mp4 (m4p, m4v), mpeg (mpg, mpe, mpv, mpg, m2v)
- Audio: aa, aax, aac, aiff, ape, dsf, flac, m4a, m4b, m4p, mp3, mpc, mpp, ogg, oga, wav, wma, wv, webm
- Images: bmp, gif, jpeg, pbm, pgm, ppm, pnm, pcx, png, tiff, dng, svg
It is API stable, with only API additions (not changes or removals) occuring in the 2.0 series.
Read/write metadata from a video
Read/write metadata from a Audio file
Read/write metadata from an Image
Read/write custom tags from a specific format
TagLib# is available on GitHub: https://github.com/mono/taglib-sharp
- Bugs: Create an issue
- Chat: Join us at Gitter
- Git: Get the source at git://github.com/mono/taglib-sharp.git
Installation From NuGet
TagLib# is available on NuGet: <#404>
Install from package manager:
PM> Install-Package TagLibSharp -Version 2.3.0
Building and Running
To Build From Git:
Build in IDE (Visual Studio, Visual Studio for Mac, Rider, etc):
You can open it in Visual Studio by using TaglibSharp.sln
Running regression by using Nunit 3 Test Adapter:
- Ensure NuGet packages have been restored
- See: https://docs.microsoft.com/en-us/nuget/consume-packages/package-restore
- In Visual Studio, go to menu: Tools > Extensions and Updates > Online (In Visual Studio 2019, use Extensions > Manage Extensions)
- Search: Nunit 3 Test Adapter
- Download and install it
- Open from menu: Test > Windows > Test Explorer (In Visual Studio 2019, use Test > Test Explorer)
- You can run your tests from this panel (not using the "Start" button)
- You can debug your tests from this panel:
- Double click on a test. Set some breakpoints in the test in the editor panel.
- right-click on the same test, select "Debug Selected tests".
To test some scenarios and take advantage of the debugger:
- Make the "debug" project the Startup project (Right-click on the project, select: "Set as StartUp Project")
- Just modify the "Program.cs"
- Set some breakpoints and hit the "Start" button
They also use TagLib#
Non exhaustive list of projects that use TagLib#:
- MediaPortal 2
And you, what do you use TagLib# for? Reply here
TagLib# is free/open source software, released under the LGPL. We welcome contributions! Please try to match our coding style, and include unit tests with any patches. Patches can be submitted by issuing a Pull Request (Git).