Hello,

I'm trying to use MediaInfo library in python via ctypes. I tried this code:

import ctypes
milib = ctypes.cdll.LoadLibrary("mediainfo.dll")
handle = milib.MediaInfo_New()
milib.MediaInfo_Open(handle, "D:\temp\video.avi")

Unfortunately the last line complaints that there are not enough parameters for that function. I based this on a sample Delphi code, which is shipped with the library. There are also samples in many other languages. Unfortunately I don't know anything else then Pascal and PHP. And now I'm trying to learn Python.

I would greatly appreciate if anyone could help me with this.

Hello,

I would greatly appreciate if anyone could help me with this.

Yea i managed to get a bit furthur, not much tho.

import ctypes
	milib = cdll.LoadLibrary("mediainfo.dll")
	handle = milib.MediaInfo_New("C:\testfolder\re-405.avi")
	info = milib.MediaInfo_Open(handle, 0, "PlayTime")
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.