Lossless compression of Scumm san files

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
User avatar
CaptainJei
Posts: 200
Joined: Wed Jun 15, 2011 3:57 am

Lossless compression of Scumm san files

Post by CaptainJei »

Hi, I'm a bit new to compression, so I'm wondering if anyone can tell me if there is a completely lossless compression setting one can use when compressing Scumm san files using ScummVM tools. Thanks!
User avatar
clone2727
Retired
Posts: 1611
Joined: Fri Jun 09, 2006 8:23 pm
Location: NJ, USA

Post by clone2727 »

FLAC
User avatar
CaptainJei
Posts: 200
Joined: Wed Jun 15, 2011 3:57 am

Post by CaptainJei »

ScummVM doesn't let me select FLAC for san files, only ogg or mp3. Is that normal?
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3525
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

CaptainJei wrote:ScummVM doesn't let me select FLAC for san files, only ogg or mp3. Is that normal?
I don't know about this particular case, but if the original audio files are compressed to begin with it's possible that FLAC will produce larger files, not smaller.
User avatar
CaptainJei
Posts: 200
Joined: Wed Jun 15, 2011 3:57 am

Post by CaptainJei »

eriktorbjorn wrote:
CaptainJei wrote:ScummVM doesn't let me select FLAC for san files, only ogg or mp3. Is that normal?
I don't know about this particular case, but if the original audio files are compressed to begin with it's possible that FLAC will produce larger files, not smaller.
That makes sense. Is there a lossless setting for ogg? And is the video compression lossless as well?
User avatar
eriktorbjorn
ScummVM Developer
Posts: 3525
Joined: Mon Oct 31, 2005 7:39 am

Post by eriktorbjorn »

CaptainJei wrote: That makes sense. Is there a lossless setting for ogg?
Strictly speaking, Ogg is a container format that can be used with a number of different audio and video codecs. However, in this case it's used for the Vorbis codec, which uses lossy compression.
CaptainJei wrote: And is the video compression lossless as well?
I believe so, though admittedly that belief is based only on the README file saying that "t uses lossless zlib for compressing FOBJ gfx chunks inside a san file". (I would guess that the "F" in "FOBJ" means "frame", or something like that.)
User avatar
CaptainJei
Posts: 200
Joined: Wed Jun 15, 2011 3:57 am

Post by CaptainJei »

Thanks for the help!
Post Reply