Sign in

§2.3

LOC Header Extensions

The LOC Header Extensions carry optional metadata for the corresponding LOC Payload. The LOC Header Extensions are contained within the MOQ Object Header Extensions. This metadata provides necessary information for end subscribers, relays and other intermediaries to perform their operations without accessing the media payload. For example, media switches can use this metadata to perform their media switching decisions without accessing the payload which may be encrypted end-to-end (from original publisher to end subscribers).

The following sections define specific metadata as LOC Header Extensions and register them in the IANA registry for MOQ Object Header Extensions.

Other specifications can define other metadata as LOC Header Extensions and register them in the same registry. Each extension must specify the following information in the IANA registry.

  • Name: Short name for the metadata (not sent on the wire)

  • Description: Detailed description (not sent on the wire)

  • ID: Identifier assigned by the registry (varint)

  • Length: Length of metadata Value in bytes (varint if ID is odd, omitted if ID is even)

  • Value: Value of metadata (varint if ID is even, Length bytes if ID is odd)

2.3.1. Common Header Data

2.3.1.1. Capture Timestamp
  • Name: Capture Timestamp

  • Description: Wall-clock time in microseconds since the Unix epoch when the encoded media frame was captured, encoded as a varint.

  • ID: 2 (IANA, please assign from the MOQ Header Extensions Registry)

  • Length: Varies (1-8 bytes)

  • Value: Varies

2.3.2. Video Header Data

2.3.2.1. Video Config
  • Name: Video Config

  • Description: Video codec configuration "extradata", as defined by the corresponding codec specification, which maps to the WebCodecs VideoDecoderConfig description property in the EncodedVideoChunkMetadata.

  • ID: 13 (IANA, please assign from the MOQ Header Extensions Registry)

  • Length: Varies

  • Value: Varies

2.3.2.2. Video Frame Marking
  • Name: Video Frame Marking

  • Description: Flags for video frames which are independent, discardable, or base layer sync points, as well as temporal and spatial layer identification, as defined in [Framemarking], encoded in the least significant bits of a varint.

  • ID: 4 (IANA, please assign from the MOQ Header Extensions Registry)

  • Length: Varies (1-4 bytes)

  • Value: Varies

2.3.3. Audio Header Data

2.3.3.1. Audio Level
  • Name: Audio Level

  • Description: The magnitude of the audio level of the corresponding audio frame as well as a voice activity indicator as defined in section 3 of [RFC6464], encoded in the least significant 8 bits of a varint.

  • ID: 6 (IANA, please assign from the MOQ Header Extensions Registry)

  • Length: Varies (1-2 bytes)

  • Value: Varies

This is one section of Low Overhead Media Container, rendered per-section for quick reference and citation. The authoritative text is draft-ietf-moq-loc-00 at the IETF.