VideoWriter.getProfiles
VideoWriter
支持的描述文件和文件格式
说明
示例
获取描述文件信息
查看可用的描述文件并获取有关 'Uncompressed AVI'
描述文件的特定信息。
查看 VideoWriter
支持的描述文件。
profiles = VideoWriter.getProfiles()
Summary of installed VideoWriter profiles: Name Description ---------------- ----------------------------------------------------------------------- Archival Video file compression with JPEG 2000 codec with lossless mode enabled. Grayscale AVI An AVI file with Grayscale Video Data Indexed AVI An AVI file with Indexed Video Data Motion JPEG 2000 Video file compression with JPEG 2000 codec. Motion JPEG AVI An AVI file with Motion JPEG compression Uncompressed AVI An AVI file with uncompressed RGB24 video data
查找 'Uncompressed AVI'
描述文件的索引编号。
uncompAVI = find(ismember({profiles.Name},'Uncompressed AVI'));
查看 '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'
获取与该描述文件相关联的文件扩展名。
ext = profiles(uncompAVI).FileExtensions
ext = 1x1 cell array
{'.avi'}
输出参量
profiles
— 支持的描述文件和视频文件格式
audiovideo.writer.ProfileInfo
对象数组
支持的描述文件和视频文件格式,以具有下列只读属性的 audiovideo.writer.ProfileInfo
对象数组的形式返回。
属性 | 描述 |
---|---|
| 指示描述文件名称的字符向量,例如 |
| 指示描述文件说明的字符向量。 |
| 包含文件格式支持的文件扩展名的字符向量元胞数组。 |
| 每个输出视频帧中的颜色通道数。 |
| 大于 1 的数字,指定输入图像中的字节数与压缩图像中的字节数之间的目标比率。仅适用于与 Motion JPEG 2000 文件关联的对象。默认值: |
| 视频的播放速率(每秒帧数)。默认值: |
| 布尔值(逻辑 |
| 输入图像数据中的最低有效位数,范围为 1 至 16。仅适用于与 Motion JPEG 2000 文件相关联的对象。 |
| 从 0 到 100 的数字。较高的值对应于较高质量的视频和较大的文件。仅适用于与 |
| 每个输出视频帧中每像素的位数。 |
| 指示视频压缩类型的字符向量,例如 |
| 指示视频格式的 MATLAB® 表示形式的字符向量,例如 |
版本历史记录
在 R2010b 中推出
另请参阅
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)