html5无法看 H.264的视频

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
myarms
帖子: 54
注册时间: 2008-11-13 1:59

html5无法看 H.264的视频

#1

帖子 myarms » 2015-02-12 22:23

只能看360清晰度的视频,请问该安装什么插件?
netman大大的“我的 Linux 學習觀”,真是让我受益良多!也是VBird 鸟哥推荐的网站哦!
http://www.study-area.org/linux/learnin ... _linux.htm
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: html5无法看 H.264的视频

#2

帖子 taohunter » 2015-02-12 23:52

什么浏览器?什么版本?
三年后终于回到16.04--稳定了!
myarms
帖子: 54
注册时间: 2008-11-13 1:59

Re: html5无法看 H.264的视频

#3

帖子 myarms » 2015-02-14 8:46

taohunter 写了:什么浏览器?什么版本?
是firefox,版本35.0.1,我的网站是youtube

这个信息不知道是否有用:

代码: 全选

about:buildconfig
Build Machine

toyol
Build platform
target
x86_64-pc-linux-gnu
Build tools
Compiler 	Version 	Compiler flags
gcc 	4.9.1 	-Wall -Wdeclaration-after-statement -Wempty-body -Wpointer-to-int-cast -Wsign-compare -Wtype-limits -Werror=char-subscripts -Werror=comment -Werror=endif-labels -Werror=enum-compare -Werror=ignored-qualifiers -Werror=int-to-pointer-cast -Werror=multichar -Werror=nonnull -Werror=pointer-arith -Werror=pointer-sign -Werror=return-type -Werror=sequence-point -Werror=trigraphs -Werror=unknown-pragmas -Wno-unused -Wcast-align -std=gnu99 -fgnu89-inline -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-math-errno -pthread -pipe
c++ 	4.9.1 	-Wall -Wempty-body -Woverloaded-virtual -Wsign-compare -Wwrite-strings -Werror=endif-labels -Werror=int-to-pointer-cast -Werror=missing-braces -Werror=pointer-arith -Werror=return-type -Werror=sequence-point -Werror=unused-label -Werror=trigraphs -Werror=type-limits -Wno-invalid-offsetof -Wcast-align -fno-exceptions -fno-strict-aliasing -fno-rtti -ffunction-sections -fdata-sections -fno-exceptions -fno-math-errno -std=gnu++0x -pthread -pipe -DNDEBUG -DTRIMMED -g -freorder-blocks -Os -fomit-frame-pointer
Configure arguments

--host=x86_64-linux-gnu --prefix=/usr --libexecdir=/usr/lib/firefox --with-l10n-base=/build/buildd/firefox-35.0.1+build1/./l10n --srcdir=/build/buildd/firefox-35.0.1+build1/. --enable-release --disable-install-strip --disable-updater --enable-application=browser --enable-startup-notification --with-distribution-id=com.ubuntu --enable-optimize --enable-tests --enable-crashreporter --with-branding=browser/branding/official --disable-gnomevfs --enable-gio --enable-update-channel=release --disable-debug --disable-elf-hack --enable-gstreamer=1.0 --with-google-api-keyfile=/build/buildd/firefox-35.0.1+build1/debian/g
netman大大的“我的 Linux 學習觀”,真是让我受益良多!也是VBird 鸟哥推荐的网站哦!
http://www.study-area.org/linux/learnin ... _linux.htm
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: html5无法看 H.264的视频

#4

帖子 poloshiao » 2015-02-14 10:52

試試
Ubuntu 14.04 或 以上
http://askubuntu.com/a/436336/198920
1. 安裝 gstreamer1.0-libav
2. Firefix 30.0
3. 如果是 14.10
試試 從 uptopic-proposed 套件庫安裝
4. 詳細來源
http://askubuntu.com/questions/389437/h ... on-firefox
How do I get HTML5 h.264 Video working on Firefox?
5. 這一篇 有更多的討論 特別是 下方的 Comments
http://www.ghacks.net/2014/05/10/enable ... s-firefox/
How to enable Media Source Extensions in Firefox
rosynirvana
帖子: 893
注册时间: 2011-02-14 17:46

Re: html5无法看 H.264的视频

#5

帖子 rosynirvana » 2015-02-14 11:16

无法看html5视频
只能看360p的视频

这两个没啥关联啊,有些视频本来就只有360p的
你的问题是用不了html5播放器,还是,能用html5播放器,但是,分辨率只有360p可选?
taohunter
帖子: 1555
注册时间: 2012-03-31 3:29

Re: html5无法看 H.264的视频

#6

帖子 taohunter » 2015-02-14 18:44

youtube网站目前只对firefox beta版默认提供html5的视频流,现在firefox release正式版是35.0.1,也就是说楼主要用至少36的firefox beta版才有可能缺省看到html5的视频。否则就需要在youtube网页选择参加html5试用,在地址栏上输入:
https://www.youtube.com/html5
参加试用,楼主有兴趣可以试试。

至于youtube视频的清晰度到底是多少p的,涉及的因素有:

1. 浏览器本身是否支持h264解码,对firefox33以上的版本来说,都已经集成了cisco的openh264解码器,已经不成问题了;

2. 实际的连接速率,这个对国内的用户来说,不单取决于你的isp分配给你的带宽,还牵涉到你为了能看youtube所使用的“梯子”给了你多大的实际“带宽”。例如我测试的结果,我的isp的带宽4Mbps,用goa多appid分担负载的方式连接大概也就能保证480p还比较稳定,再高的清晰度就难免遭遇“缓冲”了;在连接速度最快的vxn下,基本可以保证720p的视频流畅,最近我看了国家地理的几个系列的高清,都可算非常舒服了;但是如果到1080p,就要看运气了,某些时间点也能全程无缓冲地播放,但绝大多数时候会碰到缓冲的情况;

3.视频作者上传的视频本身的最大清晰度,如前面有人说的,视频作者如果只提供了较低清晰度的视频,例如最高只有360p,那么你看这个视频无论采用什么方式都不可能获得360p以上的清晰度。

4. firefox上安装的某些扩展。例如我安装的YouTube HD Plus这个扩展,可以设定打开youtube视频时的首选、次选、三选等等的清晰度,我现在就是首选720p的。最高1080p的视频也以720p的码流播放;如果视频最高清晰度低于720p,依次按照480p、360p来设置播放试用的码流。

顺便说一下,firefox之所以集成cisco的openh264解码器,第一出发点是为了这个浏览器上的webrtc新一代视频聊天工具。当然,既然可以用高清视频聊天了,openh264也让我们可以在合法的软件许可下,享受高清视频的服务商带来的浏览的乐趣。算是cisco为开源软件做的一件大好事吧。
三年后终于回到16.04--稳定了!
ll_sd
帖子: 3
注册时间: 2016-02-29 0:04
系统: windows7

Re: html5无法看 H.264的视频

#7

帖子 ll_sd » 2016-02-29 22:52

我也碰到lz同样的问题,装了个chrome浏览器后解决
回复