Red codec r3d

191 views
Skip to first unread message

Olafur Arason

unread,
Apr 25, 2008, 2:20:39 PM4/25/08
to OpenJPEG
From what I can gather through a hex editor the new Red codec is just
j2k with metadata.

Here is a link to a sample file:
http://www.bealecorner.org/red/test-080108/index.html

I tried extracting the image but I just get a blank one, I tried
several frames.

Can somebody here see whats wrong?

Regards,
Olafur Arason

Olafur Arason

unread,
Apr 25, 2008, 6:19:47 PM4/25/08
to OpenJPEG
I'm able to get it working with the j2k_to_image tool but imagmagick display
does not render it correctly. At least I found the cutof code in jpeg200 FFD9.

Regards,
Olafur Arason

Ps It would be so cool to have a way to dump the frames from the .r3d file.
Or even better provide support within the openjpeg framework. The
Red Codec is probably used more than jpeg2000 files:)

gbaruffa

unread,
Apr 26, 2008, 11:36:27 AM4/26/08
to OpenJPEG
There is a jpeg 2000 wrapped file format inside, with 4 components,
the first and last one resembling luminance: only kdu_show can render
the contents. For dumping the frames look for "00 00 00 0C 6A 50 20
20", it is the box starting code.
Regards
Giuseppe

IrishJesus

unread,
May 8, 2008, 1:31:44 PM5/8/08
to OpenJPEG
I have a working R3D decoder for both video and audio, that runs using
OpenJPEG on Linux. It currently does not do a full debayer and for
simplicity, exports 2k frames RGB frames (rather than 4k bayer/debayer
frames). At RED's request, I won't publicly share what I've found
(yet).

If you are in need of a specific tool, I'm available for custom coding
and consulting. Just be aware that RED is promising a change in the
R3D format with the forthcoming Build 16, and that any R&D you do now
may be obsolete in a couple of weeks.

Olafur Arason

unread,
May 16, 2008, 6:39:20 AM5/16/08
to open...@googlegroups.com
Thanks for that info, I'm hoping that the r3d sdk will be opensource but
I have my doubts, maybe the will have some open documents for the
format. It's great to see that you have managed decode the format and
I hope that you will be able to do something with it as soon as they
release the sdk.

We haven't purchased any RED equipment yet, we will must certainly
buy the Scarlette, but the RED One is still in discussion. But it's allways
useful to know of some talented programmer/reverse engineers like you.
But R3D is really hot right now and if it's possible to do some magic
with it then you have no worries about getting paying gigs;)

Regards,
Olafur Arason

IrishJesus

unread,
May 16, 2008, 5:39:56 PM5/16/08
to OpenJPEG
I've heard a lot of statements that suggest that parts of the format
will be open source. My understanding is that they use some
commercially licensed APIs, and so those elements obviously won't be
open source, but hopefully the file format will be publicly
documented.

Once Build 16 is released, and depending on what that release entails
as far as the SDK, I may be inclined to release my finding as a parser
for ffmpeg. But we'll have to see. Who know, maybe everything I've
done will get scrapped when Build 16 is released.

Peter Schlaile

unread,
Jun 5, 2008, 2:13:59 PM6/5/08
to OpenJPEG
I added redcode support to Blender (http://www.blender.org) lately.
(you have to use current SVN version on Linux to use it)

Some sample pictures can be found here:
http://peter.schlaile.de/redcode/

Feedback much appreciated! (And: if there is someone out there, who
could optimize openjpeg towards realtime decoding, it would be
nice :) )
Reply all
Reply to author
Forward
0 new messages