Add muxer support for Dolby Atmos#3312
Conversation
- Added E-AC3 JOC codec support in Mp4Muxer - Handle Atmos-specific channel configurations - Updated bitstream parsing for object audio metadata This enables writing Dolby Atmos tracks when muxing to MP4 containers.
d6de182 to
d40b7ea
Compare
|
Please could you based the changes on the |
|
hey @andrewlewis , I will send a new PR to For the end-to-end test — sample_eac3joc.mp4 is already in the test asset library, so the input file is there. The blocker is that BoxParser currently parses the dec3 box into Format fields (channel count, sample rate, mime type) but doesn't carry the raw bytes forwardinto initializationData. That's a pre-existing behavior in the extractor. Since Mp4Muxer needs those raw bytes to write the dec3 box, the end-to-end pipeline doesn't connect yet. Thank you! |
Summary
Add support for muxing Dolby Atmos (E-AC-3 JOC) tracks in Mp4Muxer.
Problem
Mp4Muxer and FragmentedMp4Muxer did not support AUDIO_E_AC3 or AUDIO_E_AC3_JOC MIME types. Attempting to mux an E-AC-3 or Dolby Atmos track would fail at the supported-format check, and even if bypassed, the codec-specific box (dec3) and fourcc (ec-3) were not implemented. This made stream-copy of Dolby Atmos audio from one MP4 container to another impossible using the in-app muxer.
Changes
(fourcc: ec-3).
Testing
Notes