Skip to content

Latest commit

 

History

History
82 lines (64 loc) · 2.83 KB

README.md

File metadata and controls

82 lines (64 loc) · 2.83 KB

OpenSource PythonVersions License Git.io

satrgb.py -- extract RGB images from Sega Saturn files
For Educational purposes only.

So far, this script extracts:

  • SEGA_32BITGRAPH data in RGB color mode
  • CLUT / Color LookUp Table / Indexed Palette
  • expanded raw 15-bit BGR555 to 24-bit RGB data
  • DGT2 DC - Direct Color data
  • Truevision TGA

Helps identify:

  • Audio Interchange File Format
  • Cinepack Codec - Audio and/or Video
  • AVI / RIFF
  • SEGA 3D
  • CDDA CD Redbook audio
  • RAW PCM Audio
  • Machine Language
  • Other files with text in their header.
  • SSF - Saturn Sound Format sequence
  • Audio Tones for SSF
  • Indexed Fonts

...Which you can view in my SegSat font viewer:
https://github.com/doyousketch2/theSegSat

Can possibly read:

  • DGT2 RL - Run Length Encoding
  • DGT2 PP - Packed Pixel data. -- thanks VGKintsugi, I believe it does now.
  • DIGITIZER_3_Ver2

Need to find a disk with these image types to test on.
Let me know if you find any.

These are like 12 formats each, all rolled into one. I'll add them, once deciphered.

  • SEGA_32BIT2DSCR
  • Sega_Super32X_2D

They're an absolute b!7c# tho. Digital origami.
Code-folding like no other.


Open one file, or an entire directory.
Select where you want your file(s) to be saved.

It reads header information to determine image size,
then uses ImageMagick to do the conversion.

You'll need Python. You may already have it installed,
especially if you're on Linux or macOS. If not:
https://www.python.org/downloads

You'll need ImageMagick. Try your package manager or
https://www.imagemagick.org/script/download.php
sudo apt-get install imagemagick

You'll need the EasyGui module for Python. Depending on your OS:
sudo pip3 install easygui
sudo python3 -m pip install easygui
py -m pip install easygui

You might need the tkinter module (Debian, Ubuntu)
sudo apt-get install python-tk python3-tk


Usage depends on how you call Python scripts within your OS:
./satrgb.py
py -m satrgb.py
python3 -m satrgb.py

Console output prefers to print in color,
so if you're on an old version of windows
that doesn't, then enable VT100 emulation
or try ANSICON http://adoxa.altervista.org/ansicon

Apps that do well for extracting / viewing:

GIMP - images
VLC - video
Audacity - audio