Log in

View Full Version : Information from mkv file


marnix88
8th October 2004, 17:28
Hello, does anyone know how to get all the information from a mkv file, like video codec, audio codec, video bitrate, audio bitrate, duration, aspect ratio, frames per second ?

Programs like Gspot and AviCodec don't work with it.

Somebody told me to get MatroskaSplitter.ax, put it in my Windows\System32 folder, then go to Start --> Run --> type "regsvr32.exe MatroskaSplitter.ax" and hit enter.
Now Gspot and AviCodec should work with it, but they don't.

Any other ideas ?

KpeX
8th October 2004, 17:59
Install the matroska shell extension (http://www.matroska.org/downloads/shellextension/index.html), and you can view such properties with windows explorer.

marnix88
8th October 2004, 19:08
Thank you, KpeX.
I can get almost all the information about mkv files, only I can't get the video and audio bitrate.

http://www.nazik-building.com/~Wantos/properties.png

When I click "Bitrate", then I get this error message.
If I click "Yes", then Windows Explorer crashes and when I click "No", then the error message goes away, but nothing else happens.

http://www.nazik-building.com/~Wantos/error.png

ChristianHJW
8th October 2004, 20:47
There are several more matroska info tools now, but i havent tested them all to be honest, so you have to do that by yourself to find out what is the best of them :

MediaInfo : http://mediainfo.sf.net

Kyle Katarn's VideoInspector : http://www.katarncorp.com

Gspot ( only new Alpha version IIRC ) : http://www.headbands.com/gspot/

AvInfo : http://freshmeat.net/redir/avinfo/46857/url_homepage/avinfo

Have fun and tell us what you found to be the best tool ;) ....

Christian
matroska project admin

[Toff]
9th October 2004, 10:17
There's also http://www.matroska.org/~toff/MatroskaDiag.exe
(no bitrate calculation though)
:D

marnix88
9th October 2004, 14:31
Thanks a lot.

MediaInfo gives all the standard information and it also gives the bitrate, but it's the overal bitrate (audio & video together), but unfortunately not the bitrates separately.

It's the same with Kyle Katarn's VideoInspector. It gives the filesize, duration, resolution, FPS, audio codec, video codec and sample rate, but no audio and video bitrate.

Gspot: Maybe I'm blind, but I've looked everywhere on that site and the only versions I can find are the v2.21 stable version and the v2.52 beta 01 version, but no new Alpha version. I did a google search, but nothing came up.

I've tried AvInfo, but I'm not really sure how to use it. The readme file didn't tell me much either that I can understand. If you could give me some specific commands to use, especially to get the audio and video bitrate from a video (mkv) file, then that would be great. :)


Thank you [Toff], but exactly the bitrates are the only things left I still need to find out. :)

SLider3
10th October 2004, 00:41
What about VirtualDubMod??

Open the mkv file on vdubmod.
File - File information.

marnix88
10th October 2004, 03:29
When I load it in VirtualDubMod, then I get the error message: Only handle [S_TEXT/] subs for the moment.

The only option I have then is "OK", but when I click it nothing happens. The mkv file is not accepted.

alexnoe
13th October 2004, 05:24
Bitrate "calculation"? Use a muxer that writes bitrate information into the file.... then you won't need Bitrate "calculation"!

kurt
13th October 2004, 11:38
gspot is IMO really the best tool, to find out the files' audio/video information - but only in avi-container....
so it would be the best i think, if gespot support matroska as soon as possible :D

alexnoe
13th October 2004, 12:20
GSpot doesn't even support opendml avi....no it really doesn't. Its author only dreams that it does

yaz
13th October 2004, 12:53
Originally posted by alexnoe
GSpot doesn't even support opendml avi....no it really doesn't. Its author only dreams that it does let's say ... it's not mastering that at the moment (y'know ... speak politically correct ... aso, aso) it's a xxlent tool, anyway.

the bests
y

btw, what about AMG.1.16.9 ?

alexnoe
13th October 2004, 12:55
I'm testing stuff. Some people just won't stop finding weird bugs

Zenitram
14th October 2004, 13:18
Originally posted by marnix88
Thanks a lot.

MediaInfo gives all the standard information and it also gives the bitrate, but it's the overal bitrate (audio & video together), but unfortunately not the bitrates separately.

I work on it.
I hop next release will be able to give you the video bitrate...

alexnoe
15th October 2004, 10:13
Either the file contains information about bitrate, or it doesn't.

AVI-Mux GUI tries to guess the video bitrate by randomly reading some parts of the file and averaging a bit (up tp 50 parts of 10 or 20 seconds each!), and the estimation is still crap. Either you read the entire file, if no bitrate information is present in the file, or you just forget about it...

kurt
15th October 2004, 10:34
so only virtualdubmod gives us the more or less exact videobitrate? but parsing the videofile takes time ...

stephanV
15th October 2004, 11:06
Originally posted by kurt
but parsing the videofile takes time ...

You either want to know it, or you dont :p

I don't think such info is particular useful though... theres not much you can do with it or change about it...

alexnoe
15th October 2004, 12:44
so only virtualdubmod gives us the more or less exact videobitrate?
a) use a muxer that writes bitrate information into the files, like avi-mux gui, if you want to be able to retrieve the bitrate easily.
b) tell mosu to add that to mkvmerge

mkvverify can also retrieve the bitrate by parsing the entire file, and it is doing that much faster than VDubMod (on my WD 160 GB and Maxtor 200 GB hard discs at 50 MB/s). Use the -fullcheck option for that.

kurt
15th October 2004, 13:43
mkvverifyer works a little bit faster than VDM, but after parsing it didn't give me the videobitrate (i used -fullcheck)....
BTW I ask mosu to implement that :)

alexnoe
15th October 2004, 19:47
UUPS.

Use -fullcheck -summary :p

alexnoe
16th October 2004, 10:50
Does it work now?

kurt
16th October 2004, 11:01
oh, yes - it works fine now :D
but it's a little bit "circumstantial" to type all the parameters in the commandline....
I think i'll use VDM in the meantime...drag'n'drop is easier and i'm lazy :)

alexnoe
16th October 2004, 11:07
make a bat file like "check_with_ mkvverify.bat" containing the lines:

"<full path>\mkvverify" %1 -fullcheck -summary
pause


like
"d:\programme\mkvverify" %1 -fullcheck -summary
pause

Then you can make a shortcut to that bat file on your desktop and drag files with your mouse onto that shortcut.

kurt
16th October 2004, 11:23
thx for your suggestion - i'll try it when my encoding-procedure is finished :p

kurt
17th October 2004, 09:15
ok, it works greatfully :D