1 (edited by sarami 2017-04-01 11:11:45)

To pablogm123
I created the tool that it created a wav file from multiple bin (redump.org format).
Please test.

Repository
https://github.com/saramibreak/bin2wav
20170401
https://github.com/saramibreak/bin2wav/releases
20140516
http://www.mediafire.com/download/h89m2ut0b7x3am6/

Tested.

Tracks are 2352 bytes smaller than expected.

http://redump.org/disc/21535/

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):

http://i.imgur.com/v0PP9wp.png

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:

http://i.imgur.com/ZxFVITO.png

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.

On semi-vacation. MSF/AMSF to LBA/offset and viceversa calculator: link
To write properly occidental characters contained in japanese titles: screenshot
Spaces must be the fullwidth variant: link / screenshot

Thanks. Fixed reading size.

Never was so easy to split properly into individual tracks and indexes a bin/cue image.

http://i.imgur.com/xKXzfn2.png

http://i.imgur.com/cDSKu9k.png

http://i.imgur.com/ezWnQQP.png

http://i.imgur.com/GVCI4UW.png

http://i.imgur.com/j0MVTEH.png

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.

http://i.imgur.com/M4HVMNI.png

Ordered by LBAs.

http://i.imgur.com/MPLnKRt.png

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.

http://i.imgur.com/68lGLTg.png

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.

http://i.imgur.com/0YvnoTq.png

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.

http://i.imgur.com/WiAUdQF.png

On semi-vacation. MSF/AMSF to LBA/offset and viceversa calculator: link
To write properly occidental characters contained in japanese titles: screenshot
Spaces must be the fullwidth variant: link / screenshot

http://i.imgur.com/lyxXfB0.png

Same results than PR appending gaps to none and ripping to wav.

http://i.imgur.com/gjfx1nG.png

On semi-vacation. MSF/AMSF to LBA/offset and viceversa calculator: link
To write properly occidental characters contained in japanese titles: screenshot
Spaces must be the fullwidth variant: link / screenshot

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...

=====

http://redump.org/disc/20028/
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):

http://i.imgur.com/0HUKEhp.png

=====

http://redump.org/disc/29920/
DA files too:

http://i.imgur.com/oHSF1n6.png

=====

http://redump.org/disc/1741/
Extracted via PR and appending gaps to none:

http://i.imgur.com/NdXHre8.png

=====

http://redump.org/disc/25923/
Same method than the used for Heavy Nova.

http://i.imgur.com/FDyIkOp.png

=====

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.

On semi-vacation. MSF/AMSF to LBA/offset and viceversa calculator: link
To write properly occidental characters contained in japanese titles: screenshot
Spaces must be the fullwidth variant: link / screenshot

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.

http://redump.org/discs/sort/system/dumper/nitro322/

?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.