How to get metadata from a file in C #?

For example, I have a file "1.mp3", metadata - length, codec, composer, license, bit rate, etc. How can I get this metadata? I want to get metadata from different types of files.

+4
source share
2 answers

For audio formats, see TagLib Sharp .

+1
source

The method of obtaining metadata depends on the type of file. For example, metadata in MP3 format is stored differently than, say, a JPEG image.

0
source

Source: https://habr.com/ru/post/1306861/


All Articles