Next Page

Decoding HCA CRI files by pengy at 1:17 AM EDT on May 18, 2011
CRI came out with a new High Compression Audio file for their ADX2 software, and I haven't found a way to decode it yet. Sample File: http://www.megaupload.com/?d=QMPZ2ZSK (From OreNoImouto PSP) Is there any way to get this into a playable format? It was originally in an AWB file (extracted by a version of utf_tab I found on here), and came out as a bin.
by pepper at 10:13 AM EDT on May 18, 2011
Seen this before in vanquish for 360/ps3. not sure how to handle it.

HCA = High Compression Audio?

edited 10:14 AM EDT May 18, 2011
by manakoAT at 11:40 AM EDT on May 18, 2011
File not available!
by pengy at 8:28 PM EDT on May 18, 2011
http://www.mediafire.com/?df8f9i9s8qkeuaj if megaupload doesn't work.

Also yes it is High Compression Audio.
by hcs at 3:04 AM EDT on May 19, 2011
Doesn't seem to be the same scheme used in the previous "high compression", AHX, which was just foreshortened MPEG frames. I've tried reinterpreting these frames as MPEG a few different ways without success. Might be something new.
by pengy at 3:06 PM EDT on May 19, 2011
According to this, it seems like it is a sister/brother to AHX http://www.cri-mw.co.jp/product/lineup/audio/criadx2/2nt4hm000000xz63-img/2nt4hm000000xzb1.jpg
by OrangeC at 12:52 PM EDT on September 13, 2011
Any progress yet?
by macree at 12:41 AM EST on December 19, 2011
I'm expecting
by hcs at 10:01 AM EST on December 19, 2011
Congratulations!

But no, no progress. I think I know where to look, but I don't have the heart to work on it.
by bxaimc at 2:00 PM EST on December 19, 2011
I'm expecting

boy or girl?
by Layer at 6:49 AM EST on March 6, 2012
Google Chrome Native Client may be able to read ADX2 samples, but I need confirmation...
by Layer at 7:29 AM EST on March 6, 2012
What I told above : http://www.cri-mw.co.jp/product/tech/2nt4hm000001igso.html
by bxaimc at 8:53 AM EST on March 6, 2012
Well, maybe not like you think. This is like saying the PS3 can read ADX2, obviously. Probably runs apps that have an executable which contains a decoder and yada yada. But straight up Google Chrome probably can't read the file as-is.
by enemy33 at 8:48 PM EDT on April 14, 2012
It looks like this is using a proprietary codec called HCA-MX. If there was some way to dump that out of a game that may be a quicker way to get this streaming. The English brochure outlines this.

http://www.cri-mw.com/product/lineup/audio/criadx2/2nt4hm000000bvpn-att/adx2_ps3_360_pc_eng_sizeletter.pdf

I can also confirm that HCA is now being used in Phantasy Star Online 2's character creator unlike previously where it was in a plain .adx format so that may help as well.

http://www.filedropper.com/ca0214d81e78282b8490d4f91c171c51files

edited 9:00 PM EDT April 14, 2012
by hcs at 10:46 PM EDT on April 14, 2012
HCA and HCA-MX aren't (exactly) the same thing. If as I suspect HCA is similar to AAC, they are probably equivalent to AAC Low Complexity and some other profile.

I've started looking into the codec from an Xbox 360 game, but I encourage anyone else to also give it a shot as it'll be a long time before I get anywhere.
by OrangeC at 10:47 PM EDT on April 14, 2012
If there i a pc game using HCA maybe we can get the decoder out of the crackled executable?
by hcs at 10:53 PM EDT on April 14, 2012
Sure. But I wouldn't want to just strip out the binary like that. You're welcome to do it if you want.
by OrangeC at 10:08 PM EDT on May 3, 2012
Binary domain for pc is out and cracked. Anyone check into that yet?
by hcs at 4:15 AM EDT on May 4, 2012
Someone sent it to me but I haven't looked at it. It'll be a little easier to deal with but the fundamental difficulty is no less.
by bxaimc at 11:31 PM EDT on May 6, 2012
That'd be me.
by j_hk at 1:18 PM EDT on June 2, 2012
I have downloaded the Google Native Client Demo.
It is true that the binary contains decoder and the new CPK format (known as AWB) analyzer.
But I'm not good at reversing project.....Can someone help me?
by bxaimc at 12:41 AM EDT on June 3, 2012
um...yea...

