The broadcast extension chunk comes from the Broadcast Wave Format, 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. An RF64 file can carry it just as an ordinary WAV file does. Wikipedia’s RF64 article calls such a file MBWF, multichannel BWF, after EBU R111-2007; that name is not confirmed beyond it.
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 |
| 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: the universal label (bytes 0 to 11), the length (byte 12: 0x13 for a
basic UMID, 0x33 for an extended one), the instance number (13 to 15), the
material number (16 to 31) and, for an extended UMID, the source pack (32 to 63). It
reports a UMID in a version 0 chunk, where those bytes are reserved, and one whose length
byte is neither value.
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. The fields
agree with ffprobe on 117 fields of 25 files (see the
RIFF page).
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.
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.
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. 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: the variables come
in the order A= coding algorithm (ANALOGUE, PCM,
MPEG1L1 to MPEG1L3, MPEG2L1 to MPEG2L3),
F= sampling frequency in Hz (11000, 22050, 24000, 32000, 44100, 48000),
B= bit rate in kbit/s for each channel (MPEG only), W= word length
in bits (8, 12, 14, 16, 18, 20, 22, 24), M= mode (mono,
stereo, dual-mono, joint-stereo) and T=
free ASCII text with no commas, separated by commas. The explorer takes each row apart,
reports departures from this, and names variables R98 does not define (Sound Devices
writes R=).