Joan Venge
Joan Venge

Reputation: 331280

How to read the length and other info of a MKV movie files in C#?

Is there a .net library to do this?

Upvotes: 2

Views: 2727

Answers (3)

olegz
olegz

Reputation: 1222

I recently posted NEbml library sources somewhere on the Net. Google this name. It contains the sample for editing attributes and I'm going to add another sample for reading whole file data.

Upvotes: 1

Preet Sangha
Preet Sangha

Reputation: 65526

There is an example here I think. Its part of the mkNETtools.

Downlods should be explained here: http://corp.koders.com/downloads

Upvotes: 2

Ana Betts
Ana Betts

Reputation: 74682

Do you control the machine (i.e. can you install the Matroska codec on it?) If so, the easiest way might be to load the movie in WPF's video control or another playback framework on Windows and query the length, rather than hardcoding something via the raw container format. More dependencies, but likely useful if you want to go further, like generating thumbnails.

Upvotes: 0

Related Questions