BIK Video

From XentaxWiki
Jump to: navigation, search

BIK


Format Specifications

// BINK Video
// BIK file format

// header (44 bytes)
4 bytes (uint32) - signature // "BIKf" - Bink "0", very old, used in RAD Tools 0.8i etc.
                             // "BIKg" - ?
                             // "BIKh" - ?
                             // "BIKi" - Bink "1", newer, used in RAD Tools 1.5g etc.
                             // "KB2" + rev_number - Bink "2"
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) - video flags (height compression options)
4 bytes (uint32) - number of audio tracks

num_of_audio_tracks *
{
   2 bytes (uint16) - unknown
   2 bytes (uint16) - audio channels // 1 or 2
}

num_of_audio_tracks *
{
   2 bytes (uint16) - audio sample rate (Hz)
   2 bytes (uint16) - audio flags
}

num_of_audio_tracks *
{
   4 bytes (uint32) - audio track ID
}

num_of_audio_tracks *
{
   4 bytes (uint32) - length of audio packet  // if 0, then no audio for this track
   4 bytes (uint32) - number of samples in packet
   x bytes - bink audio packet
}

x bytes - bink video packet

MultiEx BMS Script

Not written yet.

Compatible Programs

Other Games

These games also use this file format:

  • Arcanum - Steamworks and Magick Obscura
  • Diablo 2
  • Driver 3 *.xmv
  • C&C: Red Alert 2
  • Fallout: New Vegas
  • Gothic
  • Gothic 2
  • Hitman - Blood Money
  • Mat Hoffman's Pro BMX *.bik
  • MotoTrax *.bik
  • Settlers VI: Rise of an Empire *.bik
  • Thief 3: Deadly Shadows *.bik
  • Urban Chaos *.bik
  • Many more...

See Also