Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to read the metadata of a MKV movie files in C#?

How to read the metadata of a MKV movie files in C# (or C or C++ or AS3)?

for example such

creator
metadatacreator
hasKeyframes
hasVideo
hasAudio
hasMetaData
canSeekToEnd
duration
datasize
videosize
videocodecid
audiosize
audiocodecid
audiosamplerate
audiosamplesize
stereo
filesize
lasttimestamp
lastkeyframetimestamp
lastkeyframelocation
keyframes (filepositions, times)
width
height
framerate
videodatarate
audiodatarate
like image 732
Rella Avatar asked Jan 05 '10 04:01

Rella


People also ask

Does MKV have metadata?

MKV metadata is the data information about the MKV file – including the title, artist, creation date, genera, album name, encoded date, and more. It makes the MKV files easier for viewers, search engines, and software to understand and organize.


2 Answers

There is always attempting to parse the header yourself.

Also I've seen references to the EBML library being used to decode MKV files. Good luck!

like image 156
monksy Avatar answered Oct 04 '22 21:10

monksy


I recently posted C# version to https://github.com/OlegZee/nebml. It contains Title editor sample which demostrate inline editing of certain properties.

like image 31
olegz Avatar answered Oct 04 '22 20:10

olegz