Posting here since Chromium bug tracker (still) gives me a 500 whenever I try to submit. Please fix, I feel bad for spamming the wrong channel 🥺
Chrome Version : 112.0.5615.49 (Official Build) (arm64)
URLs (if applicable) : https://gossamer-unmarred-ogre.glitch.me/
Other browsers tested: No
Add OK or FAIL, along with the version, after other browsers where you
have tested this issue:
Safari:
Firefox:
Edge:
What steps will reproduce the problem?
https://gossamer-unmarred-ogre.glitch.me/
This will reproduce the problem. It also implements a small parser for the decoder config to verify the problem occurring.
What happens instead?
When the profile_idc is 100, like in this case, the bottom block (with the if-statement) is incorrectly not included in the decoder config. When running an .mp4 file containing data generated by the WebCodecs API through MP4Box's -info tool, it says:
Posting here since Chromium bug tracker (still) gives me a 500 whenever I try to submit. Please fix, I feel bad for spamming the wrong channel 🥺
Chrome Version : 112.0.5615.49 (Official Build) (arm64) URLs (if applicable) : https://gossamer-unmarred-ogre.glitch.me/ Other browsers tested: No Add OK or FAIL, along with the version, after other browsers where you have tested this issue: Safari: Firefox: Edge:
What steps will reproduce the problem? https://gossamer-unmarred-ogre.glitch.me/ This will reproduce the problem. It also implements a small parser for the decoder config to verify the problem occurring.
What is the expected result? The decoder config for the AVC stream is expected to adhere to the format specified in ISO/IEC 14496-15 (https://ossrs.io/lts/zh-cn/assets/files/ISO_IEC_14496-15-AVC-format-2012-345a5b466cc73e978fd9dd0840361e8b.pdf), page 16:
What happens instead? When the profile_idc is 100, like in this case, the bottom block (with the if-statement) is incorrectly not included in the decoder config. When running an .mp4 file containing data generated by the WebCodecs API through MP4Box's -info tool, it says:
[isom/avcc] Missing REXT profile signaling, patching.
which is caused by this branch in GPAC: https://github.com/gpac/gpac/blob/647e4d353e9b90e7f675186c9162767977c3176e/src/isomedia/avc_ext.c#L2857
Scanning the GPAC code, it seems like many files forget to include this (which is why they tolerate it), but would be cool to stick to the spec here.