Register FAQ Search Today's Posts Mark Forums Read
Go Back   JazzJackrabbit Community Forums » Open Forums » General Jazz Jackrabbit Talk

Compressing and Decompressing .J2V's?

Jgke Jgke's Avatar

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Sep 30, 2010, 06:22 AM
Jgke is offline
Reply With Quote
Compressing and Decompressing .J2V's?

So, do any of you know how to do this? They're the movie files...
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 866

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Sep 30, 2010, 06:37 AM
Seren is offline
Reply With Quote
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.
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.
Jgke Jgke's Avatar

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Sep 30, 2010, 07:32 AM
Jgke is offline
Reply With Quote
Whoops I mean the J2V's, my bad :P
Violet CLM Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,992

Violet CLM has disabled reputation

Sep 30, 2010, 06:49 PM
Violet CLM is offline
Reply With Quote
Code:
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 JJ1 format for reference, but I doubt the two are actually too similar.
__________________
Jgke Jgke's Avatar

JCF Member

Joined: Sep 2006

Posts: 974

Jgke is an asset to this forumJgke is an asset to this forum

Sep 30, 2010, 08:41 PM
Jgke is offline
Reply With Quote
(-)(-)(-)(-) with these complicated file formats...
Nerd

JCF Member

Joined: Sep 2008

Posts: 61

Nerd is doing well so far

Oct 2, 2010, 10:07 AM
Nerd is offline
Reply With Quote
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 Violet CLM's Avatar

JCF Éminence Grise

Joined: Mar 2001

Posts: 10,992

Violet CLM has disabled reputation

Oct 2, 2010, 10:25 AM
Violet CLM is offline
Reply With Quote
Guy asked everyone.
__________________
Nerd

JCF Member

Joined: Sep 2008

Posts: 61

Nerd is doing well so far

Oct 2, 2010, 01:25 PM
Nerd is offline
Reply With Quote
I meant something like asking me personally on MSN, but whatever.
Grytolle Grytolle's Avatar

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Oct 2, 2010, 01:48 PM
Grytolle is offline
Reply With Quote
or maybe go to your room?
__________________
<center></center>
Toni Toni's Avatar

JCF Member

Joined: Dec 2009

Posts: 396

Toni should make better posts

Oct 3, 2010, 04:07 AM
Toni is offline
Reply With Quote
they don't live in the same house
__________________
Grytolle Grytolle's Avatar

JCF Member

Joined: Sep 2004

Posts: 4,126

Grytolle is a forum legendGrytolle is a forum legendGrytolle is a forum legend

Oct 3, 2010, 04:38 AM
Grytolle is offline
Reply With Quote
o
__________________
<center></center>
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

All times are GMT -8. The time now is 05:43 AM.