| | |
How to use MediaInfo library?
![]() |
•
•
Join Date: Nov 2007
Posts: 3
Reputation:
Solved Threads: 0
Hello,
I'm trying to use MediaInfo library in python via ctypes. I tried this code:
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.
I'm trying to use MediaInfo library in python via ctypes. I tried this code:
Python Syntax (Toggle Plain Text)
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.
•
•
Join Date: Dec 2007
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hello,
I would greatly appreciate if anyone could help me with this.
python Syntax (Toggle Plain Text)
import ctypes milib = cdll.LoadLibrary("mediainfo.dll") handle = milib.MediaInfo_New("C:\testfolder\re-405.avi") info = milib.MediaInfo_Open(handle, 0, "PlayTime")
Last edited by DoXiD; Dec 9th, 2007 at 6:59 pm.
•
•
Join Date: Nov 2007
Posts: 3
Reputation:
Solved Threads: 0
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.
I hope it helps.
![]() |
Other Threads in the Python Forum
- Previous Thread: Turtle graph
- Next Thread: wxpython textctrl: getting line number
| Thread Tools | Search this Thread |
alarm app beginner cipher cmd cx-freeze data decimals development dictionary directory dynamic error examples feet file float format function generator getvalue gui halp homework http images import input ip itunes java keycontrol leftmouse line linux list lists logging loop maintain maze millimeter module mouse mysqldb number numbers output parsing path port prime programming projects push py2exe pygame pyglet pymailer pyqt python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation split sqlite ssh string strings sudokusolver table terminal text thread threading time tlapse tuple tutorial ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wikipedia wx.wizard wxpython xlwt