PC games with ADX2 were released some time ago. People already looking into it.

Sorry :P
by j_hk at 2:55 AM EDT on June 3, 2012
That must be good news....
Can I download the binary of that PC game? Where to?
by bxaimc at 1:15 PM EDT on June 3, 2012
Look for Binary Domain and Street Fighter x Tekken
by j_hk at 9:03 AM EDT on October 29, 2012
It seems that the Jpcsp Team has got the point about how to decode HCA files. HCA audio can be played now (e.g. Ore no Imouto).
Anyone reviewed it?
by bxaimc at 11:30 AM EDT on October 29, 2012
Not likely to have any effect on anything at the moment. What probably happened was they got the code to execute the in-game decoder to function. Not as a standalone player.
by snakemeat at 10:18 PM EDT on October 29, 2012
It seems that the Jpcsp Team has got the point about how to decode HCA files. HCA audio can be played now (e.g. Ore no Imouto).
Anyone reviewed it?


Out of curiosity, which revision had it added?
by j_hk at 11:37 AM EDT on October 30, 2012
To bxaimc:
You are right. I found a new thread called "CRI Atom Sound Output" coming up. In-game decoder started to work. Maybe we can get memory dump to find something new? Or we can use the In-emulator Debugger for details?
To snakemeat:
Please use r2810. Hope you can do something helpful.
by Moelli at 5:40 PM EDT on October 31, 2012
i'm highly interested in decoding these HCA files.
There should be some Decoding DLL distributed
with PC Games which use HCA. If someone would upload
this DLL, i would write an simple hca2wav utility
to convert a HCA file to a RIFF WAVE.

Or does somebody knows a location at which I can
download the ADX2 SDK for PC ?

Regards
by hcs at 6:16 PM EDT on October 31, 2012
Props where due, glad someone is making some progress. Hopefully it won't stall there like all the atrac3+ and xma stuff has.
by OrangeC at 6:56 PM EDT on October 31, 2012
What would be the name of the DLL file?
by Moelli at 9:26 PM EDT on October 31, 2012
hmm..., maybe cri, adx2, hca and/or decoder,decoding is part of the name..., don't know...

If you have a game which uses hca, you can post
a list of all dlls, so i can look...
Regards

edited 9:27 PM EDT October 31, 2012

edited 9:30 PM EDT October 31, 2012
by bxaimc at 11:09 PM EDT on October 31, 2012
Unfortunately there aren't any DLLs with anything HCA/ADX2 related. The decoder is embedded in the EXE for every PC game. I have a bunch of executables from a few games that include PC, DS, PS3, and x360.
by Moelli at 4:57 AM EDT on November 1, 2012
Debugging an x86 Windows Executable is the easiest
one among the other systems..., since there
are some (good) disassemblers.

But analyzing and generating
working (C) high level code is a complex thing.

Hopefully the exe contains some debugging (symbol
names) infos, so there's no need to find the HCA decoding routines.

I know that Street Fighter X Tekken and Binary Domains uses HCA files. If you have these PC
games, would you please upload the exe+a hca file
so i can take a quick look at it ?

Regards
by j_hk at 8:15 AM EDT on November 1, 2012
To Moelli:
Unfortunately I deleted that game...
I'm using a very slow network connection so it may take a few hours to re-download it...Hope someone else uploads these files.
But I have some HCA files (not AWB) that extracted from Ore no Imouto.
Link
by bxaimc at 10:05 AM EDT on November 1, 2012
Here are 2 exes: HCAEXE.7z

Let me know if you want to take a look at ATRAC3plus as well since I have the encoder/decoder and DLLs for that. As well as the encoder/decoder for XMA.

