To Multimedia File

Write video frames and/or audio samples to multimedia file

Library

Signal Processing Sinks

dspsnks4

Description

The To Multimedia File block writes video frames and/or audio samples to a multimedia (.avi) file. Video processing requires the Video and Image Processing Blockset™ product.

You can also compress the video frames or audio samples by selecting a compression algorithm. You can connect as many of the input ports as you want. Therefore, you can control what type of video and/or audio is sent to the multimedia file.

PortInputSupported Data TypesSupports Complex Values?

Image

M-by-N-by-3 matrix RGB signal. To record M-by-N intensity video, use the Matrix Concatenate block to create an RGB signal.

  • Double-precision floating point

  • Single-precision floating point

  • Boolean

  • 8-, 16- 32-bit signed integers

  • 8-, 16- 32-bit unsigned integers

No

R, G, B

Matrix that represents one plane of the RGB video stream. Inputs to the R, G, or B port must have the same dimensions and data type.

Same as Image port

No

Audio

Vector of audio data

  • Double-precision floating point

  • Single-precision floating point

  • 16-bit signed integers

  • 8-bit unsigned integers

No

For the block to display video data properly, double- and single-precision floating-point pixel values must be between 0 and 1. For any other data type, the pixel values must be between the minimum and maximum values supported by their data type.

Use the Output file name parameter to specify the name of the multimedia file to which to write. This file is saved in your current directory. To specify a different file, click the Browse button, and then navigate to the new file.

Use the Write parameter to specify whether the block writes video frames and/or audio samples to the multimedia file. The choices are Video and audio, Video only, or Audio only.

Use the Audio compressor parameter to specify the type of compression algorithm to use to compress the audio data. This compression reduces the size of the multimedia file. Choose None (uncompressed) to save uncompressed audio data to the multimedia file. The other items available in this parameter list are the audio compression algorithms installed on your system. For information about a specific audio compressor, see its documentation.

Use the Video compressor parameter to specify the type of compression algorithm to use to compress the video data. This compression reduces the size of the multimedia file. Choose None (uncompressed) to save uncompressed video data to the multimedia file. The other items available in this parameter list are the video compression algorithms installed on your system. For information about a specific video compressor, see its documentation.

Use the Image signal parameter to specify how the block accepts a color video signal. If you select One multidimensional signal, the block accepts an M-by-N-by-3 color video signal. To record M-by-N intensity video, use the Matrix Concatenate block to create an RGB signal. If you select Separate color signals, additional ports appear on the block. Each port accepts one M-by-N plane of an RGB video stream.

Dialog Box

Output file name

Specify the name of the multimedia file to which to write. This file is saved in your current directory. To specify a different file, click the Browse button, and then navigate to the new file.

Write

Specify whether the block writes video frames and/or audio samples to the multimedia file. The choices are Video and audio, Video only, or Audio only.

Audio compressor

Select the type of compression algorithm to use to compress the audio data.

Video compressor

Select the type of compression algorithm to use to compress the video data.

Image signal

Specify how the block accepts a color video signal. If you select One multidimensional signal, the block accepts an M-by-N-by-P color video signal, where P is the number of color planes, at one port. If you select Separate color signals, additional ports appear on the block. Each port accepts one M-by-N plane of an RGB video stream.

See Also

From Multimedia FileSignal Processing Blockset
To Wave FileSignal Processing Blockset
Frame Rate DisplayVideo and Image Processing Blockset
To Video DisplayVideo and Image Processing Blockset
Video To WorkspaceVideo and Image Processing Blockset
Video ViewerVideo and Image Processing Blockset

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS