Skip to content

Clarification needed for handling raw AAC bitstreams without description #832

Open
@ChunMinChang

Description

@ChunMinChang

According to the AAC registration in WebCodecs, when the description is not present in AudioDecoderConfig, the bitstream is assumed to be in ADTS format. Otherwise, it's assumed to be in AAC. However, there's a case (https://webvideo-js.pages.dev/) where raw AAC data is provided to the audio decoder without supplying description data in configure beforehand (#826 seems a similar issue for opus).

Currently, Chrome can decode this raw AAC data, and Firefox has patches to support this behavior as well (by generating a AudioSpecificConfig).

This issue can be easily reproduced by adding a test case in audioDecoder-codec-specific.https.any.js WPT that replicates the properties of MP4_AAC_DATA but omits the description. I would like to ask if this behavior should be officially mentioned or detailed in the WebCodecs spec. If this use case is something that should be supported, it might be worthwhile to include a corresponding WPT for this scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions