Opencv下视频的读写
2014-03-11 11:02
459 查看
1. 视频结构
一个视频由压缩格式(container, eg. avi, mkv...)和封装格式(codec, eg. H264, DIVX)组成.详细解释:源自[1]
For start, you should have an idea of just how a video file looks. Every video file in itself is a container. The type of the container is expressed in the files extension (for example avi, mov or mkv). This contains multiple
elements like: video feeds, audio feeds or other tracks (like for example subtitles). How these feeds are stored is determined by the codec used for each one of them. In case of the audio tracks commonly used codecs are mp3 or aac. For the video files the
list is somehow longer and includes names such as XVID, DIVX, H264 or LAGS (Lagarith Lossless Codec). The full list of codecs you may use on a system depends on just what one you have installed.
2. Linux下opencv对container和codec的支持
Linux下opencv对codec的支持由系统的FFMpeg库决定, 而container,opencv目前好像只支持avi.
如果出现"[mp4 @ 0xcb0f40] Tag mp4v/0x7634706d incompatible with output codec id '13'"等类似错误, 是由于输出视频的后缀不是".avi"引起.
Reference
[1] Creating a video with OpenCV相关文章推荐
- linux下卸载mysql
- 使用 Shell 运算进行进制转换 16进制转10进制
- Linux添加环境变量与GCC编译器添加INCLUDE与LIB环境变量
- linux ps命令参数介绍
- jdk配置 tomcat配置
- linux 命令处理批量改名操作
- UVa:1523 Helicopter
- Apache Struts ClassLoader操作漏洞
- Ubuntu 11.04下Nginx+PHP+Mysql+Tomcat安装配置
- 成龙价值2亿私人飞机曝光 成龙秘密培养K-POP组合jjcc欲创娱乐公司?
- 就像一家普通的科技创业公司——看Watsi如何用硅谷的方式做慈善
- 编译个性化的OPENWRT固件(openWRT源码修改)
- 说12306.cn网站技术差 是站着说话不腰疼
- 远程安装Linux操作系统
- Linux系统编程之信号(一):信号基本概述
- fopen、file_get_contents、curl区别
- Linux 的expr命令
- cacti基础配置,附带软件包
- Ubuntu下创建vim+Taglist+cscope+ctags组合编辑器
- ecshop让商品在新窗口打开的方法