NAME

raw96cdconv - converts between different formats of CD raw images


SYNOPSIS

raw96cdconv-v ] [ -n ] [ -f ] [ -c | -r ] [ -S ] [ -C ext ] [ files ]


DESCRIPTION

raw96cdconv generates a raw file by extracting raw CD sectors (made up either of audio data or of raw data sectors) from a file made up of chunks containing both raw data and sub-channel data (RAW+96). By default .raw is appended to the given file names to obtain the corresponding generated file name. If no filenames are given on the command line, filenames will be read via standard input.

It is also possible to generate a file containing only sub-channel data or to re-generate the full RAW+96 file containing both the raw and the sub-channel data. The default extension for sub-channel files is .subch.

The sector size of raw data is 2352 bytes; the corresponding sub-channel data is 96 bytes long, so that the full RAW+96 file is made of chunks of 2448 bytes.

raw96cdconv also works with images containing only data sectors (2048 bytes long) and sub-channel data.


EXAMPLE

For example, to generate both a raw file image.raw and a sub-channel file image.subch:

        raw96cdconv image
        raw96cdconv -c image

To re-generate image from image.raw and image.subch:

        raw96cdconv -r image

To generate image.raw96 instead of image:

        raw96cdconv -R .raw96 -r image

To extract an iso image image.iso from image that contains both (error corrected) data sectors and sub-channel data:

        raw96cdconv --iso image

If image contains the image of a CDDA, it is more appropriate to extract to image.cdda:

        raw96cdconv -A .cdda image

To convert the extracted raw audio to WAV, you may use sox(1):

        sox -t .cdda image.cdda image.wav

To convert the extracted 2352b/s raw data to ISO, you may use ccd2iso(1):

        ccd2iso <image.raw >image.iso


OPTIONS

Options may be negated by prefixing them with "--no-" instead of "--".

-v, --verbose

Verbose: print the names of the files successfully generated as well as their number of sectors, print the names of the files completely skipped and at the end print the number of files that caused an error.

-n, --no-act

No Action: test the reading of files and show what files would have been generated.

-f, --force

Force: overwrite existing files.

-S, --swab

Swap byte: swap the byte order of the raw data; it works for both normal mode (raw data extraction) and full raw data mode. Use it with readcd(1) images that contain little endian audio data.

--sector-size

By default 2352, which corresponds to audio data (or to a raw sector of any data). Use 2048 for error corrected data sectors.

--iso

Same as `--raw .iso --sector-size 2048'.

-c, --subchan

Sub-channel mode: generate a file containing only sub-channel data from the RAW+96 data file.

-r, --fullraw

Full raw data mode: (re-)generate a RAW+96 file containing both raw and sub-channel data from the raw file and the sub-channel data file.

-D, --raw ext
-C, --subch ext
-R, --raw96 ext

Extension: file name extensions; the first one is for raw files (default: .raw); the second one is for sub-channel data files (default: .subch); the third one is for RAW+96 data files (default: empty extension).


ENVIRONMENT

No environment variables are used.


AUTHOR

G.raud <graud@gmx.com>


SEE ALSO

cdrdao(1), readcd(1), soxformat(7), ccd2iso(1)