To Multimedia File
R2026bWrite video frames and audio samples to multimedia file
Libraries:
Computer Vision Toolbox /
Sinks
Description
The To Multimedia File block writes video frames, audio samples, or both to
a multimedia file (.avi, .wav, .mj2,
.mp4, or .m4v format).
You can compress the video frames or audio samples by selecting a compression algorithm. You can also control the type of video or audio in addition to other related properties the multimedia file receives.
If you have a Simulink® Coder™ license, you can generate a code from a model containing this block. To run a generated executable file, you may need to add precompiled shared library files to your system path. See Simulink Shared Library Dependencies, and Accelerating Simulink Models for details.
Note
This block supports code generation for platforms that have file I/O available. You cannot use this block with Simulink Desktop Real-Time™ software, because that product does not support file I/O.
This block performs best on platforms with Version 11 or later of Windows Media® Player software. This block supports only uncompressed RGB24 AVI files on Linux® and Mac platforms.
Examples
Ports
Input
Parameters
Block Characteristics
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"visionsinks/To Multimedia File"
Example: add_block("visionsinks/To Multimedia File","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a

