chrome可以播放html5 mp4视频,但html5test表示chrome不支持mp4视频编解码器 [英] chrome could play html5 mp4 video but html5test said chrome did not support mp4 video codec

查看:891
本文介绍了chrome可以播放html5 mp4视频,但html5test表示chrome不支持mp4视频编解码器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 html5test.com ,chrome不支持html5 mp4 视频(请参阅以下链接)。
http://html5test.com/compare/feature/video-mpeg4.html



然而,在这个测试页面,mp4视频可以通过设置主体成功播放,如下所示:

 < ;!DOCTYPE html> 
< html>
< body>

< video width =320height =240controls =controls>
< source src =movie.mp4type =video / mp4/>
您的浏览器不支持视频标签。
< / video>

< / body>
< / html>

如何正确解释?

.mp4 只是一个容器格式( MPEG-4 Part 14 ),可以改变 .mp4 文件下的视频和音频格式。对于视频而言,H-264(MPEG-4 Part 10)和MPEG-4 Visual(MPEG-4 Part 2)是很常见的。 在HTML5Test上,MPEG- 4支持将测试 video.canPlayType(video / mp4; codecs =mp4v.20.8),测试是否支持MPEG-4 Visual。



支持的格式包括H-264,VP8(WebM视频部分),Theora for video和MP3,AAC,Vorbis for audio。不支持MPEG-4 Visual( Chromium issue 54036 )。

所以,Chrome可以使用H-264视频播放 .mp4 ,但不能播放MPEG-4视频。


According to html5test.com, chrome does not support html5 mp4 video (see following link). http://html5test.com/compare/feature/video-mpeg4.html

However, in this test page , the mp4 video could be played successfully by setting the body as following:

<!DOCTYPE html>
<html>
<body>

<video width="320" height="240" controls="controls">
  <source src="movie.mp4" type="video/mp4" />
  Your browser does not support the video tag.
</video>

</body>
</html>

How can I interpret this correctly?

解决方案

.mp4 is just a container format (MPEG-4 Part 14), the video and audio formats under .mp4 file can be varied. For video, H-264 (MPEG-4 Part 10) and MPEG-4 Visual (MPEG-4 Part 2) are common.

On the HTML5Test, "MPEG-4 support" will test video.canPlayType("video/mp4; codecs="mp4v.20.8"), which tests whether MPEG-4 Visual is supported.

Formats supported by Chrome are H-264, VP8 (WebM video part), Theora for video and MP3, AAC, Vorbis for audio. MPEG-4 Visual is not supported (Chromium issue 54036).

So, Chrome can play .mp4 with H-264 video but not MPEG-4 Visual video.

这篇关于chrome可以播放html5 mp4视频,但html5test表示chrome不支持mp4视频编解码器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