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' Methods
获取与该描述文件相关联的文件扩展名。
ext = profiles(uncompAVI).FileExtensions
ext = 1×1 cell array
{'.avi'}
输出参量
支持的描述文件和视频文件格式,以具有下列只读属性的 audiovideo.writer.ProfileInfo
对象数组的形式返回。
属性 | 描述 |
---|---|
| 指示描述文件名称的字符向量,例如 |
| 指示描述文件说明的字符向量。 |
| 包含文件格式支持的文件扩展名的字符向量元胞数组。 |
| 每个输出视频帧中的颜色通道数。 |
| 大于 1 的数字,指定输入图像中的字节数与压缩图像中的字节数之间的目标比率。仅适用于与 Motion JPEG 2000 文件关联的对象。默认值: |
| 视频的回放速率(每秒帧数)。默认值: |
| 布尔值(逻辑 |
| 输入图像数据中的最低有效位数,范围为 1 至 16。仅适用于与 Motion JPEG 2000 文件相关联的对象。 |
| 从 0 到 100 的数字。较高的值对应于较高质量的视频和较大的文件。仅适用于与 |
| 每个输出视频帧中每像素的位数。 |
| 指示视频压缩类型的字符向量,例如 |
| 指示视频格式的 MATLAB® 表示形式的字符向量,例如 |
版本历史记录
在 R2010b 中推出
另请参阅
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- 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)