Bink has been the standard for video in video games since it was published due to its excelent performance, support and reliability. Years ago, deciding to add video playback to a crossplatform game engine was a nightmare because you had to study the API for each platform, figure out the format that they use, test it and trying to configure the optimum ratio between video quality and video size (this was quite important when games were played directly from the game disc). This of course was prone to errors, and added hundreds of programmers hours in development and debugging time that maybe wasn't that critical for the game. That's when Bink came out to the rescue with a very flexible and working library, making it easy to developers to display videos in windows or render into textures.
In the last days I decided to play one of my favorites videogames of all time (Bioshock 2) once again with a new video card (RTX 2060 Super) to see how it performed. After installing and testing I wanted to extract videos and images of the game in the installation directory, however the content was in this (new for me) BIK format that was unplayable without the RAD Video player and wanted to convert them to a regular format that I can share with anyone nowadays (MP4). After some research, I found out it wasn't that easy to convert it specially when you don't want to install a complex trial software that promises that it will convert the file to any video format but at the end I had to pay to unlock the codec. Then I found that Rad Game Tools, the developers of the Bink Video Codec offers a free tool to do exactly what I needed.
In this short article, I will explain to you how to easily convert Bink Video files (BIK) to MP4, AVI or WMV in Windows using RAD Video Tools.
1. Download Rad Game Tools
The first thing you need to do is to download the official Rad Game Tools kit from the official website of Rad Game Tools here. On their official website, you need to download RADTools.7z
and extract its content in some directory. You will find an installer namely radtools.exe
, proceed with the installation in Windows as you would do with any wizard.
Once the installation finishes, you will find the executables at the default directory C:\Program Files (x86)\RADVideo
(if you didn't change it):
Those tools are the only thing you need to do in order to convert a BIK file into multiple formats.
2. Converting the file
There are 2 ways of converting the files using the Bink Converter, the first option is to do it graphically using the GUI and the other way is to do it through the command line.
2.1. Using the Graphical User Interface (GUI)
The first options is quite comfortable if you can do it through the graphical user interface. The only thing you need to do is to launch Rad Video Tools (radvideo64.exe
or radvideo32.exe
depending on the architecture of your PC). In this new window that will appear, you need to search for the directory where your BIK file is located, in my case I have plenty of them. Select one or multiple files (holding CTRL while selecting multiple files) in this file browser and click on Convert a file:
After selecting your file or multiple files and pressing convert a file, the following new dialog will appear. In this dialog you need to select the output type:
This refers basically to the output format of the video that you're trying to convert, in my case I will use MP4:
After specifying the output format, you need to specify the output file path. To do this, click on Browse and select a location in your computer through the Windows File Explorer. After choosing the directory, click on Convert to start the video conversion:
Once you press Convert, the file conversion will start and you will see the following window with some details about the progress of the conversion:
And there you go! In this case, the Electrobolt_Master.mp4
file is now saved in my desktop and I can play it with any video player that supports the MP4 format. Of course you may do the same with another format such as AVI or WAV.
2.2. Using the Bink Converter through the CLI
The radvideo64.exe
binary provides a command line interface that you can use to convert bink video files to other formats through the BinkConv
parameter. This parameter works like this:
radvideo64 BinkConv "input-video.bik" "output_video.mp4"
In Windows, the command would look like this:
"C:\Program Files (x86)\RADVideo\radvideo64.exe" BinkConv "C:\Program Files (x86)\RADVideo\video.bik" "C:\Program Files (x86)\RADVideo\video.mp4"
You can specify multiple switches, as specified in the following list:
The following list includes the video switches that you can add:
And the audio switches:
And that's it! You may integrate this with your own application to convert files on demand.
Happy coding ❤️!