944,222 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 4623
  • Python RSS
Nov 29th, 2007
0

How to use MediaInfo library?

Expand Post »
Hello,

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

Python Syntax (Toggle Plain Text)
  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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jech is offline Offline
3 posts
since Nov 2007
Dec 9th, 2007
0

Re: How to use MediaInfo library?

Click to Expand / Collapse  Quote originally posted by jech ...
Hello,

I would greatly appreciate if anyone could help me with this.
Yea i managed to get a bit furthur, not much tho.
python Syntax (Toggle Plain Text)
  1. import ctypes
  2. milib = cdll.LoadLibrary("mediainfo.dll")
  3. handle = milib.MediaInfo_New("C:\testfolder\re-405.avi")
  4. info = milib.MediaInfo_Open(handle, 0, "PlayTime")
Last edited by DoXiD; Dec 9th, 2007 at 6:59 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
DoXiD is offline Offline
1 posts
since Dec 2007
Dec 10th, 2007
0

Re: How to use MediaInfo library?

I asked my friend if he can help me with it and he wrote a wrapper for the library in Python. You can find it here: http://forum.doom9.org/showthread.php?t=96516&page=11.

I hope it helps.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jech is offline Offline
3 posts
since Nov 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Turtle graph
Next Thread in Python Forum Timeline: wxpython textctrl: getting line number





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC