Page 1 of 1
SGDK Video Player (work in progress)
Posted: Sun Aug 06, 2023 7:29 pm
by haroldoop
Hello;
I am currently experimenting with creating a video player for the Sega Genesis using SGDK.
For now, I em just experimenting with what works and what doesn't; there are a few conversion scripts, but they aren't user friendly at this phase (version 0.0.1).
Example ROM for version 0.0.1:
https://github.com/haroldo-ok/sgdk-vide ... .1.bin.zip
Github repo:
https://github.com/haroldo-ok/sgdk-video-player
Youtube video showing the converter and the player in action:
https://www.youtube.com/watch?v=fYztzvf81-0
Re: SGDK Video Player (work in progress)
Posted: Sun Aug 06, 2023 9:37 pm
by haroldoop
Version 0.0.2 tries to use raster ints to stretch the background vertically; it's still very glitchy.
Example ROM for v0.0.2:
https://github.com/haroldo-ok/sgdk-vide ... .2.bin.zip
--- edit ---
I guess the vertical stretching idea isn't going anywhere; Instead, I will try to adapt the tech developed for RgbQuant-SMS into a command line tool that will perform tileset reduction for each individual frame and, if that idea works out, I may adapt it to reduce tile count between similar frames.
https://haroldo-ok.github.io/RgbQuant-S ... index.html
Re: SGDK Video Player (work in progress)
Posted: Thu Aug 10, 2023 10:59 pm
by haroldoop
Version 0.0.3 uses RgbQuant-SMS to reduce the tile count of each individual frame.
Demo ROM for 0.0.3:
https://github.com/haroldo-ok/sgdk-vide ... .3.bin.zip
Youtube:
https://www.youtube.com/watch?v=jnc3Tlc4bOc
Re: SGDK Video Player (work in progress)
Posted: Sun Aug 13, 2023 12:18 am
by haroldoop
Version 0.0.5 adds support for 320x224 resolution while not increasing the final compressed size very much.
Demo ROM for 0.0.5:
https://github.com/haroldo-ok/sgdk-vide ... .5.bin.zip
Video on youtube:
https://www.youtube.com/watch?v=gOZ-zpa7Tj8
Re: SGDK Video Player (work in progress)
Posted: Mon Aug 14, 2023 11:19 pm
by Chilly Willy
Pretty cool. Not bad for an old 68000 and 16 color tile graphics.
Re: SGDK Video Player (work in progress)
Posted: Tue Aug 15, 2023 1:43 pm
by haroldoop
Chilly Willy wrote: ↑Mon Aug 14, 2023 11:19 pm
Pretty cool. Not bad for an old 68000 and 16 color tile graphics.
Thanks!
SGDK Video Player Test v0.0.6 - Now with sound
Posted: Tue Aug 15, 2023 1:45 pm
by haroldoop
Version v0.0.6 adds sound support, through SGDK's ADPCM driver.
ROM for version 0.0.6:
https://github.com/haroldo-ok/sgdk-vide ... .6.bin.zip
Youtube video:
https://www.youtube.com/watch?v=nsEKKbMpXrw
Re: SGDK Video Player (work in progress)
Posted: Sat Aug 19, 2023 11:00 am
by haroldoop
Version 0.0.8 uses a newer version of "rgbquant-sms", that allows for faster encoding and much less RAM usage.
I made a few experiments with multi-frame merging, but it's still too slow and glitchy to be useful; branch with multi-frame merging experiment:
https://github.com/haroldo-ok/sgdk-vide ... oup-frames
I think I'll leave the encoding as it is, for now, and start to turn the experiment into an actual tool.
Created the CLI
Posted: Fri Aug 25, 2023 9:59 pm
by haroldoop
Hello, again!
Version 0.1.0 refactors the disparate conversion scripts into a single coherent CLI.
To install:
How to use:
Code: Select all
sgdk-video-player convert <src> <resDir>
Converts a video file and outputs the result in the resource directory
Positionals:
src The source video, the one that will be converted [string] [required]
resDir The resource directory, where the generated sources will be placed.
[string] [required]
Options:
--version Show version number [boolean]
--imagemagick-dir, --kd Directory where ImageMagick is located [string]
--help Show help [boolean]
--cpu-cores Number of CPU cores to use. If ommited, will use all
of them.
--alias Alias to use when generating the C constants. If
ommited, it will be generated from <src>. [string]
Now, all that remains for this being actually usable is to refactor the "main.c" file into a reusable library.
Re: SGDK Video Player (work in progress)
Posted: Mon Aug 28, 2023 9:40 pm
by haroldoop
Version 0.2.0 refactors the video player into a SGDK-compatible C library.
Version 0.3.0 is now available!!!
Posted: Wed Sep 13, 2023 10:40 pm
by haroldoop
Version 0.3.0 adds a flag to skip conversion if the files are unchanged.