You only have to compile huvideo_decode.c
with your favorite C compiler.
gcc huvideo_decode.c -o huvideo_decode
huvideo_decode -o 0x03739450 -g 0 <image> <output_prefix>
This program will extract all video frames of a single HuVideo from a CDROM image and output them as PNG files. The adpcm samples of some of the videos from John Madden Duo CD Football are also extracted as .vox files (https://en.wikipedia.org/wiki/Dialogic_ADPCM).
They can be played or converted to another audio format using sox.
play --rate 16k sample.vox
sox --rate 16k sample.vox sample.wav
-o/--offset <hex>
(optional) specify the offset in byte in the image file.-g/--game <int>
(optional) specify the game being process (0 for Power Golf 2 - Golfer and 1 for John Madden Duo CD Football).<image>
CDROM image.<output_prefix>
output files prefix.
decode.sh <decoder> <img>
decode.sh
is a shell script that will extract all HuVideo from Power Golf 2 CDROM image and save them as animated GIF using ffmpeg
.
The CDROM image is expected to match the one from the redump project
.
The result can be found here : https://blockos.org/releases/pcengine/HuVideo/PowerGolf2/
A similar script named madden_decode.sh
extracts all HuVideo from the track 02 of John Madden Duo CD Football.
The result can be found here : https://blockos.org/releases/pcengine/HuVideo/Madden/
<decoder>
is the HuVideo decoder.<img>
is the Power Golf 2 CDROM image.