Main Content

Display Frame Rate of Input Video

This example shows you how to display the frame rate of input video data.

Example Model

Open the Simulink® model.

modelname = 'ex_blkFrameRateDisplay.slx';

The model reads an input video file using a From Multimedia File block with these parameters:

  • File nameviptrain.avi

  • Output color formatRGB

The model calculates the video frame rate using a Frame Rate Display block with the Update rate parameter set to 10.

Simulate the Model

Run the model. The Frame Rate Display block displays the frame rate of the input video on the block mask. You can change the Update rate parameter in the Frame Rate Display block to control how often the block calculates the frame rate and updates the display on the block mask.