Gildor's Forums

Author Topic: How can I open an unk file?  (Read 3903 times)
Bigchillghost
Newbie
*
Posts: 3


View Profile
How can I open an unk file?
« on: April 17, 2015, 21:33 »

I've export some sounds from the game,which are in .unk format rather than .fsb.So what application can I use to open the files?
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7972



View Profile WWW
Re: How can I open an unk file?
« Reply #1 on: April 17, 2015, 21:35 »

Do you mean - files extracted with "extract.exe", not with UModel?
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7972



View Profile WWW
Re: How can I open an unk file?
« Reply #2 on: April 17, 2015, 21:42 »

Sorry, my mistake - UModel saves "unk" files.

When UModel saves sounds, it has some binary blob without any information which type of data is inside. UModel tries to determine data format and then selects file extension to save. When file format can't be recognized, it saves a file with "unk" extension, i.e. "unknown".

If you think that saved file has some common format - just tell me, I'll extend UModel code to make it wiser.
Logged
41hc1
Newbie
*
Posts: 2


View Profile
Re: How can I open an unk file?
« Reply #3 on: July 06, 2015, 06:54 »

I get this issue with Arkham Asylum's audio. It just exports files with the unk extension.
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7972



View Profile WWW
Re: How can I open an unk file?
« Reply #4 on: July 06, 2015, 10:55 »

Did you read this thread before posting here?
Logged
Neatability
Newbie
*
Posts: 2


View Profile
Re: How can I open an unk file?
« Reply #5 on: October 20, 2015, 03:30 »

Gildor, you might want to look into FFmpeg's source code regarding determining codecs.
Running ffmpeg with a Bioshock .unk as input (ffmpeg -i vo_0_player_choke04.unk) gives the following:
Code:
Input #0, mp3, from 'vo_0_player_choke04.unk':
  Duration: 00:00:01.31, start: 0.025057, bitrate: 65 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 64 kb/s
    Metadata:
      encoder         : LAME3.97
    Side data:
      replaygain: track gain - -2.300000, track peak - unknown, album gain - unknown, album peak - unknown,
At least one output file must be specified
I assume the relevant function used to determine the codec used is in the libavcodec library of the FFmpeg project, which is under the LGPL.

For everybody else, this just means that you probably don't need a special program to open or to convert the file, but just renaming it from filename.unk to filename.mp3 and see if it works.
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS