Main Content

VideoWriter.getProfiles

Profiles and file formats thatVideoWritersupports

Description

example

profiles= VideoWriter.getProfiles()返回一系列audiovideo.writer.ProfileInfoobjects that indicate the types of files thatVideoWritercan create.

Examples

collapse all

View available profiles and get specific information about the'Uncompressed AVI'轮廓。

View profiles thatVideoWritersupports.

profiles = videOwriter.getProfiles()
已安装的VideoWriter配置文件的摘要:名称描述-----------------------------------------------------------------------------------------------------------------------------------------档案视频文件压缩带有JPEG 2000编解码器具有无损模式。Grayscale Avi带有灰度视频数据索引AVI的AVI文件,带有索引视频数据运动JPEG 2000视频文件压缩,带有JPEG 2000编解码器。运动jpeg avi一个带有运动jpeg压缩的avi文件未压缩的avi文件,带有未压缩的RGB24视频数据

Find the index number for the'Uncompressed AVI'轮廓。

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

View the properties of the'Uncompressed AVI'轮廓。

profiles(uncompAVI)
audiovideo.writer.ProfileInfo ProfileInfo Properties: Name: 'Uncompressed AVI' Description: 'An AVI file with uncompressed RGB24 video data' FileExtensions: {'.avi'} ColorChannels: 3 FrameRate: 30 VideoBitsPerPixel: 24 VideoCompressionMethod: 'None' VideoFormat: 'RGB24'

Get the file extensions associated with the profile.

ext = profiles(uncompAVI).FileExtensions
ext =1x1 cell array{'.avi'}

Output Arguments

collapse all

Supported profiles and video file formats, returned as an array ofaudiovideo.writer.ProfileInfoobjects, which have the following read-only properties.

Property Description

Name

特征向量印度语的ating the profile name, such as'Uncompressed AVI'.

Description

特征向量印度语的ating the description of the profile.

FileExtensions

Cell array of character vectors containing file extensions supported by the file format.

ColorChannels

每个输出视频框架中的颜色通道数。

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 (logicaltrue或者false) that specifies whether to use reversible mode, so that the decompressed data is identical to the input data. Whentrue,VideoWriterignores values forCompressionRatio. 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. Applied only 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 thempeg - 4或者Motion JPEG AVI轮廓。Default:75.

VideoBitsPerPixel

Number of bits per pixel in each output video frame.

VideoCompressionMethod

特征向量印度语的ating the type of video compression, such as'None'或者'Motion JPEG'.

VideoFormat

特征向量印度语的ating the MATLAB®视频格式的表示'RGB24'.

See Also

Introduced in R2010b