edited 10:10 AM EDT November 1, 2012
by Moelli at 12:22 PM EDT on November 1, 2012
thanks for the files...
Disassembling is slow since the executables
are very big...
by OrangeC at 12:52 PM EDT on November 1, 2012
Oh man if you can crack this codec you are great! :D
by OrangeC at 3:13 PM EST on November 5, 2012
How is progress?
by bxaimc at 7:51 PM EST on November 5, 2012
Come on man. Don't start this kind of thing. Patience is a virtue.
by OrangeC at 8:13 PM EST on November 5, 2012
Sorry id just thought id check in.
by Moelli at 2:58 PM EST on November 7, 2012
@OrangeC: I'm happy you ask... But I need more time... The code is quite complex, so please be patient... The DeCompiler of IDA Pro is buggy, so I
need to re. the assembler code itself...
The exe files use both awb and acb files.
Somebody knows what .acb-files are ??

The Project is interesting, but everybody should
understand that I cant spend my hole freetime for
it...

Regards, Martin
by OrangeC at 3:16 PM EST on November 7, 2012
Ahh yes i understand :)

Hmm they seem like container files but don't know much else.
by Moelli at 3:33 PM EST on November 7, 2012
While ``decrypting'' :) the code, maybe I can
also decrypt this format...

AWB is CPK..., maybe ACB is some variation...
Lets see, comes time comes money...

Regards
by j_hk at 9:47 AM EST on November 9, 2012
To Moelli:
I have both ACB and ACF files (for demo, not belong to the game). It seems that ACB is container for Cue's (?). As for ACF, I can't get any details about that.
Link
by bxaimc at 10:12 AM EST on November 9, 2012
ACB might be the new equivalent of what CSB used to be.
by Moelli at 1:29 PM EST on November 10, 2012
will now try RecStudio as Decompiler, but its
very slow... Hopefully it produces correct C code.

'll keep 'u updated...
by Moelli at 2:27 PM EST on November 10, 2012
What do you think the XBox 720 will use as
primary encoding ?? Hopefully some kind of
lossless audio !? Maybe instead of using
WMA Pro they will use WMA Lossless in XMA.

Regards
by Moelli at 3:18 PM EST on November 10, 2012
what for a slow program... :(
It already has the decompiled program in memory
and writing it to file is so slow, don't understand...

i'm bugged...
by bxaimc at 9:57 AM EST on November 13, 2012
It's an MPEG based codec. Probably similar to CRI's AHX codec which is slightly modified MP2. ADX2 might be more toward the MP4/AAC codec. According to what hcs found, an HCA frame has 1024 samples in it unless a loop is set, like AAC, vs 576 or 1152 for MP2/MP3. So far there are only 3 values for the 'ciph' chunk which are 0, 1, and 56. Most HCA is probably unencrypted at the moment but if we stumble upon one, it might be using DES encryption with the 56-bit key but this is optional, according to the parser. The 1 is probably the same encryption they use for ADX.
hca2wav by profrager at 2:40 PM EST on February 9, 2013
here 1 week of debugging... hca2wav
by snakemeat at 7:54 PM EST on February 9, 2013
Can anyone share, I cannot get that captcha working after 10 tries for that forum. Source included?
Mirror link by Infernus Animositas at 8:03 PM EST on February 9, 2013
Here you go

Thanks goes out to ProFrager for creating the tool :)

http://www.multiupload.nl/1J5QLSVWLZ

EDIT: Can confirm this works. Tested it on a HCA file I extracted from Power Rangers: Samurai and it works flawlessly :D

edited 8:11 PM EST February 9, 2013
by OrangeC at 8:20 PM EST on February 9, 2013
thanks. will test it out once i get to a pc.
by snakemeat at 8:38 PM EST on February 9, 2013
Thanks a lot.
by soneek at 9:14 PM EST on February 9, 2013
I get "Error reading HCA header" with SoulCalibur V files with more than 2 channels.

Here's a sample. 02.bin

edited 9:16 PM EST February 9, 2013
by snakemeat at 10:22 PM EST on February 9, 2013
Thanks for the tool. HCA v2.0 doesn't seem to work either. See Daiya_no_Kuni_no_Alice_Wonderful_Wonder_World_JPN_PSP-HR for samples.

Any chance of sharing the source code project?
by bxaimc at 11:56 PM EST on February 9, 2013
Hmm.....yea source would be nice

edited 12:01 AM EST February 10, 2013
by profrager at 1:10 AM EST on February 10, 2013
I get "Error reading HCA header" with SoulCalibur V files with more than 2 channels.
Yes, this decoder does not yet support more than 2 channels. The reason for that - the decoder has been cuted from bionic commando, and it supports a maximum of 2 channels and the size of the input chunk to ~1024 bytes. This track has 4 channels and chunk size 2048 bytes.
I'll try to fix it.


Hmm.....yea source would be nice
I did not rewrite the code in C, just decompiled pieces of code in the. asm file and wrote a control program in C. I understand how it works, but I have no time to write it on a high-level language. Need .asm source?


edited 1:11 AM EST February 10, 2013

edited 1:13 AM EST February 10, 2013
by profrager at 2:16 AM EST on February 10, 2013
Added support for multi-channel audio up to 6 channels;
Added sources.
HCA2WAV v 0.2
by pietastesgood at 7:42 PM EST on February 11, 2013
Hey, I'm pretty rusty with ripping these days, but this file from Binary Domain doesn't seem to wanna convert. It gives error code 8, and here's the file:

http://rghost.net/43733772

The first 12 seconds convert, but the rest is lost. There's a similar problem with other files from the game. Would appreciate someone looking into this!
by bxaimc at 10:44 PM EST on February 11, 2013
Well duhhhh. It's AAX. Meaning it has an intro file and loop file. :P

edited 10:45 PM EST February 11, 2013
by isbndcaw at 8:32 AM EST on February 12, 2013
how to search the hca"s loop point

edited 8:36 AM EST February 12, 2013
by snakemeat at 8:58 AM EST on February 12, 2013
Each block is 400 samples.

I think the first 32-bit number after the "loop" marker in the header is the (start block - 1) and the second 32-bit number after the loop marker is (end block - 1). Multiply these values by 400 to get start and end sample counts.

edited 9:06 AM EST February 12, 2013
by isbndcaw at 3:26 AM EST on February 13, 2013
www.packupload.com/889XYNTWEZ7
this hca file cant be decoded by hca2wav.exe


edited 7:49 PM EST February 13, 2013
by isbndcaw at 7:50 AM EST on February 13, 2013
www.packupload.com/889XYNTWEZ7
this hca file cant be decoded by hca2wav.exe
by j_hk at 10:10 AM EST on February 18, 2013
Thanks ProFrager for creating the great tool! I tried it and it worked very well.
by Riven at 10:29 AM EST on February 22, 2013
I get an 'error reading header' for HCA files in PSO2. Included a sample file if anyone would like to check it.
http://www.multiupload.nl/YP2QVGMFC0
by profrager at 2:36 PM EST on February 28, 2013
www.packupload.com/889XYNTWEZ7
this hca file cant be decoded by hca2wav.exe

This file has the tag "version" 2.0, but decoder supports only 1.3

I get an 'error reading header' for HCA files in PSO2. Included a sample file if anyone would like to check it.
http://www.multiupload.nl/YP2QVGMFC0
>
This file contains invalid tag names in the header. For example, instead of "HCA" (in hex: 0x48, 0x43, 0x41) contains "ИГБ"(in hex: 0xC8, 0xC3, 0xC1). This looks like a simple xor 0x80. I tried to fix it but it seems that the remaining data is also encrypted (xored).

edited 2:38 PM EST February 28, 2013

edited 2:39 PM EST February 28, 2013
by isbndcaw at 8:16 AM EST on March 1, 2013
here is the CRI adxle sdk web
http://www.adx2le.com/download/index.html

i hope profrager you will make the decoder version" 2.0
by profrager at 9:00 AM EST on March 1, 2013
"403 Forbidden

A user tried to access a file or directory that they did not have permission to access.
Please check URL address."
I can't download. And no time to search Japan proxy.
by hcs at 10:23 AM EST on March 1, 2013
You may want to look at the decryption for cpk I put together here
Cri likes to reuse things.

edited 10:58 AM EST March 1, 2013
by isbndcaw at 10:47 PM EST on March 1, 2013
http://www.criware.jp/adx2le/sdk/cri_adx2le_sdk_v100_unity.zip
by profrager at 4:34 AM EST on March 2, 2013
http://www.criware.jp/adx2le/sdk/cri_adx2le_sdk_v100_unity.zip
I told you already, I can not download from there. Upload this file to free hosting.
by isbndcaw at 9:19 AM EST on March 2, 2013
sorry
i wii upload this file to free hosting
by isbndcaw at 9:58 AM EST on March 2, 2013
www.packupload.com/VDGP41NC2XY


edited 1:39 AM EST March 3, 2013
by profrager at 12:33 PM EST on March 2, 2013
In archive i found only HCA encoder v 2.00 : hcaenc_lite.dll . It is easy to adapt for use. But it seems that the decoder is contained in some other dll or exe, written in C #. I have no experience of reverse engineering such programming languages.
by isbndcaw at 1:39 AM EST on March 3, 2013
perhaps the decoder is contained in CriAtomViewerClr.dll
by bxaimc at 2:28 AM EST on March 3, 2013
Why the password?
by isbndcaw at 3:33 AM EST on March 3, 2013
password:upload by someone
by alexfilth at 3:39 PM EST on March 6, 2013
I'm having a little problem converting HCA tracks from Naruto Shippuden Ultimate Ninja Storm 3, hca2wav converts them but also gives me this error message: "decoder return error code: 8" and there is a little bit of noise at the end of every converted wav.

It's not really a problem since i can remove the noise with audacity, but i thought i should've report the problem. :)

Screenshot hca2wav + audacity

First HCA track

edited 3:40 PM EST March 6, 2013

edited 3:41 PM EST March 6, 2013


EDIT: soneek just told me that maybe the XML preset for VGMToolbox Cutter he gave me can be broken, so there is the chance that the HCA files are screwed up.

edited 4:05 PM EST March 6, 2013
by soneek at 5:05 PM EST on March 6, 2013
Is anyone else having trouble playing stuff with CRI Atom Viewer? I can sort of hear the sounds, but it's extremely staticky while playing them. Tried with ADX & HCA files, ACB and AWB archives.
by clive at 9:03 PM EST on March 7, 2013
HCA2wav cannot decode this file
it's giving
"Error reading HCA header"

Here's a sample file

http://ge.tt/2UQOwPa/v/0?c
hca2wav0.2 "Error reading HCA header" error by moon at 5:49 AM EDT on April 5, 2013


"Error reading HCA header"error occurs when hca2wav0.2 decoding ,
is there a way around this ?

http://rghost.net/45056677
by enemy33 at 10:43 AM EDT on April 13, 2013
I wonder if the Sympathy system in PSO2 is causing the corrupted headers. Here's some more detail on that if you're not familiar with it.

http://bumped.org/psublog/phantasy-star-online-2s-dynamic-music-system-sympathy/
by j_hk at 7:58 AM EDT on April 24, 2013
As for CriAtomViewerClr.dll, I did some research.
It was written in C++/CLI, decompiling it could be harder but we can find usage in CriAtomViewer.exe.

It seems it also contains some information about the new AFS2 format. I will check it later.

edited 9:33 AM EDT April 24, 2013
by sar at 1:37 PM EDT on June 18, 2013
http://www.cri-mw.com/newsrelease/2013/oue6a1000000024z.html

ADX2 and cri movie 2 support xbox one .. xD

edit .. wii u + ps4 too :)

edited 1:48 PM EDT June 18, 2013
by AceK at 4:43 AM EDT on August 25, 2013
Just curious, determining the format type of .HCA, is it the data after that offset, which would be at offset 0x0000000C, or is it the data before that offset, which is otherwise offset 0x00000004?

I'm just looking into PSO2 .HCA, and notice that simple xor'ing (what profrager mentioned. I do not have a program that does this. A hex editing program with this feature would be very helpful) on ALL of the data definitely doesn't convert it correctly. Some parts of the data stays the same, while some require the offset to be subtracted by 80 (or 50 in hex.)

EX: Offset 0x00000000 through offset 0x00000002 as mentioned by profrager requires a subtractiong by -80 (or 50 in hex.) Offset 0x00000003 through offset 0x00000006, however, has the same values like other .HCA files and should stay the same.
by guest at 11:22 PM EDT on August 25, 2013
Found this app, with c++ source, a few months back on the 2ch BGM board.

Maybe someone can make a vgmstream patch or update it to work with newer HCA versions. All credit to the original poster, I just modified it to allow for larger headers and made a VC++ project out of it.

