Repository navigation
Conversation
audio-encoding-offer, video-encoding-offer, and video-frame lack the decoder configuration and HDR metadata fields needed to remote container-demuxed tracks without transcoding. Add sample-rate, number-of-channels, and description to audio-encoding-offer, add description, coded-resolution, display-aspect-ratio, color-space, and static hdr-metadata to video-encoding-offer, and add dynamic hdr-metadata and end-of-stream to media frames, aligned with WebCodecs AudioDecoderConfig, VideoDecoderConfig, VideoColorSpaceInit, and Media Capabilities HdrMetadataType. Bitstream framing (such as length-prefixed avc/hevc vs. annexb) follows the WebCodecs Codec Registry rules for description. Fixes w3c#381
baylesj
force-pushed
the
baylesj/issue-381-webcodecs-decoder-config
branch
from
November 24, 2026 05:19
758ea03 to
8968514
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses #381 (and follows up on #194 (comment)).
audio-encoding-offer,video-encoding-offer, andvideo-framecurrently lack decoder initialization bytes, color space fields, and wire HDR metadata needed to remote demuxed MP4 or Matroska tracks without re-encoding.This draft aligns those offers and frames directly with W3C WebCodecs (
AudioDecoderConfig,VideoDecoderConfig, andVideoColorSpaceInit) and Media Capabilities (HdrMetadataType):sample-rate,number-of-channels, anddescriptiontoaudio-encoding-offer, plusend-of-streamtoaudio-frame.description,coded-resolution,display-aspect-ratio,color-space(VideoColorPrimaries,VideoTransferCharacteristics,VideoMatrixCoefficients, andfull-range), and statichdr-metadata(HdrMetadataType+bytes, such assmpteSt2086) tovideo-encoding-offer.hdr-metadata(such assmpteSt2094-40orsmpteSt2094-10) andend-of-streamtovideo-frame.avc/hevcsamples vs.annexb, or rawaacvs.adts) to the WebCodecs Codec Registry rules for whetherdescriptionis present, avoiding a separatebitstream-formatfield.