| View previous topic :: View next topic |
| Author |
Message |
Kells

Joined: 23 Aug 2006 Posts: 10
|
Posted: Wed Apr 09, 2008 5:03 am Post subject: Mogg File Format Details |
|
|
First of all let's recap all of xorloser's brilliant work.
PS2 hdr/ark file parsing/extraction/restricted replacement .... was already done.
PS2 hdr/ark file parsing/extraction/replacing files with no restrictions on file placement or size ....... CHECK!
Xbox360 hdr/ark decryption/parsiing/extraction/replacing files with no restrictions on file placement or size ....... CHECK!
Rockband (PS2 and Xbox360) hdr/ark decryption/parsing/extraction/replacement with no restrictions on file placement or size ...... check!!
GH2 DTB Decryption to allow us to edit dtb's from ALL games... CHECK!
Rockband (and GH2 DLC) X360 Mogg decryption/encryption ..... CHECK!
Rockband PS2 PSS/VGS decryption/encryption .... CHECK!
Excellent work mate .... now for my question ...
Now that rockband moggs for the x360 are able to be extracted and decrypted properly, has anyone looked at them closely yet?
When you do, you'll notice a bunch of bytes at the beginning of the file .. quite a few actually ... scroll through them until you find the OggS header later on. We are trying to figure out what those bytes are!? I suspect they are the main reason why Audacity chokes on decrypted moggs. If you delete those bytes, you can open the oggs fine in Audacity and check out Black Hole Sun in all it's 14 track glory heh .
Help the scene figure out what this info is and how to generate it ;)
Thanks.
Last edited by Kells on Wed Apr 09, 2008 3:06 pm; edited 1 time in total |
|
| Back to top |
|
 |
Kells

Joined: 23 Aug 2006 Posts: 10
|
Posted: Wed Apr 09, 2008 5:08 am Post subject: |
|
|
see below 
Last edited by Kells on Wed Apr 09, 2008 5:15 am; edited 1 time in total |
|
| Back to top |
|
 |
xorloser

Joined: 06 Mar 2008 Posts: 68
|
Posted: Wed Apr 09, 2008 5:14 am Post subject: |
|
|
these are structs for the header that kells mentions.
Note that a mogg file has the following layout:
MoggHeader
MoggEntry_0
MoggEntry_1
...
MoggEntry_n
MoggKey
Ogg Vorbis File
typedef struct {
int version; // 0xA = unencrypted, 0xB = encrypted
int headerSize; // this is the offset of the start of the ogg file
int numChannels; // number of channels in the mogg? not 100% sure on this..
int unknown; // 0x4E20 : 20000 (some kind of max packet/chunk size?)
int numEntries; // number of MoggEntrys following this
} MoggHeader;
typedef struct {
unsigned int fileOffset; // these are multiples of 0x8000
unsigned int unknown; // time offset into ogg stream?
} MoggEntry;
typedef struct {
unsigned char key[16];
} MoggKey;
I am guessing we need to work out what the MoggEntrys are and how they are generated to make custom tracks. I have not tried using an ogg file without this special header stuff to see if it'll work however. What have people done so far when they have made custom songs for the guitar hero games?
These special headers are not part of the ogg standard. (I looked into the "skeleton" headers that someone mentioned and it turns out they are part of the ogg format and so are stored inside the ogg file.) These special headers are present before the ogg file beings.
As for audacity it seems to load files whose special headers are less than or equal to 0x2000 bytes. I had a quick look at the audacity sourcecode and i think this is due to it using a 0x2000 byte buffer to find the start of the ogg file, so for files with a special header that is bigger than 0x2000 bytes it will not find the start of the ogg file. There are only 2 files I've found for which this applies, the 2 biggest songs in rockband foreplay and greengrass. In the case that audacity will not open the file, you can remove the special headers and it will then open them ok. |
|
| Back to top |
|
 |
ccfman2004

Joined: 09 Jan 2008 Posts: 128
|
Posted: Wed Apr 09, 2008 6:48 am Post subject: |
|
|
How do I extract the OGG files from the 360 version of the game and decrypt them?
Please link to a forum thread if necessary. |
|
| Back to top |
|
 |
Kells

Joined: 23 Aug 2006 Posts: 10
|
Posted: Wed Apr 09, 2008 7:14 am Post subject: |
|
|
Staff Edit: Removed. Read more here.
grab the ArkTool w Gui ...
run ArkToolGui.exe ... open the ark/hdr file by browsing to the directory that they reside in.
ensure under the Options menu that "Perform Crypts" is checked off (this is the default)
navigate to the *.mogg file you want to extract, right click it and select extract.
ArkToolGui.exe will automagically decrypt the mogg when you extract it. |
|
| Back to top |
|
 |
cool--ethan

