SetVideoFPS (DVR version only)
Top  Previous  Next

Description

Sets the playback frame rate of the currently open video file or memory sequence.

Syntax


[VB]
objActiveGeni.SetVideoFPS Value


[C/C++]
HRESULT SetVideoFPS(float Value);


Data Types
[VB]

Value: Single


Parameters
[C/C++]

Value [out,retval]  
The fps value to be set  


Return Values

S_OK  
Success  
E_FAIL  
Failure.  

Example


This VB example opens an AVI file, doubles its frame rate and starts the playback.

ActiveGeni1.OpenVideo "c:\\video1.avi"  
fps=ActiveGeni1.GetVideoFPS * 2  
ActiveGeni1.SetVideoFPS fps  
ActiveGeni1.PlayVideo  
 
 

Remarks


The actual frame rate during the playback of a video file may be lower than the set frame rate. This depends on the hard drive performance and the use of compression during the recording. If an AVI file is open with the sound option, the playback rate cannot be higher than 16 times of the recorded fps.