FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
     
Mogg File Format Details
Goto page 1, 2, 3  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    ScoreHero Forum Index -> Software
View previous topic :: View next topic  
Author Message
Kells 
 
 



Joined: 23 Aug 2006
Posts: 10

PostPosted: Wed Apr 09, 2008 5:03 am    Post subject: Mogg File Format Details Reply with quote

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
View user's profile Send private message
Kells 
 
 



Joined: 23 Aug 2006
Posts: 10

PostPosted: Wed Apr 09, 2008 5:08 am    Post subject: Reply with quote

see below

Last edited by Kells on Wed Apr 09, 2008 5:15 am; edited 1 time in total
Back to top
View user's profile Send private message
xorloser 
 
 



Joined: 06 Mar 2008
Posts: 68

PostPosted: Wed Apr 09, 2008 5:14 am    Post subject: Reply with quote

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
View user's profile Send private message
ccfman2004 
 
 



Joined: 09 Jan 2008
Posts: 128

PostPosted: Wed Apr 09, 2008 6:48 am    Post subject: Reply with quote

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
View user's profile Send private message XBL Gamertag: chuckthetekkie
Kells 
 
 



Joined: 23 Aug 2006
Posts: 10

PostPosted: Wed Apr 09, 2008 7:14 am    Post subject: Reply with quote

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
View user's profile Send private message
cool--ethan 
 
 



Joined: 25 Mar 2007
Posts: 244

PostPosted: Wed Apr 09, 2008 7:59 am    Post subject: Reply with quote

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
View user's profile Send private message
ccfman2004 
 
 



Joined: 09 Jan 2008
Posts: 128

PostPosted: Wed Apr 09, 2008 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message XBL Gamertag: chuckthetekkie
Kells 
 
 



Joined: 23 Aug 2006
Posts: 10

PostPosted: Wed Apr 09, 2008 2:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
ccfman2004 
 
 



Joined: 09 Jan 2008
Posts: 128

PostPosted: Wed Apr 09, 2008 5:24 pm    Post subject: Reply with quote

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
View user's profile Send private message XBL Gamertag: chuckthetekkie
xorloser 
 
 



Joined: 06 Mar 2008
Posts: 68

PostPosted: Wed Apr 09, 2008 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bluzer 
 
 



Joined: 05 Apr 2008
Posts: 2

PostPosted: Thu Apr 10, 2008 3:16 am    Post subject: Reply with quote

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
View user's profile Send private message
Cheesus 
 
 



Joined: 11 Feb 2008
Posts: 7

PostPosted: Thu Apr 10, 2008 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message
SixStringedBass 
 
 



Joined: 14 Jul 2007
Posts: 181

PostPosted: Thu Apr 10, 2008 12:05 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address XBL Gamertag: SixStringedBass
Cheesus 
 
 



Joined: 11 Feb 2008
Posts: 7

PostPosted: Thu Apr 10, 2008 1:13 pm    Post subject: Reply with quote

Can't believe I missed that. Thanks.
Back to top
View user's profile Send private message
Unsteadycarrot 
 
 



Joined: 28 Dec 2006
Posts: 626
Location: Solihull/england

PostPosted: Thu Apr 10, 2008 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger XBL Gamertag: Unsteadycarrot PSN Name: Unsteadycarrot
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    ScoreHero Forum Index -> Software All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Copyright © 2006-2009 ScoreHero, LLC
Terms of Use | Privacy Policy


Powered by phpBB