The Adventures of Tintin: Game audio .wav files from bf files

Codecs, formats, encoding/decoding of game audio, video and music
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

Hello
I am trying to convert the audio from the game The Adventures of Tintin; the secret of the unicorn into normal sound files. The file I am trying to convert is tintin.pc.wav.bf
What I have been able to accomplish so far is the following:

I was able to convert the audio using the tintin.bms script from QuickBMS. This created a lot of folders in which the sounds were stored. These are all 0-1 second long and unplayable in any app I know of, except Audacity.
In there, The files seem a bit weird. I'll leave an example to download.

I'd really want to have all the music and sounds in normal files, because I really like it. Can anyone help me?
I am aware there has been a discussion about this before, but that didn't help me (viewtopic.php?f=9&t=4031)
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

If you've already used Aluigi's tintin.bms script, it seems like the extracted .wav files have some issues. But if you rename them all to .ogg, they will play in the likes of Foobar. Example attached that plays fine for me.
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:If you've already used Aluigi's tintin.bms script, it seems like the extracted .wav files have some issues. But if you rename them all to .ogg, they will play in the likes of Foobar. Example attached that plays fine for me.

I've tried this. Some audio, like small sentences, work fine. Music sadly remains like the original shared file. :(
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

Can you post the full .bf archive? Judging from the file table, it should be about 65 MB.
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:Can you post the full .bf archive? Judging from the file table, it should be about 65 MB.


the bigfiles folder C:\Program Files (x86)\Ubisoft\De avonturen van Kuifje - Het Geheim van de Eenhoorn\BigFiles is 7.4 Gigabyte. I don't think my pc can upload that.
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:Can you post the full .bf archive? Judging from the file table, it should be about 65 MB.


am i looking at the wrong file? (previous answer)
Am I doing something wrong?
Im getting desparate, is there anything else i could try?
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

Are there lots of .bf files in that folder? Doesn't seem like it would just be one large file of 7 GB (I could be wrong). If you can upload the smallest one to look at. I wouldn't want to download 7 GB either!
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:Are there lots of .bf files in that folder? Doesn't seem like it would just be one large file of 7 GB (I could be wrong). If you can upload the smallest one to look at. I wouldn't want to download 7 GB either!

There are 3 files present
TINTIN.$hd$.bik.bf - 3.7GB (can't extract, error message)
TINTIN.bf - 2.35GB (I have managed to extract this, it contains all cutscenes)
TINTIN.PC.wav.bf - 1.7GB (sounds)

I'll try to upload the sound file in a few hours, under this comment.
Edit: turns out I switched $hd$.bik.bf and .bf. I've edited it, its correct now
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

I hope this works, it was the only way I could upload it.
If it doesn't work, ill try to find another way. I hope drive doesn't cause problems (as it has before for me)
https://drive.google.com/file/d/1PXIOul ... sp=sharing
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

I might have found something else, but it also causes problems.
Using DecUbiSndGui I managed to take the tintin.pc.wav.bf and get most of the audio files
these arent sorted nor named.
I have managed to find some of the music, but only some are completely scanned. the others give a very short (<1sec) start of the music

An example of this is Gallion B2
https://www.youtube.com/watch?v=heGycjH ... OfGeonosis
when compared to what i exported (can be downloaded below) from decubi this seems to be the same song, but only the beginning
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

Yeah, I've had a look at it. I can easily extract all of the thousands of files in the archive, but the ones with multiple channels seem unusual.

They are listed as having 3 streams, which seem to be interleaved.

All of the mono files play ok. Very odd.
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:Yeah, I've had a look at it. I can easily extract all of the thousands of files in the archive, but the ones with multiple channels seem unusual.

They are listed as having 3 streams, which seem to be interleaved.

All of the mono files play ok. Very odd.


I've never heard of interleaved files. What does that mean, and is there a way to solve it?
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

Another thing that looks quite weird to me: when listening to all files I don't seem to find any other language than spanish. I haven't found any English, French or Dutch file.
Or is this because i exported in a wrong way?
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

Interleaving is when the streams are mixed together - e.g. part of stream1, part of stream2, part of stream3, then back to part of stream1, etc. There should be a way to reassemble them properly - I've had a quick try at extracting various Ogg segments, but couldn't get anything working, but I'll keep having a look at it.

The English files are in the 3rd block of data. There are 4 large file tables, giving a total of 23,499 files.

I've attached my QuickBMS script which exports all the files, and renames them to .ogg - at least the mono ones play correctly for now.
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:Interleaving is when the streams are mixed together - e.g. part of stream1, part of stream2, part of stream3, then back to part of stream1, etc. There should be a way to reassemble them properly - I've had a quick try at extracting various Ogg segments, but couldn't get anything working, but I'll keep having a look at it.

The English files are in the 3rd block of data. There are 4 large file tables, giving a total of 23,499 files.

I've attached my QuickBMS script which exports all the files, and renames them to .ogg - at least the mono ones play correctly for now.


Hmmm... I only get 10,499 files when using your script. Do you rename when you find a duplicate or skip it?
edit 1:Nvm, i skipped duped files, but giving them a different name gives a total of 23,499 files.
edit 2: I read on some apple forum that ProTools could possibly fix interleaved files. Is this true, and would it be able to help us?
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

Also, just out of curiosity, do you think there is a way to extract the TINTIN.$hd$.bik.bf file?
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

I don't think ProTools would help ...

It seems like it's something put in by the developers to mix up the ogg blocks, and their player reassembles them in the right order - even looking at the ogg block IDs doesn't seem to help much (although I'm not an ogg expert).

If the bik.bf file is in the same format, the script should work - it would probably need the file extension amending, but something I could build into the script if all else is the same.
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

Turns out I confused the tintin.bf and the .bik.bf twice. The tintin.bf can't be converted. This is the error code:

offset filesize filename
--------------------------------------
004f6014 563264 84024479.bin

Error: the compressed LZO input is wrong or incomplete (-6)
Info: algorithm 8
offset 004f6014
input size 0x0006abca 437194
output size 0x00089840 563264
result 0xffffffff -1

Error: the uncompressed data (-1) is bigger than the allocated buffer (563264)
It usually means that data is not compressed or uses another algorithm

Last script line before the error or that produced the error:
73 clog NAME OFFSET ZSIZE SIZE


Since I don't know how to code, do you think there is a way to resolve this?

(And of course the music files :p )
CMNDuser
Posts: 19
Joined: Tue Dec 29, 2020 2:59 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by CMNDuser »

DKDave wrote:It seems like it's something put in by the developers to mix up the ogg blocks, and their player reassembles them in the right order - even looking at the ogg block IDs doesn't seem to help much (although I'm not an ogg expert).

Do you have any idea if that would be a file of some sort? And where could it be stored? maybe i can find it?
DKDave
Posts: 136
Joined: Mon Nov 23, 2020 6:01 pm

Re: The Adventures of Tintin: Game audio .wav files from bf files

Post by DKDave »

Just had a brainwave and found the answer in an older script I did.

The audio files are all in UbiSoft's "Lyn" format - so if you rename them all to *.lwav then they will play correctly in Foobar.