User`s guide
Working with Multimedia Files
• Stop time = 20
• Type = Fi xed- step
• Solver = discre te (no continuous states)
7 Run your model.
View your video in the To Video Display window that automatically
appears when y ou start your simulation. This w indow closes as soon as
the simulation stops.
Note The vide
othatisdisplayedintheToVideoDisplaywindowrunsat
the frame rat
e that corresponds to the input sample time. To run the v ideo
as fast as Si
mulink processes the video frames,usetheVideoViewerblock.
You have now
imported and displayed a multimedia file in your Simulink
model. In “E
xporting to Multimedia Files” on page 2-27, you manipulate your
video strea
m and export it to a multimedia file. For more information on
the b locks u
sed in this e xample, see the From Multimedia File and To Video
Display bl
ock reference pages in the Video and Image Processing Blockset
Reference
. To listen to a udio associated with an AVI file, use the To Wave
Device blo
ck in Signal Processing Blockset.
Exportin
g to Multimedia Files
Video and I
mage P rocessing B lo ckset enables you to export video d ata from
your Simu
link model. In th is section, you use the To M u ltimedia File block
to export
an multimedia file from your model. This procedure assumes you
are worki
ng on a Windows platform.
2-27