LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get audio video file duration and meta data

Hi,

I tried few links but nothing gives the duration. (openG fileinfo, .net constructor->Fileinfo etc)

i am trying to call mediainfo.exe tool via systemexec.vi but it doesnot accept folder inputs from labview and there are extra steps to export (Alt+E) from within that program but does not work.

i am looking to get the metadata or atleast type and duration of the audio/video files inside a folder using LV instead of a 3rd party application.

 

does some one have ideas or code please

Thanks

0 Kudos
Message 1 of 2
(2,449 Views)

LabVIEW knows how to read .wav files (you can use LabVIEW File functions to (recursively, if you want) search a Folder Tree to find files having a specific extension).  The Sound File Read Simple function will return an Array of Waveforms (one per Sound Channel) from which you can extract the sampling interval (dt) and number of samples (size of Y), getting duration (multiply).

 

If you have Video files, and you have LabVIEW's Video Modules and Software, you should be able to do a similar thing with .AVI and other Video files that LabVIEW supports.  

 

Bob Schor

0 Kudos
Message 2 of 2
(2,411 Views)