Sega CD video codecs

Discussion of development of software for any "obsolete" computer or video game system. See the WSdev wiki and ObscureDev wiki for more information on certain platforms.
tepples
Posts: 22993
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)

Sega CD video codecs

Post by tepples »

In this post, Sik linked me to YouTube video of a FMV sequence from the Sega CD game Loadstar, which has essentially full-screen software-decoded video at an acceptable frame rate and a bitrate that fits into 1x CD-ROM (150 KiB/s). How did codecs like this work?
User avatar
tokumaru
Posts: 12668
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: Sega CD video codecs

Post by tokumaru »

That FMV is indeed pretty good compared to what was present in most of the Sega CD library!

I won't pretend I know anything about the codec used here, but inside the dark tunnels (and sometimes outside the tunnels too) you can clearly see what appears to be 32x32-pixel macroblocks, so I guess the compression scheme revolves around that.
Sik
Posts: 1589
Joined: Thu Aug 12, 2010 3:43 am

Re: Sega CD video codecs

Post by Sik »

It's just a variant of Cinepak made to work with palettes. The base blocks are 2×2, 4×2 and 4×4 with dictionaries for each size (with up to 256 entries for each). Anything that doesn't fit into those dictionaries has to be stored as-is. I don't remember how audio is stored, besides being streamed alongside video (the sample rate is quite low, though).

Not sure if this stands true for all versions (the decoder was being constantly updated over time and Sega controlled that only the latest version was being used, if the addenums are anything to go by) but I know that's how at least some of them work.

EDIT: or just look here instead of taking what I said for granted. I don't guarantee the accuracy of my statements =P (although that seems to be the gist of the basics)