Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道为什么我的 mp4 html5 视频不是“流式传输”,而是等到它完全下载后才开始在 safari 中播放。
www.pija.se
我试过 QTIndexSwapper 但它说索引在正确的位置。
任何帮助表示赞赏。
看起来 MOOV 原子不在文件的开头。我使用 ffmpeg 重新定位它(没有其他编码),然后进行二进制比较(使用HexFiend),快速测试似乎表明 Safari 正在更快地播放视频
./ffmpeg -i top.mp4 -codec copy -movflags faststart top-fs.mp4
(需要注意的是,即使我清除了浏览器缓存,我也没有做诸如反弹我的测试服务器或时间太准确之类的事情)
FWIW 我发现 ffmpeg 是一个很好的解决方案,尤其是对于背景视频,您需要使用参数来优化您的用例