There is some useful header info there for making an extractor also.
by snakemeat at 11:53 PM EDT on August 25, 2013
A hex editing program with this feature would be very helpful

Not exactly what you asked for, but I made a tool to XOR files a while back, maybe it will help you: deSlaXOR_v0.0
by AceK at 11:54 PM EDT on August 25, 2013
guest:

Thanks for that submission! That app apparently can convert PSO2 .hca files into .wav perfectly with no adjustments... and in the end it turns out the game might be running in some sort of sequence? Hard to say how it works.

The question is, what's making the game decide what plays what in a sequential-like fashion? The only thing I see is that the character maker bgm should be at or around 100 BPM from adjustments with music production programs. Not sure if it's in the game's .exe or if it's in one of the ICE or CPK files. Of course the patterns randomize, but would be interesting to find leads on how it's being played.

edited 2:05 AM EDT August 26, 2013
by enemy33 at 6:58 PM EDT on October 1, 2013
I can confirm the program for the previous page works perfectly. As for sequencing, PSO2 is using an in-house proprietary sequencer called Sympathy.

Does anyone have a program that will convert from WAV to HCA? also is there a program somewhere that will pack up CPK files? I'd like to test something out.
by Ultrafighter at 10:16 PM EDT on October 5, 2013
I`m just wondering if anyone out here has taken a look at Ryu ga gotoku 5 HCAs yet? I`m interested in playing back or at least converting them anyhow as a greater amount of them (heck almost all of them actually!) still can`t be converted with either hca2wav or hcadec. Of course I can provide loads of seemingly differently encoded samples (stereo, 4ch, etc.). I guess that might prove useful for future aforementioned programs revisions as well as vgmstream implementation whenever it`s done.
by AceK at 12:25 AM EDT on October 7, 2013
Ultrafighter: Do you have samples files uploaded?
by Ultrafighter at 3:32 AM EDT on October 7, 2013
Not yet but it`s positively doable. The only obstruction in the way of doing so is that there`re 682 files worth of 2.29 GB excessively representing all the track groups used in the game: multichannel ambiences, the ones from karaoke and all the remaining minigames, situational tracks (stingers and such) and that "usen" bunch of course. File sizes also vary starting with a few dozens of KB and ultimately reaching dozens of MB. Given the game`s age I`d suggest that all those files aren`t convertible because of v2.0 of HCA format which seems to be not implemented in either hca2wav or hcadec yet but there`s a supposedly typical "HCA" (0x48/0x43/0x41) header in every single file I mentioned.

Oh, I almost forgot that 2/682 might be converted but results of both decoders work are almost undoubtedly erroneous at least in the case with constantly skipping sound in one of resulting WAVs. Another one contains merely silence which cannot even be normalized to anything of musical type but it`s possible that the original HCA track was actually a silence one albeit being quite long. I guess that a look at these 2 files would be even more interesting for reversing and coding folks out here. Both files in question are not that big, just a very few MBs worth of size so that I can post both of them in one pack but separately from the samples of files which don`t convert at all.

And finally, is MF / SS fine for that?
error reading hca header by saeid_nejat at 10:09 AM EDT on November 2, 2013
hca2wav can not convert.
error reading hca header
how solve this problem?
error reading .HCA Header? by FinalBlast at 10:06 AM EST on December 22, 2013
I managed to extract from .awb getting these .hca/.neo files, none of which hca2wav works...?

I've provided a sample, if anyone knows anything check it out.
http://filetrip.net/dl?VvMADVoqQ5

[img]http://i.imgur.com/Sn5Ovto.jpg[/img]
error reading .HCA Header by Calary at 10:46 AM EST on December 22, 2013
encounter the same problem with FinalBlast.

I've tred to read th source of the HCA decoder from 2ch, managed to understand the multiple attributes in the header of hca files.

I found that the decoder cannot recognize the "comp" attribute(maybe compress?).
Same does hca2wav, I think.
by FinalBlast at 7:05 AM EST on December 27, 2013
HCA by FinalBlast at 10:34 AM EST on December 28, 2013
Any update on this matter?

Next Page
Go to Page 0 1 2 3

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source