The broadcast extension chunk makes a WAV file a Broadcast Wave Format file, the European Broadcasting Union’s standard for exchanging audio in radio and television (EBU Tech 3285). It records who made the audio, when, where it sits in time and how loud it is. It was the most common optional chunk in the files examined for this site, in about one in five of them.
Fields
Text fields are ASCII, padded with NULs. Offsets are from the start of the chunk’s data, and numbers are little-endian. The fixed part is 602 bytes, the minimum size libsndfile accepts; the explorer reports a shorter chunk.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 256 | char[256] | Description | a free text description of the audio |
| 256 | 32 | char[32] | Originator | the organisation or person that made it, often the software |
| 288 | 32 | char[32] | OriginatorReference | a unique reference given by the originator; EBU R 99 lays it out as country code (2), organisation code (3), recorder serial (12), origination time HHMMSS (6) and a random number (9), which fills the 32 bytes exactly (Ardour writes it that way, and uses ZZ for an unregistered country and --- for an unknown organisation) |
| 320 | 10 | char[10] | OriginationDate | the date, as yyyy-mm-dd |
| 330 | 8 | char[8] | OriginationTime | the time, as hh-mm-ss |
| 338 | 4 | u32 | TimeReferenceLow | the low 32 bits of the time reference |
| 342 | 4 | u32 | TimeReferenceHigh | the high 32 bits |
| 346 | 2 | u16 | Version | 0, 1 or 2 |
| 348 | 64 | bytes | UMID | a SMPTE unique material identifier, from version 1; zeros in version 0 |
| 412 | 2 | i16 | LoudnessValue | integrated loudness in LUFS × 100, version 2 |
| 414 | 2 | i16 | LoudnessRange | loudness range in LU × 100, version 2 |
| 416 | 2 | i16 | MaxTruePeakLevel | maximum true peak in dBTP × 100, version 2 |
| 418 | 2 | i16 | MaxMomentaryLoudness | highest momentary loudness in LUFS × 100, version 2 |
| 420 | 2 | i16 | MaxShortTermLoudness | highest short-term loudness in LUFS × 100, version 2 |
| 422 | 180 | bytes | Reserved | zeros |
| 602 | varies | char[] | CodingHistory | lines of text recording each step the audio went through |
Each loudness value is a signed 16-bit integer, the measure multiplied by 100 and rounded
to the nearest, ties away from zero, so units are hundredths of LU (for the range) or of
LUFS and dBTP: −2300 is −23.00 LUFS. A parameter that is not used is set to
0x7FFF. The valid range is −99.99 to 99.99 (0xD8F1 to
0x270F), and 0.00 to 99.99 for LoudnessRange; a value outside it is
to be ignored, as is 0x7FFF (Tech 3285 v2, section 2.4). The explorer leaves
such values out of its table, and reports one that is outside the range.
UMID
The 64 bytes hold a SMPTE ST 330 unique material identifier. A basic UMID is 32 bytes and is followed by 32 zero bytes; an extended UMID fills all 64. The explorer splits it into its parts:
| Bytes | Part |
|---|---|
| 0 to 11 | the universal label |
| 12 | the length: 0x13 for a basic UMID, 0x33 for an extended one |
| 13 to 15 | the instance number |
| 16 to 31 | the material number |
| 32 to 63 | the source pack of an extended UMID: time, place and author |
The explorer reports a UMID in a version 0 chunk, where those bytes are reserved, and one
whose length byte is neither value. Two Nuendo files seen have a version 2 chunk whose first
16 bytes are not a SMPTE label (the length byte is 0x06 in one and
0x3B in the other, and the 16 bytes after those 16 are zero), so they look like a
random 16-byte ID rather than a UMID.
What the explorer checks
Reserved bytes that are not zero; loudness bytes that are not zero in a chunk of version 0
or 1; a version above 2; text that is not printable ASCII (Tech 3285 says ASCII; EBU Tech
3306 defines ubxt for UTF-8); a date or time that is not in the form of the
specification; and each row of the coding history against EBU R98, below.
It compared the fields with ffprobe, which reads the same chunk as format tags
(comment for the description, encoded_by for the originator,
originator_reference, date, creation_time,
time_reference and coding_history), on 117 fields of 25 files:
six built from the specifications’ examples, and 19 from public test sets (Pro Tools, Nuendo,
Pyramix, Sound Devices, Zoom and others, and cartchunk.org’s sample file). All 117 agree. ffprobe does not read the
UMID or the loudness values.
Versions
| Version | Year | Change |
|---|---|---|
| 0 | 1997 | the first Broadcast Wave Format, with 254 reserved bytes after Version |
| 1 | 2001 | the first 64 of the reserved bytes become the UMID |
| 2 | 2011 | the next 10 become the loudness values, measured as EBU R 128 sets out |
Each version only takes over reserved bytes, so a reader of one version reads the others; version 2 is meant to stay compatible with 0 and 1. Apple’s own system sounds, made with Logic, carry version 1.
Date and time
OriginationDate is ten characters, yyyy-mm-dd, and
OriginationTime eight, hh-mm-ss. Tech 3285 recommends the
separators hyphen, underscore, colon, space and full stop; the explorer accepts any
character that is not a digit, and reports a field that is not in that form.
Pro Tools writes them correctly, such as 2018-04-12 and
14:47:54. Logic Pro X, in the files seen, writes each one with a NUL at the
end inside its fixed field, so the last character is lost (2023-01-0,
14:02:1), and leaves stray memory contents in unused bytes.
Time reference
The time reference places the recording on a clock: it is the position of the first sample, counted in samples since midnight. Divide it by the sample rate to get seconds. Editors use it to line up files recorded at the same time on different machines. The two 32-bit halves, low then high, read together as one little-endian 64-bit number.
For example, 172,992,000 samples at 48,000 Hz is 3,604 seconds: the file starts at 01:00:04, as it would from a Logic session that starts at 1:00:00:00 timecode. The explorer shows the time this way.
Coding history
Each line of CodingHistory describes one stage, as comma-separated
values such as the coding algorithm (A=PCM), the sample rate
(F=48000), the word length (W=24) and the mode
(M=stereo), ending in a carriage return and line feed. It runs to the end
of the chunk. The syntax is EBU Technical Recommendation R98-1999: a new row is added
whenever the coding changes, and the variables come in this order, separated by commas.
| Variable | Meaning | Allowed options | Unit |
|---|---|---|---|
A= | coding algorithm | ANALOGUE, PCM, MPEG1L1, MPEG1L2, MPEG1L3, MPEG2L1, MPEG2L2, MPEG2L3 | |
F= | sampling frequency | 11000, 22050, 24000, 32000, 44100, 48000 | Hz |
B= | bit rate, only for MPEG coding | any bit rate MPEG-2 (ISO/IEC 13818-3) allows | kbit/s for each channel |
W= | word length; for MPEG, that of the PCM fed to the coder | 8, 12, 14, 16, 18, 20, 22, 24 | bits |
M= | mode | mono, stereo, dual-mono, joint-stereo | |
T= | a free ASCII string for in-house use, with no commas (ID number, coder type, A/D type) | any |
R98’s second example, digitising an analogue tape, is
A=ANALOGUE,M=stereo,T=StuderA816; SN1007; 38; Agfa_PER528, then
A=PCM,F=48000,W=18,M=stereo,T=NVision; NV1000; A/D, then
A=PCM,F=48000,W=16,M=stereo,T=PCX9;DIO,, each row ending CR LF (the trailing comma
before it is in R98’s examples). The explorer takes each row apart into these variables, and
reports a row that does not start with A=, has an option R98 does not list, puts
B= on a coding other than MPEG, has a comma in T=, puts variables out of
order, or ends in a bare LF or CR. It also names variables R98 does not define: Sound Devices
recorders write R=48000 after M= (seen in two of the test files), and
these are reported as not being R98 variables rather than read into the mode.