0

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.

2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by jech
0

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")
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.