Wednesday, September 16, 2009

QuickTime Hell

I hate QuickTime videos. They really are over-engineered. In good news, I have conquered most bugs in our player (mostly based off the ffmpeg player, thank you so much!) but there are still several evil ones left. The last of these screenshots will show the main bug left:

The first three are from the Cyan logo video, the main intro video on D'ni, and then Cho greeting you on Riven (before his timely demise). The last is the door to the temple. Yes, that's a bug. Or, rather an unhandled feature of QuickTime videos (it's in ffmpeg, just not in ours :P) that requires us to cut the width and height by 2. Only a few movies have this, and I'm not sure why. It doesn't make sense to me to even double the resolution in the first place, but alas, it's on the TODO list now. As are the "background" videos which will probably be handled next (they're partially supported now, just need to hook in a few function calls and cut out some screen updates). Not to mention the a/v sync problem still. And, yes, gameplay videos will be coming, just please don't bug me about it now.

EDIT: Fixed the double-resolution stuff (and 4x res stuff too... stupid QuickTime...):

For those interested, the problem was in the display matrix (in the tkhd atom) we didn't handle previously.

No comments: