READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

demultiplexing BIK videos

Need help in demystifying video formats of your favourite game? Go here.
Post Reply
AlphaTwentyThree
double-veteran
double-veteran
Posts: 985
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 75 times
Been thanked: 621 times

demultiplexing BIK videos

Post by AlphaTwentyThree » Fri Feb 17, 2012 6:04 pm

Ok, this is something that is long overdue I think. Since the bik format is supported by no standard programs, I'd like to see a possibility to demultiplex those videos into BIK video and BIK audio. It really bugs me that I only can decode the audio to uncompressed PCM and not leave it in its original format because it takes too much disk space AND I'd like to archive the original audio streams.
How do demux the videos isn't important (QuickBMS, some stand-alone tool etc.).
Does anyone know the specs and is able to program a demuxer?
Thanks for your help!
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)

User avatar
MiLØ
veteran
Posts: 114
Joined: Sun Dec 11, 2011 8:00 am
Has thanked: 34 times
Been thanked: 18 times

Re: demultiplexing BIK videos

Post by MiLØ » Fri Feb 17, 2012 7:40 pm

I don't know of tools to completely demultiplex BIKs into audio + video streams, but here's a little info that you might useful.
The latest BIK files tend to have more than 1 audio track in them (dialog, stereo & mono, front left & right audio channels, rear left & right audio channels, etc..). Open up Rad Video Tools and select one of the cutscenes, then click the "File info" button, you'll see how many audio tracks are in there (could be 2, 4 or more). And than to extract them all separately into WAVs we can use the "batch" option with "Convert a file" function.

On how to do it properly, I advise you to look into this: http://infectionist.com/forum/viewtopic ... highlight=
It gets to the topic of bik files starting with post #6.
(I hope it's ok to link to another forum here).
The guy over there showed me the way how to extract multiple audio tracks from BIKs.

AlphaTwentyThree
double-veteran
double-veteran
Posts: 985
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 75 times
Been thanked: 621 times

Re: demultiplexing BIK videos

Post by AlphaTwentyThree » Fri Feb 17, 2012 9:45 pm

Yep, that doesn't help. Nothing new here...
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)

snakemeat
advanced
Posts: 45
Joined: Tue Jan 27, 2009 5:00 pm
Has thanked: 12 times
Been thanked: 20 times

Re: demultiplexing BIK videos

Post by snakemeat » Fri Jun 29, 2012 7:10 pm

VGMToolbox r879 now supports demultiplexing Bink BIK files.

At this time, RAD Video Tools (binkplay.exe) does not seem to support files containing only one audio stream (and no video stream). Also, when no video stream is present, the "last" audio stream does not seem to play (try experimenting with "Advanced play" to observe this behavior). I think these are both symptoms of the same issue.

Use the RAD Video Tools "Convert a file" tool (binkconv.exe) to output the audio to a WAV file. It seems to function properly for all audio streams.

I have begun testing if adding a "dummy" audio stream to work around this behavior will fix binkplay.exe playback, but it will take some time and may not even work.

Many thanks to Timo for testing, etc...

AlphaTwentyThree
double-veteran
double-veteran
Posts: 985
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 75 times
Been thanked: 621 times

Re: demultiplexing BIK videos

Post by AlphaTwentyThree » Thu Oct 23, 2014 7:16 pm

Sorry, I must necropost here...
What about the new bk2 format? It's an updated version of bik that isn't supported yet.
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)

snakemeat
advanced
Posts: 45
Joined: Tue Jan 27, 2009 5:00 pm
Has thanked: 12 times
Been thanked: 20 times

Re: demultiplexing BIK videos

Post by snakemeat » Sat May 30, 2015 4:30 am

I've added Bink2 support to VGMToolbox r972. I haven't had a big amount of samples to test with, but it seems to work with both single and multi-track audio files. Thanks to AlphaTwentyThree for the initial round of testing.

If anyone discovers files that do not demux correctly, please let me know, as I'd like to make it as compatible as possible with all Bink2 variants.

AlphaTwentyThree
double-veteran
double-veteran
Posts: 985
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 75 times
Been thanked: 621 times

Re: demultiplexing BIK videos

Post by AlphaTwentyThree » Sat May 30, 2015 6:53 am

A little impatient, are we? ;)
I'll run some more tests later!
If you like what you see, why not click the little Thank You button? ;) It will definitely motivate me! :)
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks ;)

vladik4kides
n00b
Posts: 19
Joined: Wed Jun 17, 2015 5:36 pm
Has thanked: 7 times

Re: demultiplexing BIK videos

Post by vladik4kides » Sat Sep 05, 2015 6:38 pm

you can easily convert .bik to png sequence via ffmpeg or convert it

planedec50
beginner
Posts: 39
Joined: Sun Jun 07, 2015 6:12 pm
Has thanked: 2 times

Re: demultiplexing BIK videos

Post by planedec50 » Sun Sep 06, 2015 1:14 pm

vladik they are trying to seperate audio from the bik stream not convert to video

vladik4kides
n00b
Posts: 19
Joined: Wed Jun 17, 2015 5:36 pm
Has thanked: 7 times

Re: demultiplexing BIK videos

Post by vladik4kides » Sun Sep 20, 2015 10:23 am

planedec50 wrote:vladik they are trying to seperate audio from the bik stream not convert to video
ohh kkk

Post Reply