HTML 视频标签在 Google Chrome 中将 MOV 文件读取为音频文件

Ban*_*ode 2 html video mov html5-video

这是从我的 iPhone 8 复制的 MOV 视频文件 URL。
https://www.yangfamily.tw/attachments/IMG_3049.MOV

然后我尝试在Chrome上播放这个视频,html代码如下:

<video width="320" height="240" controls>
  <source src="https://www.yangfamily.tw/attachments/IMG_3049.MOV">
  Your browser does not support the video tag.
</video>
Run Code Online (Sandbox Code Playgroud)

好的,已经加载成功了。但没有显示框架,只显示控件。

然后我右键单击控件,菜单显示它是音频文件,而不是视频文件。 右键单击控件

It's indeed a video file, and I can play this video file and show the frames successfully on any other player. Why this MOV video file was read as an audio file in Google Chrome? (Chrome Version: 90.0.4430.93 64-bits)

Any idea?

Dou*_*ars 5

该视频编码为 h.265 HEVC。

ffprobe 是一个免费的开源工具(在线版:https://ffprobe.a.video/probe? url=https%3A%2F%2Fwww.yangfamily.tw%2Fattachments%2FIMG_3049.MOV )

当我查看编解码器时:

codec_long_name : H.265 / HEVC (High Efficiency Video Coding)
Run Code Online (Sandbox Code Playgroud)

仅 Safari 支持 h265。这是专利/特许权使用费的事情。您应该将视频重新编码为 h264 - 并提供该版本(99.9% 的浏览器支持)。

Chrome 可以播放音轨:

codec_long_name : AAC (Advanced Audio Coding)
Run Code Online (Sandbox Code Playgroud)

这就是为什么你只能在 Chrome 中获取音频。