VideoWriter.getProfiles

Class: VideoWriter

List profiles and file formats supported by VideoWriter

Syntax

profiles = VideoWriter.getProfiles()

Description

profiles = VideoWriter.getProfiles() returns an array of audiovideo.writer.ProfileInfo objects that indicate the types of files VideoWriter can create.

Output Arguments

profiles

An array of audiovideo.writer.ProfileInfo objects, which have the following read-only properties:

Name

String profile name, such as 'Uncompressed AVI'.

Description

String description of the profile.

FileExtensions

Cell array of strings containing file extensions supported by the file format.

ColorChannels

Number of color channels in each output video frame.

CompressionRatio

Number greater than 1 that specifies the target ratio between the number of bytes in the input image and the number of bytes in the compressed image. Only applies to objects associated with Motion JPEG 2000 files. Default: 10.

FrameRate

Rate of playback for the video in frames per second. Default: 30.

LosslessCompression

Boolean value (logical true or false) that specifies whether to use reversible mode, so that the decompressed data is identical to the input data. When true, VideoWriter ignores values for CompressionRatio. Only applies to objects associated with Motion JPEG 2000 files.

MJ2BitDepth

Number of least significant bits in the input image data, from 1 to 16. Only applies to objects associated with Motion JPEG 2000 files.

Quality

Number from 0 through 100. Higher values correspond to higher quality video and larger files. Only applies to objects associated with the MPEG-4 or Motion JPEG AVI profile. Default: 75.

VideoBitsPerPixel

Number of bits per pixel in each output video frame.

VideoCompressionMethod

String indicating the type of video compression, such as 'None' or 'Motion JPEG'.

VideoFormat

String indicating the MATLAB® representation of the video format, such as 'RGB24'.

Examples

expand all

Profile Information

View the list of available profiles and specific information about the 'Uncompressed AVI' profile.

profiles = VideoWriter.getProfiles()

uncompAVI = find(ismember({profiles.Name},'Uncompressed AVI'));
profiles(uncompAVI)
profiles(uncompAVI).FileExtensions

See Also

Was this topic helpful?