Electronic Arts TGV
- Extension: tgv
- Company: Electronic Arts
- Samples: http://www.mplayerhq.hu/MPlayer/samples/game-formats/tgv/
TGV is a multimedia format used in various games published by companies under the Electronic Arts umbrella. It is suspected to use a vector quantizer for video coding.
Data Format
All multi-byte numbers in TGV files are stored in little endian format. TGV files are comprised of a series of chunks with the following format:
bytes 0-3 chunk type FourCC bytes 4-7 chunk length (including this 8-byte preamble) bytes 8.. chunk payload
The following data chunk types are known to occur in TGV files:
SEAD
Possibly stands for 'Sound hEADer'. This chunk contains parameters to initialize audio decoding and has the following layout:
bytes 0-3 'SEAD' bytes 4-7 chunk length, should be 20 (0x14) bytes 8-11 audio sample rate bytes 12-15 probably audio channels, audio bytes/sample, or coding type bytes 16-19 probably audio channels, audio bytes/sample, or coding type
SNDC
SouND Chunk. This chunk's payload contains a block of audio data after the 8-byte chunk preamble.
kVGT
TGV keyframe. This chunk carries a keyframe coded in the TGV coding method along with the width and height of the frame:
bytes 0-3 'kVGT' bytes 4-7 chunk length bytes 8-11 frame width bytes 12-15 frame height bytes 16.. encoded video frame
fVGT
TGV interframe. This chunk carries an interframe after the 8-byte chunk preamble.