Calculating MKV duration
- by kdda
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?