NAME

nrgtool - reads and converts/splits Nero CD images (.nrg)


SYNOPSIS

nrgtool -h

nrgtool-v ] [ -n ] [ -f ] [ -1 ] nrgcmd args ]


DESCRIPTION

nrgtool processes one NRG CD image file. It finds and parses the IFF footer, which contains the metadata; then it prints information or extracts some data.

A track at position 0 is the lead-in of the session. Tracks of DAO sessions are split at index 1 points.


EXAMPLES

To view the result of the parsing:

        nrgtool -v image.nrg | less

To show the debugging output of the parsing:

        nrgtool -vv image.nrg nop

To view a hexdump of the CD-text chunk:

        nrgtool image.nrg hexdump cdtx | less

To list the tracks:

        nrgtool image.nrg list

To extract all the audio tracks of image.nrg to image-XX.cdda:

        nrgtool -v -e .nrg -t '-%n%02d.cdda' image track 1

To extract a data disc to an iso file image.nrg.iso:

        nrgtool -v -t .iso image.nrg track 1 1

If a track contains sub-channel data, you may extract the audio/data with one of the following commands:

        raw96cdconv -v image.nrg.s01-t16
        raw96cdconv -v --iso image.nrg.s01-t01
        raw96cdconv -v --sector-size 2336 image.nrg.s01-t01

An audio track may be converted to WAV by sox(1):

        sox -t .cdda -L image.nrg.s01-t16 image-16.wav


COMMANDS

The default command is "info".

help
infochunk_types ]

Print the chunks' structure resulting of the parsing of the IFF. Enbale verbose mode to view the fields' values.

hexdumpchunk_types ]
nop

Only parse the IFF.

listsession [ track_pos ] ]

List the tracks. In verbose mode, give some track attributes.

tracksession [ track_pos ] ]

Extract the track (raw) data to file(s).

iff

Extract the IFF header to a file.

types

List the known chunk types.


OPTIONS

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

-h, --help
-v, --verbose

Verbose: print some or more information, depending on the command.

If it is given twice, also print debugging information, notably during the parsing.

-n, --no-act

No Action: test the reading of files but do not write any files.

-f, --force

Force: overwrite existing files.

-1, --nrgv1

NRG Version: Treat the file as a first version (prior to Nero 5.5) NRG; the default is to treat the file as a version 2 (Nero 5.5 and later). Unimplemented.

-e, --extension ext

NRG extension: appended to the given file name to obtain the NRG file name; this way the generated files' names can be controlled somewhat.

-t, --track-ext ext_fmt

Track Extension: printf format template for the file name extensions of the tracks; the first argument to printf is the session number, the second the track number, the third the session number; the default is ".s%02d-t%02d".

-i, --iff-ext ext

IFF Extension: file name extension of the IFF.


ENVIRONMENT

No environment variables are used.


BUGS

nrgtool has been tested with images created by Nerolinux 4.0 only. Any resulting incompatibilties with other versions of Nero may be reported to the author.

The NRG version 1 format is not supported because of the lack of sample image files.

If you can reconstruct the same NRG from the extracted files, most probably nrgtool can handle the particular image:

        nrgtool image.nrg iff
        nrgtool image.nrg track
        cat image.nrg.s??-t?? image.nrg.iff >image.nrg.nrgtool
        cmp image.nrg image.nrg.nrgtool && echo "nrgtool can extract all the data"


AUTHOR

G.raud <graud@gmx.com>


SEE ALSO

nero(1), raw96cdconv(1), sox(1)