NRG (file format)

NRG (file format)

A .nrg file is a proprietary CD image file format used by Nero Burning ROM, a utility suite made by Nero AG, to create and burn ISO 9660 CD images.

Other than Nero Burning ROM, a variety of software titles can use these image files. For example, Power ISO, Alcohol 120%, or Daemon Tools can mount NRG files onto virtual drives for reading.

Contrary to popular belief, .nrg files are not ISO images with .nrg extension and a header attached. For technical details on the nrg format, see below.

Contents

Converting nrg files

There are several tools available to convert a .nrg data file into an ISO 9660 CD image.

  • Free but not Open Source tools include:
    • nrg2iso — Windows freeware.
    • nrgtoiso — Windows freeware. Converts a Nero NRG file (CD Image) to a standard ISO CD Image file.
  • Open Source command line tools include:
    • nrg2iso — cross-platform. hardcoded to read all nrg files as disc at once (DAO) type causing it to fail on track at once (TAO) type images.
    • iat — cross-platform. Tool for detecting the structure of many types of CD/DVD image and convert image CD/DVD to ISO9660
    • fusenrg — for Unix-like systems. Hardcoded to read all nrg files as disc at once (DAO)
    • nrg4iso — (project abandoned by author - last updated Oct 2007) for Unix-like systems (including Mac OS X). Can convert both DAO and TAO images into ISO 9660 CD images.
    • eNeRGy — MacOs X, based on nrg4iso, has a graphical user interface
  • Shareware tools include:
    • PowerISO — converts from nrg to ISO as well as allows for browsing and extracting individual files from a nrg data file.

The data contents of NRG files can be extracted directly without creating an ISO image using freeware file archivers such as IZArc.

File format

The file format specification below is unofficial and as such is lacking some data. There may also be errors.

The nrg file format uses a variation of the Interchange File Format (IFF) and stores data in a chain of "chunks". All integer values are stored unsigned in big endian byte order. Version 1 nrg format stores values as 32bit integers. Nero Burning ROM v5.5 introduced a new nrg file format, version 2, with support for 64bit integers.

Header

The nrg format does not store its data as a header at the beginning of a file. It is instead attached at the end of the file like a footer. Image information is stored as a serialized chain of IFF chunks. To get the offset of the first chunk one must read the nrg footer from the last 8 or 12 bytes of the file.

Nero footer (Version 1)
Size (bytes) Type Value / Purpose
4 Chunk ID "NERO"
4 32bit Offset of the first chunk data chain
Nero footer (Version 2)
Size (bytes) Type Value / Purpose
4 Chunk ID "NER5"
8 64bit Offset of the first chunk data chain

Chunks

(CUES) Cue Sheet

Available in all versions of nrg file format.

Cue sheet information. Not yet documented

Version 1
Size (bytes) Type Value / Purpose
4 Chunk ID "CUES"
4 32bit Chunk size (bytes)
Version 2
Size (bytes) Type Value / Purpose
4 Chunk ID "CUEX"
4 32bit Chunk size (bytes)

(DAOI) DAO Information

Available in all versions of nrg file format.

DAOI chunks store disc at once sessions specific information in two parts. The first part contains data that is specific for the session only. The second part repeats track specific information (grey) once for each track. Parse the SINF chunks to get the number of tracks for a specific session.

Version 1
Size (bytes) Type Value / Purpose
4 Chunk ID "DAOI"
4 32bit Chunk size (bytes) big endian
4 32bit Chunk size (bytes) little endian
14   UPC
4 32bit Toc type
1 8bit First track
1 8bit Last track
12   ISRC Code
4 32bit Sector size
4 32bit Mode
4 32bit Index0 (Pre gap)
4 32bit Index1 (Start of track)
4 32bit Index2 (End of track + 1)
Version 2
Size (bytes) Type Value / Purpose
4 Chunk ID "DAOX"
4 32bit Chunk size (bytes) big endian
4 32bit Chunk size (bytes) little endian
14   UPC
4 32bit Toc type
1 8bit First track
1 8bit Last track
8   ISRC Code
4 32bit Sector size
4 32bit Mode
8 64bit Index0 (Pre gap)
8 64bit Index1 (Start of track)
8 64bit Index2 (End of track + 1)
2   Unknown

(CDTX) CD-text

Available in version 2 nrg file format.

CDTX chunks contain raw CD-text data.

Version 2
Size (bytes) Type Value / Purpose
4 Chunk ID "CDTX"
4 32bit Chunk size (bytes)
18 CD-text pack  

