How to use MediaInfo library?

Reply

Join Date: Nov 2007
Posts: 3
Reputation: jech is an unknown quantity at this point 
Solved Threads: 0
jech jech is offline Offline
Newbie Poster

How to use MediaInfo library?

 
0
  #1
Nov 29th, 2007
Hello,

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

  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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1
Reputation: DoXiD is an unknown quantity at this point 
Solved Threads: 0
DoXiD DoXiD is offline Offline
Newbie Poster

Re: How to use MediaInfo library?

 
0
  #2
Dec 9th, 2007
Originally Posted by jech View Post
Hello,

I would greatly appreciate if anyone could help me with this.
Yea i managed to get a bit furthur, not much tho.
  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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 3
Reputation: jech is an unknown quantity at this point 
Solved Threads: 0
jech jech is offline Offline
Newbie Poster

Re: How to use MediaInfo library?

 
0
  #3
Dec 10th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Python Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC