Calculating MKV duration
Posted
by kdda
on Stack Overflow
See other posts from Stack Overflow
or by kdda
Published on 2010-05-15T16:20:37Z
Indexed on
2010/05/15
16:24 UTC
Read the original article
Hit count: 230
Hello, I have written a simple database program to keep track of my downloaded movies and tv shows, they tend to be in AVI or MKV formats.
My program reads the header of the files to get details like resolution, codec and so on.
The problem is converting the track duration value I pull out of an MKV file in to seconds, the documentation states that the time code should be used but I don't seem to be able to turn that in to the correct time.
Can anyone help?
© Stack Overflow or respective owner