(ETNF) Extended Track Information

Available in all versions of nrg file format.

ETNF chunks are used to store track information for track at once sessions. The data is repeated once for each track. Parse the SINF chunks to get the number of tracks for a specific session.

Version 1
Size (bytes) Type Value / Purpose
4 Chunk ID "ETNF"
4 32bit Chunk size (bytes)
4 32bit Track offset in image
4 32bit Track length (bytes)
4 32bit Mode
4 32bit Start lba on disc
4    ?
Version 2
Size (bytes) Type Value / Purpose
4 Chunk ID "ETN2"
4 32bit Chunk size (bytes)
8 64bit Track offset in image
8 64bit Track length (bytes)
4 32bit Mode
4 32bit Start lba on disc
4    ?

(SINF) Session Information

Available in all versions of nrg file format.

Session information chunks should be used to quickly scan the image for session and track count. SINF chunks are always listed in sequential order corresponding to the sessions order. To get more details information about a specific session one must parse the corresponding DAOI or ETNF chunk.

Version 1 and 2
Size (bytes) Type Value / Purpose
4 Chunk ID "SINF"
4 32bit Chunk size (bytes)
4 32bit # tracks in session

(MTYP) Media Type?

Available in all versions of nrg file format.

This chunk and its use is unknown.

Version 1 and 2
Size (bytes) Type Value / Purpose
4 Chunk ID "MTYP"
4 32bit Chunk size (bytes)
4    ?

(END!) End of chain

Available in all versions of nrg file format.

End of chain chunk is signals that there are no more chunks to be read.

Version 1 and 2
Size (bytes) Type Value / Purpose
4 Chunk ID "END!"
4 32bit Always zero

See also

Emulating/editing software supporting NRG

External links

  • nrg4iso — BSD licensed command line utility. Does not fully support nrg format. Currently abandoned. (POSIX)
  • nrg2iso — GPL licensed command line utility. Does not fully support nrg format. (Linux)
  • IAT — GPL licensed command line utility without support for CD-AUDIO
  • fusenrg — GPL licensed command line utility. Converts NRG to ISO on the fly. Does not fully support nrg format. (Linux)
  • nrg2iso — Windows graphical utility. Does not fully support nrg format. (Windows)
  • IMGBURN — Windows Freeware ISO burning software capable of managing the nrg format.
  • eNeRGy' — GPL MacOs X utility, based on nrg4iso, has a graphical user interface
  • nrgtoiso — Windows Freeware graphical utility. Converts nrg format to iso format.

Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • NRG — may refer to: In various electronic music genres and band names, NRG is an abbreviation for energy Hi NRG, an early evolution of new style disco Hard NRG, a hard form of dance music NU NRG, two Italian DJs NRG (group), a Korean music group NRG… …   Wikipedia

  • List of file formats — This is an incomplete list, which may never be able to satisfy particular standards for completeness. You can help by expanding it with reliably sourced entries. See also: List of file formats (alphabetical) This is a list of file formats… …   Wikipedia

  • MDS file — MDS Filename extension .mds Magic number MEDIA DESCRIPTOR An MDS file is an optional media descriptor file that can be generated when creating a disc image from a CD or DVD. The format is a binary file with the magic number MEDIA DESCRIPTOR… …   Wikipedia

  • Windows Imaging Format — Формат файла WIM Расширение .wim .swm .rwm Разработан Microsoft Тип формата Расширение имени файла Windows Imaging Format (WIM)  это файл ориентированный формат образа диска. Формат был разработан компанией Microsoft для развертывания… …   Википедия

  • Nero Burning ROM — Developer(s) Nero AG Initial release 1997; 13 years ago (1997) …   Wikipedia

  • ISO image — Infobox file format name = ISO image icon = caption = extension = .iso mime = type code = uniform type = public.iso image magic = owner = genre = Disk image container for = contained by = extended from = extended to = standard = ISO 9660An ISO… …   Wikipedia

  • Liste d'extensions de fichiers — Sommaire 1 A 2 B 3 C 4 D 5 E 6 …   Wikipédia en Français

  • Formats (extensions) de fichiers — Liste d extensions de fichiers Sommaire 1 A 2 B 3 C 4 D 5 E …   Wikipédia en Français

  • Liste D'extensions De Fichiers — Sommaire 1 A 2 B 3 C 4 D 5 E …   Wikipédia en Français

  • Liste d'extentions de fichiers — Liste d extensions de fichiers Sommaire 1 A 2 B 3 C 4 D 5 E …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”