Deleting the wiki page 'Home' cannot be undone. Continue?
A good reference about the metadata format is the corresponding Wikipedia article: https://en.wikipedia.org/wiki/NRG_(file_format).
The source code and comments of NRGrip also provide some information, of course.
Wikipedia again: https://en.wikipedia.org/wiki/Compact_Disc_Digital_Audio
Ressources:
Just for fun, it is possible to extract manually the audio data from an NRG image, after displaying its metadata with NRGrip. However, this will work only for standard 2352-byte sector size (no subchannel).
You will need to know:
The first audio byte (dd skip
):
daox.first_track.index1
(or index0
if you wish to include the pre-gap)
The last audio byte:
daox.last_track.end_of_track
The number of audio bytes (dd count
):
Last audio byte - First audio byte
To extract the raw audio data (substitute ${FIRST_AUDIO_BYTE}
and
${NB_AUDIO_BYTES}
with the numbers found above:
dd iflag=count_bytes,skip_bytes if=image.nrg of=image.raw \
bs=4M skip=${FIRST_AUDIO_BYTE} count=${NB_AUDIO_BYTES}
From Wikipedia:
2 * (number of tracks + 1)
: two indices for each track, an
index0 for the lead-in and an index1 for the lead-out.From this information and other observations:
How will multi-session CDs be handled? Is it worth implementing, since multi-session audio CDs must be very rare?
Deleting the wiki page 'Home' cannot be undone. Continue?