Log in

View Full Version : Compressing and Decompressing .J2V's?


Jgke
Sep 30, 2010, 06:22 AM
So, do any of you know how to do this? They're the movie files...

Seren
Sep 30, 2010, 06:37 AM
Are you sure you mean .j2m's? They're macro files, the movie files are .j2v's. Not that I'd be able to help you anyway, I know a nothing about dark paths of programming.

Jgke
Sep 30, 2010, 07:32 AM
Whoops I mean the J2V's, my bad :P

Violet CLM
Sep 30, 2010, 06:49 PM
struct j2v_header {
char Magic[8]; //"CineFeed"
long Filesize;
long crc32; //Haven't actually tested this, but analogy with other files suggests a checksum.
long Width; //640, or 320 for the low quality versions
long Height; //480, or 200
}

After that I dunno. The next eight bytes are similar but not necessarily identical between high- and low-quality versions, so maybe it's length or something. Before each zlib block there's a long which is related to the block's length, but the blocks seem to have some extra non-zlib material after them that's also included in the value of the length longs. There's a lot of random other stuff floating around in there too, though. You could check against the <a href="http://www.shikadi.net/moddingwiki/Jazz_Jackrabbit_Cutscene_Format">JJ1 format</a> for reference, but I doubt the two are actually too similar.

Jgke
Sep 30, 2010, 08:41 PM
(-)(-)(-)(-) with these complicated file formats...

Nerd
Oct 2, 2010, 10:07 AM
I wonder why he hasn't asked me yet. I'm his brother, anyway.
And no, I'm not saying I would suck at reverse-engineering file formats.

Violet CLM
Oct 2, 2010, 10:25 AM
Guy asked <em>everyone</em>.

Nerd
Oct 2, 2010, 01:25 PM
I meant something like asking me personally on MSN, but whatever.

Grytolle
Oct 2, 2010, 01:48 PM
or maybe go to your room?

Toni
Oct 3, 2010, 04:07 AM
they don't live in the same house :(

Grytolle
Oct 3, 2010, 04:38 AM
o :(