Joined: 25 Mar 2007 Posts: 244
|
Posted: Wed Apr 09, 2008 7:59 am Post subject: |
|
|
| Kells wrote: | Staff Edit: Removed. Read more here.
grab the ArkTool w Gui ...
run ArkToolGui.exe ... open the ark/hdr file by browsing to the directory that they reside in.
ensure under the Options menu that "Perform Crypts" is checked off (this is the default)
navigate to the *.mogg file you want to extract, right click it and select extract.
ArkToolGui.exe will automagically decrypt the mogg when you extract it. |
did you try this before posting cause the newest version at the moment doesn't support decryption of Moggs, the new version of Arktool (coming out soon) will though _________________
My Customs
Goals:
[] FC Jordan not once but twice!!!
[x] come up with a realistic goal
[x] Beat Guitar Hero III before the official release on Sunday october 28th |
|
| Back to top |
|
 |
ccfman2004

Joined: 09 Jan 2008 Posts: 128
|
Posted: Wed Apr 09, 2008 8:06 am Post subject: |
|
|
| cool--ethan wrote: | | Kells wrote: | Staff Edit: Removed. Read more here.
grab the ArkTool w Gui ...
run ArkToolGui.exe ... open the ark/hdr file by browsing to the directory that they reside in.
ensure under the Options menu that "Perform Crypts" is checked off (this is the default)
navigate to the *.mogg file you want to extract, right click it and select extract.
ArkToolGui.exe will automagically decrypt the mogg when you extract it. |
did you try this before posting cause the newest version at the moment doesn't support decryption of Moggs, the new version of Arktool (coming out soon) will though |
That's why I ask how to do it. |
|
| Back to top |
|
 |
Kells

Joined: 23 Aug 2006 Posts: 10
|
Posted: Wed Apr 09, 2008 2:58 pm Post subject: |
|
|
| ethan wrote: | | did you try this before posting cause the newest version at the moment doesn't support decryption of Moggs, the new version of Arktool (coming out soon) will though |
v6.0 does, AND it now supports pss/vgs decryption. comes WITH SOURCE CODE .
Staff Edit: Removed. Read more here. |
|
| Back to top |
|
 |
ccfman2004

Joined: 09 Jan 2008 Posts: 128
|
Posted: Wed Apr 09, 2008 5:24 pm Post subject: |
|
|
I've extracted some of the DLC Content from my 360 Hard Drive.
How do I decrypt the .MOGG file I have?
BTW, I am a Mac programmer, I'll see if I port the code to Mac this way I don't have to open up Parallels every time I want to use this program.
When I finish, I'll post it here. |
|
| Back to top |
|
 |
xorloser

Joined: 06 Mar 2008 Posts: 68
|
Posted: Wed Apr 09, 2008 11:44 pm Post subject: |
|
|
| also included in the arktool v6.0 package is a tool called SongCrypt, you can use this to decrypt individual files such as those you have extracted from DLC. |
|
| Back to top |
|
 |
Bluzer

Joined: 05 Apr 2008 Posts: 2
|
Posted: Thu Apr 10, 2008 3:16 am Post subject: |
|
|
| xorloser wrote: | | also included in the arktool v6.0 package is a tool called SongCrypt, you can use this to decrypt individual files such as those you have extracted from DLC. |
it works like a charm! cheers for all the hard work put into it.
 |
|
| Back to top |
|
 |
Cheesus

Joined: 11 Feb 2008 Posts: 7
|
Posted: Thu Apr 10, 2008 11:04 am Post subject: |
|
|
THANK YOU so much for the tools!
One thing I've noticed is that .mogg files over 50MB do not load into Audacity. They "load" but with the same behavior as being undecryped (no channels, plays with 3-4 seconds of gibberish). In particuar, a song like "foreplaylongtime" and the RB version of "greengrass"
Can you determine whether this is a problem with the decyptor or Audacity? |
|
| Back to top |
|
 |
SixStringedBass

Joined: 14 Jul 2007 Posts: 181
|
Posted: Thu Apr 10, 2008 12:05 pm Post subject: |
|
|
| xorloser wrote: | | As for audacity it seems to load files whose special headers are less than or equal to 0x2000 bytes. I had a quick look at the audacity sourcecode and i think this is due to it using a 0x2000 byte buffer to find the start of the ogg file, so for files with a special header that is bigger than 0x2000 bytes it will not find the start of the ogg file. There are only 2 files I've found for which this applies, the 2 biggest songs in rockband foreplay and greengrass. In the case that audacity will not open the file, you can remove the special headers and it will then open them ok. |
|
|
| Back to top |
|
 |
Cheesus

Joined: 11 Feb 2008 Posts: 7
|
Posted: Thu Apr 10, 2008 1:13 pm Post subject: |
|
|
| Can't believe I missed that. Thanks. |
|
| Back to top |
|
 |
Unsteadycarrot


Joined: 28 Dec 2006 Posts: 626 Location: Solihull/england
|
Posted: Thu Apr 10, 2008 2:35 pm Post subject: |
|
|
im trying to get the ps2 audio files out but i dont know how to get the ogg file :|...do i extract the pss? if so...then what do i do with the vgs?...i thought it was meant toturn it into an ogg...im hopeless with this kind of stuff sometimes, i really am. _________________
|
|
| Back to top |
|
 |
|