04-11-2016 02:09 AM - edited 04-11-2016 02:16 AM
i am working with a project about videos and want to get informations of many type of videos like mpg, mp4, mov etc. i have found a tiny program called "mediainfo"(https://mediaarea.net/en/MediaInfo). the program is nice and supports dll. i have read the help and want to use the dll by using Call Library Function Node in LabVIEW. but i have no idea about "A Handle must be created before using MediaInfoLib 'C' (DLL...) : void* Handle=MediaInfo::New();", and "Before retrieving information about one or multiples files, you must open them", do i have to create chains of "Call Library Function Node"? pls help me and an attached example VI is the best. many thanks!
if you have better option pls tell me!
mediainfo support page: https://mediaarea.net/en/MediaInfo/Support/SDK/Quick_Start
04-11-2016 03:34 AM - edited 04-11-2016 03:35 AM
There is an example in C++:
https://github.com/MediaArea/MediaInfoLib/blob/master/Source/Example/HowToUse_Dll.cpp
For C, this is something like:
void* MI=MediaInfo_New();
int Result=MediaInfo_Open(MI, FileName);
printf("%s", MediaInfo_Inform(MI, 0));
MediaInfo_Delete(MI);
Jérôme, developper of MediaInfo.
07-10-2020 12:49 PM
Hi! I have some experience with MediaInfo. On this site i download MediaInfo (CLI) and made simple wrapper based on console commands using System Exec.vi. Here my little project.