0815Jack Posted November 30, 2007 Report Share Posted November 30, 2007 hi, i want to use the Mediainfo DLL ( http://mediainfo.sourceforge.net/en / http://mediainfo.sourceforge.net/en/Support/SDK/Quick_Start ) to get some infos from video files (duration, resolution, codec etc). i know that i have to use the knot for external libraries, but i dont know how to start, cause i never worked before with external calls. has anybody got a hint or example for me? Quote Link to comment
Rolf Kalbermatter Posted November 30, 2007 Report Share Posted November 30, 2007 QUOTE(0815Jack @ Nov 29 2007, 05:41 AM) hi,i want to use the Mediainfo DLL ( http://mediainfo.sourceforge.net/en / http://mediainfo.sourceforge.net/en/Support/SDK/Quick_Start ) to get some infos from video files (duration, resolution, codec etc). i know that i have to use the knot for external libraries, but i dont know how to start, cause i never worked before with external calls. has anybody got a hint or example for me? Do you know anything about C programming? If so you should be set fairly well and reading a bit in the External Code Reference Manual in the LabVIEW online help should get you enough to get started. Without at least some basic C programming knowledge you will be in for a good and most possibly steep learning experience before it does not crash anymore. And I just see that they export a C++ API. The Call Library Node can not call that directly. It can only access standard C exported functions, no C++ object interfaces. So you will have to create a wrapper DLL, wrapping the C++ method calls into standard C exported functions. All in all it does not seem to me to be a good project to start into the depths of the Call Library Node and C programming. Possibly the ActiveX wrapper or maybe the Visual Basic 5 and 6 example could help a bit. The ActiveX wrapper would allow you to access the Media Library through LabVIEWs ActiveX interface which would mean you do not have to directly deal with C datatypes, memory allocation issues and all such difficulties. Rolf Kalbermatter Quote Link to comment
Eugen Graf Posted November 30, 2007 Report Share Posted November 30, 2007 At first read this PDF: http://www.labviewtutorial.de/downloads/UsingExtCode.pdf Eugen Quote Link to comment
0815Jack Posted November 30, 2007 Author Report Share Posted November 30, 2007 thx for your answers.... it looks like that this is more complicate than i thought ...but i will have a closer look to the pdf and active X is there a easier way to get the video spec? Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.