LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help for getting infomations of videos

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

 

0 Kudos
Message 1 of 3
(3,000 Views)

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.

0 Kudos
Message 2 of 3
(2,964 Views)

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. 

0 Kudos
Message 3 of 3
(1,881 Views)