PDA

View Full Version : Tool that shows exact duration of MKV streams?


herrde
2nd April 2009, 11:43
Hi everybody,

does anybody know a tool that shows the exact duration of the individual streams within a MKV file?

I need this because I came across a couple of MKV files that are badly muxed, obviously with streams that don't have equal durations. I need to determine these durations.

So far I've always used MediaInfo, but it only shows the length of the streams in hours and minutes, not even seconds...

Thanks a lot for your help!

Best,

Gero

deank
2nd April 2009, 11:58
You can use mkvinfo.exe (you can find it in tools of popbd/uncropmkv/multiavchd).

It reports duration in format: | + Duration: 5107.126s (01:25:07.126)...

If you need more detailed info you can use -v switch and check the end of the generated output... It should contain something like:


......
| + Duration: 60.958s (00:01:00.958)
.....
| + Block group
| + Block (track number 1, 1 frame(s), timecode 60.894s = 00:01:00.894000000)
| + Frame with size 18273
| + Reference block: -42.000000ms
| + Block group
| + Block (track number 2, 2 frame(s), timecode 60.894s = 00:01:00.894000000)

herrde
2nd April 2009, 12:00
Thanks deank, I'll give it a shot!

Best,

Gero

herrde
2nd April 2009, 12:54
Just found out that if mediainfo.exe is started from a command prompt using the "-f" switch, it reveals the exact duration of the individual streams too!

G.