BinkVideo

From XentaxWiki
Jump to: navigation, search

BIK


Format Specifications

Bink "1" file format

uint32 {4}   - Header (BIKi)
uint32 {4}   - archiveSize? (a little too big)
uint32 {4}   - Number Of Frames
uint32 {4}   - Largest Frame Size (in bytes)
uint32 {4}   - Number Of Frames (again?)
uint32 {4}   - Unknown
uint32 {4}   - Video Width (in pixels)
uint32 {4}   - Video Height (in pixels)
uint32 {4}   - Frames-Per-Second (FPS)
uint32 {4}   - Unknown
uint32 {4}   - Unknown (1)
uint32 {4}   - Unknown
uint32 {4}   - Unknown
uint32 {4}   - Unknown

// for each frame

uint32 {4}   - Frame Offset


byte {X}     - Frame Data


Bink "0" file format (OLD Bink video)

// BIK file format (Bink 0)

//header
4 bytes (uint32) - magic // "BIKf"
4 bytes (uint32) - file size - 8
4 bytes (uint32) - number of frames
4 bytes (uint32) - size of largest frame in bytes
4 bytes (uint32) - number of internal frames
4 bytes (uint32) - width
4 bytes (uint32) - height
4 bytes (uint32) - frame rate
4 bytes (uint32) - frame rate divisor   // fps = framerate/divisor
4 bytes (uint32) - flags (height compression options)
4 bytes (uint32) - number of tracks

x bytes - video data // TODO

MultiEx BMS Script

Not written yet

Compatible Programs

Other Games

These games also use this file format

  • Driver 3 *.xmv
  • MotoTrax *.bik
  • Settlers VI: Rise of an Empire *.bik
  • Thief 3: Deadly Shadows *.bik
  • Mat Hoffman's Pro BMX *.bik