MOI (file format) explained

MOI
Extension:.moi
Genre:Information

MOI is a computer file format used primarily to represent information. MOI files are associated with MOD or TOD files whose content they represent. They are mainly used on JVC and Canon camcorders.

Format overview

Hex offset (zero based)ContentExample
00-01Version56 36 (V6)
02-05MOI filesize (bytes)00 00 01 C3 (451 bytes)
06-07Year07 D9 (2009)
08Month06 (June)
09Day1E (30th)
0AHour0B (11)
0BMinutes16 (22)
0C-0DSecondsCB 20 (52000 milliseconds = 52 seconds)
0E-11Video duration (ms)00 08 9D 00 (564480 ms, 9 mn 24 s 12 frames)
80-83Video aspect ratio and TV systemLow nibble of first byte: 0 and 1 for 4:3, 4 and 5 for 16:9. High nibble of first byte: 4 for NTSC, 5 for PAL.
84-85Audio codec00 C1 for AC3 audio / 40 01 for MPEG audio
86Audio bitrate01 = 64kbit/s (in steps of 16 kbit/s) to 0F = 640kbit/s
DA-DBVideo bitrate58 96 = CBR 8.5 Mbit / 81 3D = CBR 5.5 Mbit
DD-E1Video duration packetsVideo duration (ms) (0E-11) * 5A + Video bitrate (DA-DB) (may be incremented with values at offset DA-DB, but may not be for VBR MPEG video)
E6-E7Video bitrateSame as at offset DA-DB
E9-EDVideo duration packetsSame as at offset DD-E1
F0-F1COARSE table entries (zero based)Count of 7 byte packets for coarse table (one 7-byte packet each 10 seconds)
F2-F3FINE table entriesCount of 3 byte packets for fine table (one 3-byte packet each 480 milliseconds)
100 -COARSE table(F0-F1) * 7 byte packets coarse table
-FINE table(F2-F3) * 3 byte packets fine table