The terrorist country proves that it is recognized as one and keeps targeting civilians instead of fighting a war. So nothing new but it would still be nice to see its demise soon. Meanwhile I keep doing small things to distract myself from all this.
Since I have nothing better to do, I watch reviews of various games including the ones I know well. And one of those reviews mentioned that Macintosh version of King’s Quest VI: Heir Today Gone Tomorrow had peculiar intro. Actually every version of the game has something peculiar about its intro: DOS version uses Sierra’s own RLE-based SEQ format, Windows version uses standard MS Video 1 in AVI (it was my first sample with palette change messages), Amiga version is a reimplementation by Revolution Software on their Virtual Theatre engine altogether (maybe ScummVM
will support it one day for all three and a half fans waiting for that). So, what’s with Macintosh version?
First of all, the files are QuickTime movies in the original Macintosh format where frame data is stored in the data fork and movie header is stored inside the resource fork. Since not all modern OSes support such files natively (or conveniently), I’ve hacked a support for such movies in MacBinary format that keeps all forks in one file. And what do we have inside?
Inside the files are video streams packed with Cinepak. One of the peculiarities is that they have palette specified in video header in the format different from the conventional MOV color atom format, let alone the fact it should not be present at all. I understand that for Cinepak and even more for Indeo 3 (I really should write an encoder for it one day) it was common to provide a palette so they rendered their output for 256-colour mode but in that mode Cinepak simply coded palette indices and here we have YUV420 output and a palette as a recommendation.
Then there’s a fun case with tracks in KQ6Movie
. I understand that they split video and coded it in several tracks so they could use different palettes (and framerates as it turns out) for different segments. And those tracks are not in order. Tracks 0 and 1 seem to be the very beginning, track 2 corresponds to a scene somewhere in the middle and track 3 is the last intro scene. Other ten tracks are not in order either. Maybe there is some information hidden in the header telling the order but I’m too lazy to find it out (let alone implement).
All in all, this was unexpectedly weird.
Could you please look at LSVX codec, there are many samples available on libav bug tracker.
I think I have looked at it already – https://codecs.multimedia.cx/2021/01/a-look-at-various-video-codecs-from-the-90s/
Maybe I’ll attempt to write a decoder for it.
It mentions wavelets in config, at least some high to mid level overview of bitstream and coding algo would be very helpful.
I see the decoder supporting several FOURCCs: LSVC, LSVM, LSVX and LSRT. And a string “tmndecode v3.0” hinting on H.263 decoder.
I’ll look at it closer next week, maybe it has something interesting after all.