1. Organization
This registry maintains a mapping between codec strings and registration specifications as described below.
2. Registration Entry Requirements
To register an entry, file an issue in the WebCodecs GitHub issue tracker so it can be discussed and evaluated for compliance before being added to the registry.
The Media Working Group might seek expertise from outside the Working Group as part of its evaluation, e.g., from the codec specification editors or relevant standards group. If the codec specification is not publicly available, it must be made available to the Working Group for evaluation. For the entry to be included, there needs to be interest from at least one implementer in the Working Group. If the Working Group reaches consensus to accept the candidate entry, send a pull request (either by editors or by the party requesting the candidate registration) that meets the following requirements:
-
A unique codec string, a common name string, and a link to the codec’s public registration specification.
-
The codec string requirements are as follows:
-
If the codec string contains a fixed prefix with variable suffix values, the suffix must be represented by an asterisk and the registration’s public specification must describe how to fully qualify the variable portion of the string.
-
Otherwise, if the codec is recognized by multiple strings, a single preferred string should be listed and the registration’s specification must list the other allowed strings.
-
Otherwise, the codec is identified by a simple fixed string.
-
-
Each registration’s specification must include a sequence of sections describing:
-
Recognized codec strings.
-
EncodedAudioChunkorEncodedVideoChunkinternal data. -
AudioDecoderConfigorVideoDecoderConfigdescription bytes. -
Expectations for
EncodedAudioChunkorEncodedVideoChunk[[type]].
-
-
Where applicable, a registration specification may include a section describing extensions to the dictionaries used in the
configure(),decode()andencode()methods of the decoder and encoder interfaces (e.g.,AudioDecoderConfig,VideoDecoderConfig,AudioEncoderConfig,VideoEncoderConfig,VideoEncoderEncodeOptions).
Once consensus is reached by the Working Group, the registry editors will review and merge the pull request.
Existing entries cannot be deleted or deprecated. They may be changed after being published through the same process as candidate entries. Possible changes include expansion of the codec string to better qualify the codec, adjustments to the codec name string, and modification of the link to the codec’s specification.
3. Audio Codec Registry
| Codec string | Common name | Registration specification |
|---|---|---|
| flac | Flac | FLAC codec registration [WEBCODECS-FLAC-CODEC-REGISTRATION] |
| mp3 | MP3 | MP3 WebCodecs Registration [WEBCODECS-MP3-CODEC-REGISTRATION] |
| mp4a.* | AAC | AAC WebCodecs Registration [WEBCODECS-AAC-CODEC-REGISTRATION] |
| opus | Opus | Opus WebCodecs Registration [WEBCODECS-OPUS-CODEC-REGISTRATION] |
| vorbis | Vorbis | Vorbis WebCodecs Registration [WEBCODECS-VORBIS-CODEC-REGISTRATION] |
| ulaw | u-law PCM | u-law PCM WebCodecs Registration [WEBCODECS-ULAW-CODEC-REGISTRATION] |
| alaw | A-law PCM | A-law PCM WebCodecs Registration [WEBCODECS-ALAW-CODEC-REGISTRATION] |
| pcm-* | Linear PCM | Linear PCM WebCodecs Registration [WEBCODECS-PCM-CODEC-REGISTRATION] |
4. Video Codec Registry
| Codec string | Common name | Registration specification |
|---|---|---|
| av01.* | AV1 | AV1 codec registration [WEBCODECS-AV1-CODEC-REGISTRATION] |
| avc1.*, avc3.* | AVC / H.264 | AVC (H.264) WebCodecs Registration [WEBCODECS-AVC-CODEC-REGISTRATION] |
| hev1.*, hvc1.* | HEVC / H.265 | HEVC (H.265) WebCodecs Registration [WEBCODECS-HEVC-CODEC-REGISTRATION] |
| vp8 | VP8 | VP8 codec registration [WEBCODECS-VP8-CODEC-REGISTRATION] |
| vp09.* | VP9 | VP9 codec registration [WEBCODECS-VP9-CODEC-REGISTRATION] |
5. Privacy Considerations
Please refer to the section Privacy Considerations in [WEBCODECS].
6. Security Considerations
Please refer to the section Security Considerations in [WEBCODECS].