I'm using WebCodecs and looking to mux the supported video codecs to MP4. I got some sample code working with AVC. However if I swap out AVC for the new AV1 format, and remove the AVC-specific parts, the resulting MP4 file is not playable.
Here's a minimal repro configured to mux AV1 as supported by Chrome: mp4-av1-test.zip
The following changes have been made to swap AVC for AV1:
the VideoEncoder codec was switched from "avc1.42001E" to "av01.0.00M.08"
the avc option of the codec was commented out
the avcDecoderConfigRecord option in addTrack was commented out
If you reverse those changes (just change what is commented out) it can produce a playable MP4 file with the AVC codec. Presumably further changes are necessary for AV1. I'm not sure what those are - it would be great if any necessary changes could be made to support it, or otherwise to document it if already supported for use with WebCodecs,
Thanks for your work on MP4box.js!
I'm using WebCodecs and looking to mux the supported video codecs to MP4. I got some sample code working with AVC. However if I swap out AVC for the new AV1 format, and remove the AVC-specific parts, the resulting MP4 file is not playable.
Here's a minimal repro configured to mux AV1 as supported by Chrome: mp4-av1-test.zip
The following changes have been made to swap AVC for AV1:
"avc1.42001E"
to"av01.0.00M.08"
avc
option of the codec was commented outavcDecoderConfigRecord
option inaddTrack
was commented outIf you reverse those changes (just change what is commented out) it can produce a playable MP4 file with the AVC codec. Presumably further changes are necessary for AV1. I'm not sure what those are - it would be great if any necessary changes could be made to support it, or otherwise to document it if already supported for use with WebCodecs,