原文來自:http://wiki.multimedia.cx/index.php?title=IVF
IVF是一個非常簡單的視頻容器。用於封裝VP8/VP9的數據。
下面多字節的數據是採用小端編碼(little-endian)。IVF文件頭由32字節組成:
<pre>
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
</pre>
文件後跟隨多幀的數據,第幀數據由一個12字節的幀頭組成。
<pre>
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
</pre>