BIK Video: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(61 intermediate revisions by the same user not shown)
Line 3: Line 3:
* ''' Format Type ''':    Video <br>  
* ''' Format Type ''':    Video <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' Signatures ''':    BIK / BIKf / BIKg / BIKh / BIKi / KB2 <br>




=== Format Specifications ===  
=== Format Specifications ===  
<tt><b>
'''Bink "1" file format'''
uint32 {4}&nbsp;&nbsp; - Header <font color="purple">(BIKi)</font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' archiveSize? <font color="purple">(a little too big)</font> '' </font> <br>
uint32 {4}&nbsp;&nbsp; - Number Of Frames <br>
uint32 {4}&nbsp;&nbsp; - Largest Frame Size (in bytes)<br>
uint32 {4}&nbsp;&nbsp; - Number Of Frames (again?) <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - Video Width (in pixels) <br>
uint32 {4}&nbsp;&nbsp; - Video Height (in pixels) <br>
uint32 {4}&nbsp;&nbsp; - Frames-Per-Second (FPS) <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(1)</font> '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
<br>
<font color="blue"> ''' // for each frame ''' </font> <br>
: uint32 {4}&nbsp;&nbsp; - Frame Offset <br>
<br>
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - Frame Data <br>
<br>
</b></tt>
'''Bink "0" file format (OLD Bink video)'''


<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
// BIK file format (Bink 0)
// BINK Video
// BIK file format


//header
// header (44 bytes)
4 bytes (uint32) - magic // "BIKf"
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) - file size - 8
4 bytes (uint32) - number of frames
4 bytes (uint32) - number of frames
Line 49: Line 27:
4 bytes (uint32) - frame rate
4 bytes (uint32) - frame rate
4 bytes (uint32) - frame rate divisor  // fps = framerate/divisor
4 bytes (uint32) - frame rate divisor  // fps = framerate/divisor
4 bytes (uint32) - flags (height compression options)
4 bytes (uint32) - video flags (height compression options)
4 bytes (uint32) - number of tracks
4 bytes (uint32) - number of audio tracks


x bytes - video data // TODO
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
</pre>
</pre>
</div>
</div>
Line 58: Line 60:
=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  


Not written yet<br><br>
Not written yet.
 
=== Notes ===
 
* Standard BINK video used in many games. Older games use '''BINK 0''' or '''BINK 1''' format with '''*.BIK''' extension, newer games use '''BINK 2''' format with '''*.BK2''' extension.


=== Compatible Programs ===  
=== Compatible Programs ===  
Line 64: Line 70:
* [[Game Extractor|Game Extractor]]
* [[Game Extractor|Game Extractor]]
* [[jRipper|jRipper]]
* [[jRipper|jRipper]]
* [http://www.radgametools.com/bnkdown.htm The RAD Video Tools] ''Player/Info''
* [http://www.radgametools.com/bnkdown.htm RAD Video Tools]
* [https://forum.xentax.com/viewtopic.php?t=6444 BikMod]
 
=== Games ===


=== Other Games ===
These games also use this file format: <br>
* Arcanum - Steamworks and Magick Obscura
* Backbone (PC) (*.BK2) ("KB2n" signature)
* Diablo 2
* Driver 3 (*.XMV)
* C&C: Red Alert 2
* Fallout: New Vegas
* Gothic
* Gothic 2
* GTA 2 (*.BIK) (PC)
* Hitman - Blood Money
* Hugo: Jungle Island 2 (*.BIK) (PC)
* Mat Hoffman's Pro BMX (*.BIK)
* MotoTrax (*.BIK)
* Obscure (*.BIK) (PC) ("BIKi" signature)
* Robin Hood: The Legend of Sherwood (*.VID) (PC)
* Scooby-Doo 2: Monsters Unleashed (*.BIK) (PC) ("BIKi" signature)
* Settlers VI: Rise of an Empire (*.BIK)
* SpellForce: Platinum Edition (*.BIK) (PC) ("BIKi" signature)
* Thief 3: Deadly Shadows (*.BIK)
* Urban Chaos (*.BIK)
* Many more...


These games also use this file format<br>
=== See Also ===
* Driver 3 *.xmv
* [https://en.wikipedia.org/wiki/Bink_Video Bink Video (Wikipedia)]
* MotoTrax *.bik
* [https://wiki.multimedia.cx/index.php?title=Bink_Video Bink Video (Multimedia Wiki)]
* Settlers VI: Rise of an Empire *.bik
* [https://wiki.multimedia.cx/index.php/Bink_Container Bink Container (Multimedia Wiki)]
* Thief 3: Deadly Shadows *.bik
<br><br>
* Mat Hoffman's Pro BMX *.bik




[[Category:Complete WIP|BinkVideo]]
[[Category:Complete Almost Done|BinkVideo]]
[[Category:Platform PC|BinkVideo]]
[[Category:Platform PC|BinkVideo]]
[[Category:CE None|BinkVideo]]
[[Category:CE None|BinkVideo]]
Line 82: Line 111:
[[Category:Extension_bik | Extension: bik]]
[[Category:Extension_bik | Extension: bik]]
[[Category:BMS_None | BMS: None]]
[[Category:BMS_None | BMS: None]]
[[Category:File Format]]

Latest revision as of 20:11, 24 October 2022

BIK

  • Format Type : Video
  • Endian Order : Little Endian
  • Signatures : BIK / BIKf / BIKg / BIKh / BIKi / KB2


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.

Notes

  • Standard BINK video used in many games. Older games use BINK 0 or BINK 1 format with *.BIK extension, newer games use BINK 2 format with *.BK2 extension.

Compatible Programs

Games

These games also use this file format:

  • Arcanum - Steamworks and Magick Obscura
  • Backbone (PC) (*.BK2) ("KB2n" signature)
  • Diablo 2
  • Driver 3 (*.XMV)
  • C&C: Red Alert 2
  • Fallout: New Vegas
  • Gothic
  • Gothic 2
  • GTA 2 (*.BIK) (PC)
  • Hitman - Blood Money
  • Hugo: Jungle Island 2 (*.BIK) (PC)
  • Mat Hoffman's Pro BMX (*.BIK)
  • MotoTrax (*.BIK)
  • Obscure (*.BIK) (PC) ("BIKi" signature)
  • Robin Hood: The Legend of Sherwood (*.VID) (PC)
  • Scooby-Doo 2: Monsters Unleashed (*.BIK) (PC) ("BIKi" signature)
  • Settlers VI: Rise of an Empire (*.BIK)
  • SpellForce: Platinum Edition (*.BIK) (PC) ("BIKi" signature)
  • Thief 3: Deadly Shadows (*.BIK)
  • Urban Chaos (*.BIK)
  • Many more...

See Also