IVF格式
2018-06-20 本文已影响55人
smallest_one
IVF是一个非常简单的视频容器。用于封装VP8/VP9的数据。
下面多字节的数据是采用小端编码(little-endian)。IVF文件头由32字节组成:
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
文件后跟随多帧的数据,第帧数据由一个12字节的帧头组成。
bytes 0-3 size of frame in bytes (not including the 12-byte header)
bytes 4-11 64-bit presentation timestamp
bytes 12.. frame data
参考:
1. https://wiki.multimedia.cx/index.php?title=IVF