IVF容器格式及其muxing overhead

IVF容器格式

Extension: ivf
IVF is a simple file format that transports raw VP8 data.
An IVF file begins with a 32-byte header.
The header is followed by a series of frames. Each frame consists of a 12-byte header followed by data.

image.png

IVF容器的后缀名是.ivf.
用来封装vp8或vp9数据.
其文件头32字节,头之后是一帧一帧数据,帧数据的开头是12字节的帧头。

File Header(32 Bytes)
bytes 0-3    signature: 'DKIF'
bytes 4-5    version (should be 0)
bytes 6-7    length of header in bytes
bytes 8-11   codec FourCC (e.g., 'VP80')
bytes 12-13  width in pixels
bytes 14-15  height in pixels
bytes 16-19  frame rate
bytes 20-23  time scale
bytes 24-27  number of frames in file
bytes 28-31  unused

举例:


Frame Header(12 Bytes)
bytes 0-3    size of frame in bytes (not including the 12-byte header)
bytes 4-11   64-bit presentation timestamp

muxing overhead of IVF

假设ivf文件的大小为ivf_mux_size字节,其中的数据为frame_count帧,那么muxing overhead是多少?

overhead_size = 32 + 12 * frame_count
raw_data_size = ivf_mux_size - overhead_size
muxing_overhead = overhead_size/raw_data_size

References:

https://wiki.multimedia.cx/index.php?title=IVF

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 教程一:视频截图(Tutorial 01: Making Screencaps) 首先我们需要了解视频文件的一些基...
    90后的思维阅读 4,782评论 0 3
  • 计算机网络第五版第一章,第五章,第六章的习题解答。编号是按照中文版图书来的,题目是复制的英文版图书。答案经过本人验...
    C就要毕业了阅读 34,171评论 3 9
  • 现在分析到YYImage 首先看文件 YYImage YYFrameImage YYSpriteSheetImag...
    充满活力的早晨阅读 2,576评论 0 3
  • 今天,天高云淡,早餐后我们租一辆车前往温汤南惹古村游玩。 加好油,系上安全带,出发。 驶离温汤镇,走上盘山公路,欣...
    妈咪张阅读 2,517评论 0 0
  • 今天天气不好也不坏,进场车量不多。对于自己要好好的反思自己。到底是什么让自己不能释放。我的性格应该不是这样紫的...
    豆浆哥油条妹阅读 138评论 0 0