VOGONS

Common searches


First post, by CMDLineKing

User metadata
Rank Newbie
Rank
Newbie

I have been ripping my old dos games down to launch on DOSBox, but I kept running into issues with Redbook CD Audio. I used several different programs to Clone the discs in various formats, but even discs without protections would run into weird errors after mounting. I could copy the contents down and create a generic ISO and the issues went away, but of course I lost CD Audio, due to ISO's being unable to have audio tracks.

I did some digging around after reading about the BIN/CUE format and stumbled across some things that indicated that the CUE sheet itself could be modified, and include external files to make up tracks.. WHAT? Really? So, keep poking and find that you can mount an ISO with a CUE sheet.. So I attempted to rip down my audio to MP3 and use this in the CUE sheet (according to one website this would work), but no dice. So I pulled it all down as a WAV and combined that with my ISO File and IT WORKED. So now, I have Warcraft II Beyond the Dark Portal working with CD Audio, but a self compiled ISO in MODE1/2048. BIN format was MODE1/2352.

I used this same method to create CUE Files for some other games that were having issues with CD Audio and it fixed them all! Before, if I did get the BIN/CUE format to work I would get audio stutters or pops during game play, but with the ISO+WAV+CUE solution I just get smooth game play!

CUE Sheet Contents:

FILE "WARCRAFT2_EXPANSION.ISO" BINARY
TRACK 01 MODE1/2048
INDEX 01 00:00:00
FILE "WARCRAFT2_EXPANSION.WAV" WAVE
TRACK 02 AUDIO
INDEX 01 00:00:00
TRACK 03 AUDIO
INDEX 01 00:06:02
TRACK 04 AUDIO
INDEX 01 06:36:61
TRACK 05 AUDIO
INDEX 01 13:48:48
TRACK 06 AUDIO
INDEX 01 17:30:54
TRACK 07 AUDIO
INDEX 01 21:07:07
TRACK 08 AUDIO
INDEX 01 22:05:10
TRACK 09 AUDIO
INDEX 01 22:42:71
TRACK 10 AUDIO
INDEX 01 23:40:25
TRACK 11 AUDIO
INDEX 01 29:37:26
TRACK 12 AUDIO
INDEX 01 33:13:72
TRACK 13 AUDIO
INDEX 01 36:49:73
TRACK 14 AUDIO
INDEX 01 40:19:56
TRACK 15 AUDIO
INDEX 01 43:54:19
TRACK 16 AUDIO
INDEX 01 45:21:41
TRACK 17 AUDIO
INDEX 01 46:04:04
TRACK 18 AUDIO
INDEX 01 46:49:48

I used PowerISO to extract the Audio files off the disc. Select all the Audio Tracks on your game disc, then "Extract" as a single WAV file. It will create a WAV and the associated CUE file for the tracks. From there you just need to add the first track section for the ISO of the game.

FILE "GAME_NAME_HERE.ISO" BINARY
TRACK 01 MODE1/2048
INDEX 01 00:00:00

Anyway, maybe this is well known, but I kept seeing everyone across multiple sites and forms claim this was impossible without using BIN/CUE. I will continue to experiement and try to get any other versions of this working and report it here.

Ohh and you can actually combine an ISO file with the BIN to create a Frankenstein BIN+ISO+CUE. This did help with the CD Audio playback, but obviously makes file sizes larger, cause the BIN contains the same CD Files as the ISO.
That looks like this:

FILE "EXPANSION.ISO" BINARY
TRACK 01 MODE1/2048
INDEX 01 00:00:00
FILE "WARCRAFT2_X.BIN" BINARY
TRACK 02 AUDIO
PREGAP 00:02:00
INDEX 01 19:52:05
TRACK 03 AUDIO
INDEX 01 19:58:07
TRACK 04 AUDIO
INDEX 01 26:28:66
TRACK 05 AUDIO
INDEX 01 33:40:53
TRACK 06 AUDIO
INDEX 01 37:22:59
TRACK 07 AUDIO
INDEX 01 40:59:12
TRACK 08 AUDIO
INDEX 01 41:57:15
TRACK 09 AUDIO
INDEX 01 42:35:01
TRACK 10 AUDIO
INDEX 01 43:32:30
TRACK 11 AUDIO
INDEX 01 49:29:31
TRACK 12 AUDIO
INDEX 01 53:06:02
TRACK 13 AUDIO
INDEX 01 56:42:03
TRACK 14 AUDIO
INDEX 01 60:11:61
TRACK 15 AUDIO
INDEX 01 63:46:24
TRACK 16 AUDIO
INDEX 01 65:13:46
TRACK 17 AUDIO
INDEX 01 65:56:09
TRACK 18 AUDIO
INDEX 01 66:41:53

Reply 1 of 7, by RoyBatty

User metadata
Rank Oldbie
Rank
Oldbie

Better to just dump the whole disc with CloneCD or Alcohol if you want a playable copy, they can save in bin/cue, ccd or mds/mdf formats. Be aware that v2 of mds/mdf is only supported by modern daemon tools and alcohol so is a largely useless proprietary format, that they use to paywall their software.

