mp4-muxer 5.2.2 Copyright (c) 2023 Vanilagy 来源:npm `mp4-muxer@5.2.2` 的 `build/mp4-muxer.mjs`,逐字节复制,未压缩、未改动。 tarball sha256 5f6c7bae9ad005b32f7fab99268326fe767d7da23e0bb03798c9139861317162 用途:`web/mp4.mjs` —— 把 `VideoEncoder` 吐出来的 H.264 分片装进一个 .mp4 容器。 只用到 `Muxer` 和 `ArrayBufferTarget` 两个导出,没有音轨,没有流式目标。 为什么带一份别人写的:见 `assets/vendor/README.md`。一句话是,容器格式的坑 (avcC、stts/stsz/stco 那几张表、B 帧的 ctts)错了不会报错,只会得到一个某些 播放器打不开、另一些能打开的文件 —— 那种失败方式不该由这个仓库自己去踩。 -------------------------------------------------------------------------- MIT License Copyright (c) 2023 Vanilagy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.