By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,957 Members | 1,969 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,957 IT Pros & Developers. It's quick & easy.

How to use MediaInfo library?

P: 1

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

Expand|Select|Wrap|Line Numbers
  1. import ctypes
  2. milib = ctypes.cdll.LoadLibrary("mediainfo.dll")
  3. handle = milib.MediaInfo_New()
  4. 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.
Nov 29 '07 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.