If you want preservation level copy then DIC (Disc Image Creator) and a supported Plextor drive.

ImgDrive is probably the best free virtual drive, followed by WinCDEmu.

Reply 2 of 7, by CMDLineKing

User metadata
Rank Newbie
Rank
Newbie

Yes, but I was using DOSBOX and scripting/frontend to mount the images, without having a drive emulator in windows and mounting and unmounting constantly.

Lots of ways to save disc images, but putting them in the most useful format for me was the goal. I got them in a format now that lets me enjoy them much easier. Hope someone finds it useful for their setup.

Reply 3 of 7, by junglemontana

User metadata
Rank Newbie
Rank
Newbie
CMDLineKing wrote:

I have been ripping my old dos games down to launch on DOSBox, but I kept running into issues with Redbook CD Audio. I used several different programs to Clone the discs in various formats, but even discs without protections would run into weird errors after mounting. I could copy the contents down and create a generic ISO and the issues went away, but of course I lost CD Audio, due to ISO's being unable to have audio tracks.

I've seen ISO files with audio but they may have been some weird non-standard stuff. I think Isobuster can rip a CD into ISO+CUE with audio but I don't know if such images are supported by common virtual drive software.

Reply 4 of 7, by CMDLineKing

User metadata
Rank Newbie
Rank
Newbie
junglemontana wrote:

I've seen ISO files with audio but they may have been some weird non-standard stuff. I think Isobuster can rip a CD into ISO+CUE with audio but I don't know if such images are supported by common virtual drive software.

Yeah, this was just for DOSBox imgmount. Figured I would share in case other people were having some challenges in getting smooth playback, not intended to replace archiving attempts, just play.

Reply 5 of 7, by linux4ever07

User metadata
Rank Newbie
Rank
Newbie

I ran into a similar problem lately. Not only does DOSBox support WAV for the audio tracks, it supports Ogg Vorbis and FLAC too! FLAC is lossless so identical in quality to WAV. The only difference is it takes up less space cause of the lossless compression. It's really more akin to something like ZIP for audio rather than lossy formats like MP3 or Ogg. I'm sure you know this, but I'm being extra clear for the sake of others who might read the thread and not know.

I'm assuming you're using Windows, so maybe this will not be helpful, but I made a shell script a while ago that can extract audio tracks from BIN files. It will also strip the audio tracks from the BIN file, leaving only the data track. You can still access the data track from within DOSBox even though the image file is not ISO, and BIN is to be preferred since it preserves absolutely all of the binary data that's on the disc. In some cases, using ISO will trigger copy protection.

The audio tracks will be encoded to either FLAC or Ogg Vorbis, depending on what argument you give to the script. The script produces CUE sheets that are ready to be used with DOSBox. They preserve all information from the original CUE, like PREGAP commands for example. So, the original disc layout can be re-created if the CUE was to be burned to a disc. And the CUE sheets include the newly created FLAC or Ogg files, so there's no need for manual editing to add them.

I've been using the script to save some space for DOS games that have CD audio.

I hope it will be helpful to at least someone:

https://github.com/linux4ever07/scripts/blob/ … ebin_extract.sh

* EDIT *

I just discovered someone else on this forum has made a similar tool. It works for Windows!

A New tool to encode CUE/BIN Audio easily
https://github.com/john32b/cbae

Reply 6 of 7, by Serious Callers Only

User metadata
Rank Member
Rank
Member

It's part of the cue format, a 'iso' is just a mode1/2048 track iirc. So there is nothing 'nonstandard' about it, except if the programs you're using are terrible. Mind you, the information/bytes lost by the iso format is not 'regained' or anything. It's just that information is rarely used for anything but error correction (unnecessary for digital formats) and old DRM schemes (that are not applicable to DOS).

You'll also see this transformation done often in game hacks of SEGA console games for some reason or other. Maybe because there are available programs to recreate a iso and not so many to recreate a bin after replacing/inserting files.

Using flac for audio is more unusual but that's just because a lot of cue/bin handling programs are too ancient and flac is a relatively not so old format.

Reply 7 of 7, by linux4ever07

User metadata
Rank Newbie
Rank
Newbie

I never implied you could regain data if it has been removed by a file already being saved in ISO format, but it IS lost if you have a BIN file ripped straight from the disc and you then convert that to an ISO. If you're interested in making copies of discs and be able to perfectly reproduce the layout of those discs later through burning, then ISO is not going to do it.

I know there's modes to use 2048 sector size for data tracks, but how many commercially released games that are in mixed mode have you seen that use that (2048) mode? I've seen none. That's why I said non-standard. Even though the format allows it, it's *never* used, except if the game doesn't use CD audio at all and it's all data.

About using FLAC as audio. Unless you use burning software that was made last century, it's able to decode the FLAC files to WAV on the fly in the process of burning, and they will be put on the disc as normal CD audio.