What Sets a Broadcast Wave Clip’s Start Time?

An audio editor can draw the same waveform at the left edge of a clip preview or farther along a ruler that starts at midnight. Broadcast Wave Format (BWF) gives the editor a way to place the clip on the second ruler: the file stores a count from midnight to the first measurement of the signal, or sample, and the sample rate (samples per second) tells the editor how much time that count represents.

A dark foam-covered field recorder points towards ochre reeds beside a grey river.

The left edge of the waveform answers a question about the recording itself: where does this piece of sound begin? The mark above that edge can answer a different question about a day-long timeline: how much time had passed before the first sample? In the European Broadcasting Union’s specification, the audio that gives the waveform its shape and the information needed to place it occupy separate parts of the file.

Where does the first sample get its position?

The European Broadcasting Union (EBU) puts the starting count in a field called TimeReference, inside the Broadcast Audio Extension. A field is a place reserved for a particular piece of information. The extension is a chunk, the specification’s term for a block with an identifier, a size and some contents. A reader looking for the starting count goes to that block; it does not have to search the sound for a marker.

Of TimeReference, the European Broadcasting Union states: "It is a 64-bit value which contains the first sample count since midnight." The specification shows the count in a low part and a high part, labelled TimeReferenceLow and TimeReferenceHigh. They are parts of the same value. There is no separate start position for the beginning and end of the waveform in those fields.

Midnight supplies the reference point. Suppose a recorder starts a clip after a long interval in which nothing was recorded. A count referenced to midnight can place the clip after that interval without the clip having to carry the preceding hours as audio. The file’s first stored sample can occupy a position well to the right of the ruler’s zero even when it occupies the very first position in the clip preview.

The Broadcast Wave Format specification describes these blocks separately because they serve different jobs. TimeReference locates the start of the sequence. The format chunk describes the audio representation, and the wave-data chunk carries the sound. That division matters when a display needs both a place to draw a clip and something to draw there.

How does a count become a time on the ruler?

The EBU specification puts nSamplesPerSec, the number of samples per second, in the WAVE format chunk. For the count to become a position in seconds on the midnight ruler, the reader divides the count by the rate. The result is an elapsed time from the reference point.

Suppose a file carries a rate of 48,000 samples per second and a starting count of 172,800,000 samples. Those hypothetical values illustrate the EBU’s relationship between count and rate: the result is 3,600 seconds after midnight, so a clock-style ruler could show 01:00:00. None of those clock digits needs to be stored as the TimeReference value. They are one way for a reader to express the result of the division.

Suppose the same count appeared with a lower sampling rate in a different clip. It would describe a later start, since each second accounts for fewer samples. Conversely, two clips recorded at different rates could begin at the same clock position with different stored counts. The scale of the ruler may be the same; the number of sample intervals in a second of each file need not be.

From Sample Count to Ruler Position
  • TimeReference Starting count measured from midnight
  • Sample rate Samples per second, read from the format chunk
  • Elapsed time Starting count divided by sample rate

The result places the beginning of the clip on a ruler referenced to midnight.

There is also a difference between start and duration. In the hypothetical clip, the count describes the distance from midnight to the opening sample. Even a brief sound could start at that position. Its duration concerns the samples the file carries after the start, so an hour on the ruler tells nothing about how long the clip plays.

The count also gives the reader finer placement than the example’s clock label shows. Suppose another clip at the same rate starts a single sample later. The change in the count corresponds to one sample interval, even if the two starts look identical on a ruler labelled only in whole seconds. At that scale, the clock digits are a coarse reading of the position, rather like the printed ticks on a ruler with a gap between them.

What supplies the shape inside the clip?

In the EBU specification, the WAVE data chunk contains the waveform data. For audio stored as pulse code modulation (PCM), the file represents the signal as a sequence of sample values. Their amplitudes give a waveform display something to plot vertically; their order gives the display a sequence to lay out horizontally. The starting count from midnight can move that plot along a ruler without specifying any of its peaks or dips.

The format chunk helps here too, for a different reason. The EBU explains that the WAVE format category governs how to interpret the waveform data. For PCM, the format also says how many bits of data represent each sample of each channel. The stored signal can therefore be read as a sequence of amplitudes with a known sample size, while the rate supplies the spacing in time. Only when the display is tying the clip to the midnight ruler does it need the separate starting count for that placement.

The EBU’s appendix gives the format chunk a place before the WAVE data chunk and lists both as mandatory. That order puts the description of the signal ahead of the values it describes. For a PCM reader, sample size determines how much space represents an individual value, while samples per second determines how quickly the values follow one another. A change in sample size alone would therefore leave the count-to-time conversion unchanged if the starting count and rate stayed fixed.

For a stereo PCM clip, the EBU describes left and right samples interleaved in the file: the samples for the channels occur together in sequence rather than as an uninterrupted run of left-channel data followed by a run of right-channel data. The specification gives the sampling rate for each channel. A timeline reader can use the same sample rate to express the clip’s starting position without counting every interleaved value as a new instant on the ruler.

Reading the Stored Signal
Wave data
The chunk that carries waveform data.
Amplitude
The signal value represented by a PCM sample.
Format category
The field that governs how the waveform data is interpreted.
Interleaving
The way PCM samples for separate channels sit together in the stored sequence.

In a small preview centred on the clip, an early peak can sit near the left edge of the visible layer. On a ruler referenced to midnight, the same peak would sit after the clip’s starting position by the same interval. Shifting the whole clip to its reference position changes the labels beneath the sound without changing the spacing between the beginning and that peak.

What can a WAVE reader leave out of the view?

The EBU describes BWF as an extension of Microsoft’s Waveform Audio File Format (WAVE). The underlying WAVE rules say that readers must expect and ignore chunks they do not recognise. A WAVE reader that understands the audio format but does not recognise the Broadcast Audio Extension has the information needed to read the sound without using the count that places its first sample after midnight.

The EBU makes a further distinction for private chunks, blocks outside the specifications it lists. A BWF-compliant application has to pass those blocks on even though the specification does not require the application to interpret them. This rule concerns private chunks, not the standard Broadcast Audio Extension. It shows why the question of what a programme displays is narrower than the question of what information is available in the file it reads.

That distinction puts a limit on what a successful preview can establish. In the hypothetical file, a clip-relative display could start at zero even though a reader using TimeReference could put the same clip at one hour after midnight. The zero in the first view labels the beginning of the displayed clip. It supplies no evidence that the file’s TimeReference is zero, or even that the programme has inspected that field.

What the Preview Can Show
What the file carries
  • WAVE audio and its format
  • A Broadcast Audio Extension alongside the WAVE chunks
What the reader can show
  • A waveform on a ruler local to the clip
  • The same playable sound even when the extension goes unrecognised

The distinction is visible at the left edge. Suppose the waveform opens at zero in a clip preview and an hour along a day-long timeline elsewhere. The sample values are the same in both views. The second reader output has used a value outside the sound data to choose where to draw them.

Frequently Asked Questions

What can the Description field in Broadcast Wave Format contain?

The EBU specification gives the Broadcast Wave Format Description field room for up to 256 ASCII characters of free description of the sound sequence. The European Broadcasting Union recommends putting a summary in the first 64 characters for applications that show only a short description.

Who allocates a Broadcast Wave OriginatorReference?

The originating organisation allocates the OriginatorReference under the EBU Broadcast Wave Format specification. The EBU describes it as an unambiguous reference and gives it a field separate from Originator, which holds the producer’s or originator’s name.

Which Broadcast Wave Format field stores the creation date?

The EBU Broadcast Wave Format specification stores the audio sequence’s creation date in OriginationDate, a separate field with entries for year, month and day. OriginationTime is another field, carrying the creation time in hours, minutes and seconds.

What did version 2 of the Broadcast Audio Extension add?

The European Broadcasting Union’s version 2 of Broadcast Wave Format added metadata describing the recording’s loudness. The fields include integrated loudness and loudness range, with a separate field for the maximum true peak level.

What does Broadcast Wave Format’s CodingHistory field describe?

The EBU Broadcast Wave Format specification reserves CodingHistory for descriptions of coding processes applied to the audio data. Each new coding application is to add an entry, with information that depends on whether the sound is in PCM or MPEG format.

Sources

  • European Broadcasting Union: Specification of the Broadcast Wave Format (BWF)