Video player for 8-bit consoles

This is an archive of a topic from NESdev BBS, taken in mid-October 2019 before a server upgrade.
View original topic
Video player for 8-bit consoles
by on (#100184)
Here's an experiment I have been making:
http://www.smspower.org/forums/viewtopic.php?t=13923
It's an 64x48 2bpp 10fps video player; so far, I have only implemented it on the Sega Master System but the algorithm is pretty simple to implement, specially for systems that use a tile based background.
Re: Video player for 8-bit consoles
by on (#100217)
Sounds like Chris Covell's "Motion" demo or the Bad Apple video.
Re: Video player for 8-bit consoles
by on (#100250)
Yes, it's about the same idea.
Re: Video player for 8-bit consoles
by on (#100463)
The "move your feet" video converted pretty well. I like how it handled the colors, I thought it looked good.
Re: Video player for 8-bit consoles
by on (#100483)
Thanks but, to be sincere, I still think the color conversion needs some tweaking. :P
Currently, for each pixel, it calculates it's brightness, which is what is actually used for choosing the background tile patterns; then, for each level of brightness, its calculated an average color, which is what's used for the frame's palette. The end result is a video with accurate brightness, but very innacurate colors. I've also experimented with a pallete-per-line encoding scheme that gives slightly better results, but haven't implemented that as a ROM, yet.
Re: Video player for 8-bit consoles
by on (#103459)
Today I was messing with my Mega Everdrive (Genesis/MD flashcart that also runs Master System games) and decided to test this just because. It didn't work, there were just some random squares and some "snow". Does the program by any chance use something that a Genesis/MD in SMS mode doesn't support, like the old video modes? Did you test this on a Master System?
Re: Video player for 8-bit consoles
by on (#103492)
Unfortunately, I didn't test it on real hardware; in fact, it doesn't take into account the VDP bandwidth: it should take about 4 VBLANKs to upload everything to the VRAM.
Re: Video player for 8-bit consoles
by on (#103495)
I don't know much about SMS programming, but I remember reading that you can write to VRAM during rendering, is that correct? But you have to do it slower than you'd do during VBlank, right?
Re: Video player for 8-bit consoles
by on (#103503)
Z80 can never saturate VRAM bandwidth in VBL but during active display there is minimally only 8 slots and Z80 has no problems doing too many writes.