Skip to content

Instantly share code, notes, and snippets.

@viviparous
Last active December 29, 2021 17:14
Show Gist options
  • Save viviparous/fb3742f54e7338671fdd7df7fff3cf5f to your computer and use it in GitHub Desktop.
Save viviparous/fb3742f54e7338671fdd7df7fff3cf5f to your computer and use it in GitHub Desktop.
Rip entire audio CD to a single file ("bin" format), playable by mplayer. Good for classical music, jazz, and other music that is best listened to "whole".
Rip entire audio CD to a single file ("bin" format), playable by mplayer.
Good for classical music, jazz, and other music that is best listened to "whole".
On Linux: easy to do.
On M-Windows: takes time to *find* the binary tools or compile them yourself.
Tools to use:
dd
toc2cue (comes with cdrdao)
bchunk
cdrdao
mplayer
In the instructions below, parameters that you must supply are prefixed with ? (a question mark).
Insert the audio cd into the CD/DVD drive.
Determine the ID of the CD/DVD drive:
cdrdao disk-info
Read the output from the above command carefully.
Use cdrdao to create the BIN file:
cdrdao read-cd --device ?ID --read-raw --datafile ?NAME.bin ?NAME.toc.txt
Use dd to modify the BIN file (to enable mplayer to play it):
dd conv=swab if=?FILE.bin of=?NEWFILE.bin
Use mplayer to play the BIN file:
mplayer -demuxer rawaudio ?NEWFILE.bin
============================
OTHER THINGS THAT YOU CAN DO
============================
Use cdrdao to burn the BIN:
cdrdao write --device ?ID --swap ?TOCfile
Convert the TOC to a CUE:
toc2cue ?TOCfile ?CUEfile
Use bchunk to rip the BIN to WAV (-w):
bchunk -v -w BINfile CUEfile BASENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment