LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

imaqGetAVIInfo

Hello, I would like to find out the number of frames per second (frame rate).

I used the imaqGetAviInfo function, but I have nonsense in the variable structure.

E.g. for variable aviInfo.numFrames = 113, aviInfo.framesPerSecond = 16

This is nonsense because the video has 60.0744 frames per second and the video is 26 minutes long.

Has anyone encountered this problem?

Thank you for your help

AVIInfo aviInfo;
 	char message[256];
	imaqGetAVIInfo
	pct_soub = Hrus_i;   
	stav_cteni=FileSelectPopup (Cesta_zdroje_avi, "*.*", "*.*", "Choosing the source AVI file", VAL_LOAD_BUTTON, 0,1, 1, 1, jmeno_souboruAVI);	AVI 
	adr= DirSelectPopup (AdrEditDat, "Selecting the directory to write split video files", 1, 1, newadrdat);		 
	int status = imaqGetAVIInfo(jmeno_souboruAVI, &aviInfo);
	if(status == 0) {
    sprintf(message, "Počet snímků za sekundu: %i %s %i %i %i %i %i\n", aviInfo.framesPerSecond,aviInfo.filterName,aviInfo.hasData,aviInfo.height,aviInfo.maxDataSize,aviInfo.numFrames,aviInfo.width);
    MessagePopup("Informace o AVI souboru", message);
}
0 Kudos
Message 1 of 1
(835 Views)