ScummVM tools question (audio compression)
Moderator: ScummVM Team
ScummVM tools question (audio compression)
Hiya,
I'm trying to extract some of The Dig's in-game music. I found a utility in the tools, compress_scumm_bun, that can get the music clips out of the DIGMUSIC.BUN file. Unfortunately it then immediately deletes them but a quick source change fixed that.
I now have over 500MB worth of WAV clips (22kHz, 16bit) that I am trying to encode to MP3.
compress_scumm_bun actually does the encoding already, but to rather low quality MP3 files: VBR between 56 and 64 kb/s.
My question is just whether there is any reason for these low default settings? Did someone perform a listening test or is the aim just to save lots of space?
Thanks in advance.
I'm trying to extract some of The Dig's in-game music. I found a utility in the tools, compress_scumm_bun, that can get the music clips out of the DIGMUSIC.BUN file. Unfortunately it then immediately deletes them but a quick source change fixed that.
I now have over 500MB worth of WAV clips (22kHz, 16bit) that I am trying to encode to MP3.
compress_scumm_bun actually does the encoding already, but to rather low quality MP3 files: VBR between 56 and 64 kb/s.
My question is just whether there is any reason for these low default settings? Did someone perform a listening test or is the aim just to save lots of space?
Thanks in advance.
- spookypeanut
- ScummVM Developer
- Posts: 159
- Joined: Tue Sep 12, 2006 9:35 am
- Location: St Albans, UK
- Contact:
Don't forget we're working with 22k audio, not 44k (like CDs). That means that half the bitrate will retain the same quality (i.e. 56/64 kb/s is equivalent to compressing a CD at 112/128 kb/s)
Are the samples compressed (in a lossy way) inside the BUN file? If so, probably a little pointless using v high bitrates...
Are the samples compressed (in a lossy way) inside the BUN file? If so, probably a little pointless using v high bitrates...
I don't know, but it sure looks like it: the original DIGMUSIC.BUN is about 250MB, whereas the WAV files amount to just over 550MB. I don't suppose any lossless compression could account for this 50%+ size decrease, could it?spookypeanut wrote: Are the samples compressed (in a lossy way) inside the BUN file? If so, probably a little pointless using v high bitrates...
BUN files are indeed already compressed, using the "IMC" codec, a variant of IMA (see http://www.multimedia.cx/simpleaudio.html and http://wiki.multimedia.cx/index.php?tit ... dio_Codecs).
- SithlordDK
- Posts: 65
- Joined: Sat Nov 19, 2005 10:04 am
- Location: Aperture Science Labs
Then do so. For crying out loud, ScummRevisited2 has been out for several years now, but nobody seems to know of its existence.SithlordDK wrote:Wahh!! I wanna extract the DIGMUSIC.BUN file too !
ScummRev will not extract the music from DIGMUSIC.BUN, unfortunately (tried with both v2 and v5).
The only ways I found to get the tracks out of the BUN file are with the Dig Music Player, or using compress_scumm_bun.exe from the ScummVM tools.
The only ways I found to get the tracks out of the BUN file are with the Dig Music Player, or using compress_scumm_bun.exe from the ScummVM tools.
- SithlordDK
- Posts: 65
- Joined: Sat Nov 19, 2005 10:04 am
- Location: Aperture Science Labs
Thanks for that link! I tried it also with ScummRev before and it didn't work.monkeyman wrote:ScummRev will not extract the music from DIGMUSIC.BUN, unfortunately (tried with both v2 and v5).
The only ways I found to get the tracks out of the BUN file are with the Dig Music Player, or using compress_scumm_bun.exe from the ScummVM tools.
Well if anyone's interested.... I finally managed to put the entire ingame soundtrack online, here:
http://www.megaupload.com/?d=Q2WRPK6T
Files were extracted from DIGMUSIC.BUN, joined up using foobar2000, renamed to the non-truncated track labels, and finally encoded with LAME.
Have fun.
http://www.megaupload.com/?d=Q2WRPK6T
Files were extracted from DIGMUSIC.BUN, joined up using foobar2000, renamed to the non-truncated track labels, and finally encoded with LAME.
Have fun.