Re: Eidos RPL video codec

Christian Ohm <[email protected]> Tue, 4 Jan 2005 22:14:52 +0100
Newsgroups gmane.comp.video.xine.codec.devel
Organization theVoid
Message-ID <[email protected]>
On Sunday,  2 January 2005 at  9:27, Mike Melanson wrote:
> 	Question is: Which ADPCM format? And I do not know about you, but I 

mplayer plays it with 'rawaudio format=0x200' (that's Creative ADPCM), but
output is a bit distorted (sounds like it's played too loud, and thus
somewhat overdriven) with the ffmpeg decoder (it can't load the binary
Windows codec, so I couldn't try that as well).

> 	am not looking forward to having to write a demuxer that parses arbitrary 
> text strings. But that time will come, I suppose.

Well, I want a program that gets me each frame and audio in a usable format,
and for all I care about it can die horribly if fed with corrupted data.

> >The only thing I have no idea about is the video codec, and I wouldn't know
> >where to start reverse engineering it... So I'd be grateful if anyone could
> >help me to decode the video codec. (There's a sample file at
> >http://mplayerhq.hu/MPlayer/samples/game-formats/rpl/landing.rpl .)
> 
> 	If anyone is serious about RE'ing this, I have 26 RPL files from at 
> least 3 different Eidos games. I have another unopened Eidos game 
> waiting in the queue. And I see that the Warzone game comes with another 
> 19 RPL files.

It seems that each frame has a 16 (?) byte header, with 16 bit integers. The
first is always 0x0130 (probably the video format), the second 0x0001 or
0x8001, that looks like flags. In my 15 fps test file, every 15th frame had
0x8001, all other frames 0x0001. The third is the size of the video chunk,
the same as in the index at the end of the file. The remaining 10 bytes are
all zero, that's why I think they also belong to the header.

All that's really left is the video codec itself, and that's the really
interesting part... I could expand the program I wrote to dump the audio
data to also dump the video frames, but wouldn't know where to start in
trying to transform it into a pretty image...

Bye,
Christian Ohm

-- 
There are none more ignorant and useless,
than they that seek answers on their knees,
with their eyes closed.


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt