I created the tool that it created a wav file from multiple bin (redump.org format).
1 (edited by sarami 2017-04-01 11:11:45)
Tracks are 2352 bytes smaller than expected.
Every gap of this disc contain 150 sectors, so expected size of the created wav file is 352800 bytes (raw audio) + 44 bytes (RIFF header):
And to put an example, compared against the rip I made one year ago using EAC (I don't have this program installed anymore) and gaps excluded:
For example, according to the DB track size of track 5 (actually named Summer Day 1 according to the filenames of files linked to audio tracks) is 43314432. 43314432 bytes - 352800 bytes (due to excluded pregap) + 44 bytes (due to the RIFF header) = 42961676 bytes. EAC one's has the right size.
Never was so easy to split properly into individual tracks and indexes a bin/cue image.
To test my favourite PS1 soundtrack, Racingroovy／ レーシングルーヴィー。Variety of styles in the racing themes and likely one of the best menu themes I have ever listened. Composed/produced by Satoru Wono, just in case that someone is interested in tagging properly these tracks (names of tracks 06-13 [racing themes], including these ones, are official, they are in the booklet and in the juke box of the game).
.DA files, which are actually linked to audio tracks. Windows adds automatically the RIFF header (and due to this are actually .wav files once renamed to *.wav) when you copy these ones as normal files from the physical CD/virtual drive once mounted the image via the file manager of Windows. Of course, the best option is from a virtual drive mounting the redump image, because copied files will be offset corrected, it's impossible that there are C2 errors and it's much faster.
Ordered by LBAs.
Splitted .wav files compared against the ones which were extracted a time ago via mounting the image into a virtual drive and copying these .DA files as normal files. Then renamed, tagged and whatnot. Fully success! DA files don't include pregap (length of audio is dictated by the ISO9660 file linked to the audio track, without including pregap) and therefore match the .wav files created.
To test this deeply, I have converted the .wav files to headerless files by removing the first 44 bytes and renaming to .raw.
All pregaps of this disc include only digital silence and hashes are the expected ones for a file filled with 352800 bytes of zeroes.
Last test: prepend 352800 bytes of zeroes to the indexes 1 of tracks, to restore the missing pregaps. As expected, now they match the original .bins, thus .wav files have the right size, they are properly aligned and no audio data was lost.
Finally I attached a secondary bootable HDD to install Daemon Tools and do the final tests, because in my main OS I don't want Daemon Tools, CloneCD and another programs which install filter drivers even if given for free an authentic license for the full version...
DA files in the file system linked to the audio tracks copied via the OS file manager, except the last one (dummy audio track with digital silence):
DA files too:
Extracted via PR and appending gaps to none:
Same method than the used for Heavy Nova.
So it seems to work very properly, no more exotic methods to get rid of the damn gaps I don't want in my redbook rips.
Hi, sarami. Thanks for this. I discovered your program a while back and used it to convert a good many of my rips to WAV so I could further compress them with flac. Works great, but I just picked up a MiSTer that I'm trying to get configured for Sega CD and Turbografix-CD support and ran into a problem... my FLAC-based backups that work so well in a full PC environment don't work quite as well on MiSTer. :-(
Since you're doing a lossless conversion of the audio data here from "bin" to WAV format, is it possible to reverse that to convert WAV back to bin? Seems like it should be doable, but of course I have no idea how much work would be involved.
Have you given something like this any thought? Seems like it'd be a useful feature even regardless of MiSTer support, as it'd provide an easy way to convert a rip back to its original format for verification against redump's DAT files. Otherwise, I'd have to re-rip all of my games, which I'd prefer not to do if possible.
Would appreciate if you could at least share some feedback on this, whether it seems feasible or not. Thanks!
8 (edited by wiggy2k 2019-12-23 03:41:29)
bin = wav just without the wave header.
?none of your dumps have audio tracks, i'd say redump all the discs you are talking about and add them as verifications anyway.
@nitro322 You also have to add the pregap since sarami's tool removes it. I always keep both the bins for mounting and flacs for easy consumption. I suggest to do the same.