Author Topic: CD rip in Linux  (Read 250 times)

megatron-uk

  • Full Member
  • ***
  • Posts: 219
CD rip in Linux
« on: January 31, 2014, 10:34:29 PM »
Is anyone using an equivalent to TurboRip in Linux?

I haven't got access to a windows machine (well, apart from work - but I don't think they'd take to kindly to me bringing in stacks of cd's to rip) in order to run Turborip.

I'm running cdrdao to see if that will work as well, but should I run the resulting bin/cue pair through something to fix up any pregap problems?

megatron-uk

  • Full Member
  • ***
  • Posts: 219
Re: CD rip in Linux
« Reply #1 on: January 31, 2014, 10:52:35 PM »
Well I just ripped my new Blood Gear cd using:

Code: [Select]
cdrdao read-cd --datafile image.bin --driver generic-mmc:0x20000 --device /dev/sr0 --read-raw image.toc
It plays fine in Mednafen, however the cue file doesn't match that found on Necstasy. I believe if I was to write it back to a cdr it would probably have music errors on my Duo.

Code: [Select]
FILE "image.bin" BINARY
  TRACK 01 AUDIO
    INDEX 01 00:00:00
  TRACK 02 MODE1/2352
    PREGAP 00:02:00
    INDEX 01 00:45:65
  TRACK 03 AUDIO
    PREGAP 00:02:00
    INDEX 01 02:36:52
  TRACK 04 AUDIO
    INDEX 01 03:54:29
  TRACK 05 AUDIO
    INDEX 01 05:56:42
  TRACK 06 AUDIO
    INDEX 01 06:45:47
  TRACK 07 AUDIO
    INDEX 01 06:55:39
  TRACK 08 AUDIO
    INDEX 01 09:48:25
  TRACK 09 AUDIO
    INDEX 01 10:10:19
  TRACK 10 AUDIO
    INDEX 01 10:49:57
  TRACK 11 AUDIO
    INDEX 01 10:58:54
  TRACK 12 AUDIO
    INDEX 01 11:48:61
  TRACK 13 AUDIO
    INDEX 01 12:09:33
  TRACK 14 AUDIO
    INDEX 01 12:30:10
  TRACK 15 AUDIO
    INDEX 01 12:35:21
  TRACK 16 AUDIO
    INDEX 01 13:07:44
  TRACK 17 AUDIO
    INDEX 01 13:47:23
  TRACK 18 AUDIO
    INDEX 01 14:33:69
  TRACK 19 AUDIO
    INDEX 01 15:12:23
  TRACK 20 AUDIO
    INDEX 01 15:16:24
  TRACK 21 AUDIO
    INDEX 01 15:25:27
  TRACK 22 AUDIO
    INDEX 01 15:41:59
  TRACK 23 AUDIO
    INDEX 01 15:55:41
  TRACK 24 AUDIO
    INDEX 01 16:30:31
  TRACK 25 AUDIO
    INDEX 01 17:01:05
  TRACK 26 AUDIO
    INDEX 01 17:41:39
  TRACK 27 AUDIO
    INDEX 01 17:46:22
  TRACK 28 AUDIO
    INDEX 01 18:12:59
  TRACK 29 AUDIO
    INDEX 01 18:23:34
  TRACK 30 AUDIO
    INDEX 01 19:30:58
  TRACK 31 AUDIO
    INDEX 01 19:40:11
  TRACK 32 AUDIO
    INDEX 01 20:07:41
  TRACK 33 AUDIO
    INDEX 01 20:11:42
  TRACK 34 AUDIO
    INDEX 01 20:20:14
  TRACK 35 AUDIO
    INDEX 01 20:28:13
  TRACK 36 AUDIO
    INDEX 01 21:26:31
  TRACK 37 AUDIO
    INDEX 01 21:30:32
  TRACK 38 AUDIO
    INDEX 01 21:41:33
  TRACK 39 AUDIO
    INDEX 01 21:54:02
  TRACK 40 AUDIO
    INDEX 01 22:46:49
  TRACK 41 AUDIO
    INDEX 01 23:07:27
  TRACK 42 AUDIO
    INDEX 01 23:40:54
  TRACK 43 AUDIO
    INDEX 01 23:54:06
  TRACK 44 AUDIO
    INDEX 01 25:26:18
  TRACK 45 MODE1/2352
    PREGAP 00:02:00
    INDEX 01 27:55:05

Any ideas?

NightWolve

  • Hero Member
  • *****
  • Posts: 5277
Re: CD rip in Linux
« Reply #2 on: January 31, 2014, 11:18:44 PM »
Yeah, it is a 3 second pregap on most NEC discs when it comes to transitioning from an audio track to a data track, but it's a special kind of gap, some sectors marked as audio, some as data, etc. Whatever the reason, that program failed to detect that properly. It could still burn a working CD-R with proper offsets though. The offsets for every track were taken from the original CD's TOC, and that's not how hard to read or process, so I don't think it failed there.

The thing about TurboRip is it that I created it in preparation for dubbing Ys IV (or anything else) and to make it easier to patch CD games in general (Xak III included). I had 2 CD RPG games that I fan-translated and I needed something just like it to rip them in a certain way, track by track, to ultimately produce an ISO/WAV/CUE image file set and to do it correctly. Got tired of all the problems in patching with BIN/CUE rips and I had the motivation in '06 to do this. Anyway, you don't need the images in ISO/WAV/CUE form per se, unless you wanna say archive them with a lossless encoder like APE for backup purposes.

To the point, what is your goal here ? If it's just to rip discs to run them from an emulator for speed, and you're stuck on Linux, then you don't need TurboRip. Something that can rip them to BIN/CUE would be just fine. This cdrdao program is not quite working correctly, but I think the game will load and play just fine. I just wouldn't rely on that image as a backup should your original get damaged or something though.

megatron-uk

  • Full Member
  • ***
  • Posts: 219
Re: CD rip in Linux
« Reply #3 on: February 01, 2014, 05:00:44 AM »
Thanks for the info - there are a few reasons I would like to be able to do it accurately:

Play games on my computer - I don't always have my consoles set up (my wife starts giving me 'the look' when my gaming stuff begins to creep back out of its boxes! :lol: ).
Be able to write them back to CDR if my originals get damaged.
Image games accurately in the event I ever want to try my hand at translating any.

I can see that my current imaging method works find for the first requirement and from what you say, it should be ok for the second. However, if I ever need to do any work on a proper image (apply a patch or create one!) it seems like it's not quite good enough. I'll need to do some investigating to see if I can get anything else working.