Log in

View Full Version : MediaInfo - HELP!


ApPojken
11th August 2006, 10:23
Ok, I give up. I have been struggeling with MediaInfo for a long while now. Would anyone know how to extract the Aspect Ratio from a quicktime file? Seams like I can extract a lot of other info i.e codec but not aspect ratio.

When using the code below the string temp ends up empty. Why? What would the correct code look like?

Handle = MediaInfo_New()
MediaInfo_Open(Handle, "C:\4x3.mov")
Temp = MediaInfo_Get(Handle, 1, 0, "AspectRatio/String", 1, 0)

TFM_TheMask
11th August 2006, 19:57
For me the following works fine:

Temp := MediaInfo_Get(Handle, 1, 0, 'AspectRatio/String', 1, 0);

Try single quotes.

ApPojken
14th August 2006, 11:22
Hmmm... That is strange. What version are you using?

(I am not using Delphi but VB and can thereby not have single quotes in my code.)

Mr_Odwin
14th August 2006, 11:40
I've used it in vb and the double quotes work fine.
Have you tried to load the file into the the win32 gui?
Here (http://prdownloads.sourceforge.net/mediainfo/MediaInfo_0.7.3.1_GUI_Win32.exe?download)

If the official gui doesn't show up the aspect ratio you can know that it's not your code at fault.

ApPojken
14th August 2006, 14:15
Even in the version you linked to it wouldn't work:

Extract:
Video #0 : dvcp at 28800 Kbps
Aspect : x () at 25.000 fps

I'll think I'll start a new thread asking about this. I build my own code to extract some of the information but I couldn't figure out where to find aspect ratio and framerate.