Oct 10

Youtube Super HD(高清/4倍)时代已经来临! 不指定

| |
传说中的YouTube 高清视频好像已经测试有半年多了吧,但迟迟未见丝毫正式推出的迹象。

Highslide JS


这不,网络爆发达的Mr.doob 小朋友等不及了,于是组装了一部四倍高清的视频,音质一流,而且还不影响加载速度……

赶快打开音响,插好网线,点开《Youtube, Now in Super HD》慢慢欣赏吧。

Super HD 的效果还不错吧?泳装MM一下就清晰了四倍。

另外忘提醒了,注意页面顶部的“PLAY . PAUSE . RESTART”,你就不用等四个视频加载完毕后并手动的同时又分别的让其播放(这似乎也不太可能实现)。



再说点正经的,YouTube 的高清测试参数。

普通用户希望视频能够显示得更清晰的话,仅需要在视频地址的参数上添加&fmt=6 即可(如果视频本身有更清晰版本存在的话),如:


另外还隐藏有一个参数&fmt=18,只要在链接后面加上&fmt=18,即可让高清视频以原视频比例进行播放,否则将以默认的宽高比进行播放。



然后,再细心思考一下:四个视频并非完全同步,但音频又只有一个,莫非、难道、可能是……

于是查看源码得知,其实作者一共在页面中放置了五个视频,而并非表面上的四个(当然,他本可以把音频与其中某个视频合在一起的),分别为:


代码中还有更多发现,作者留下的注释:

引用
Hehehe... so you were wondering how this thing was done didn't you?

Well, ok, I'll give you a quick explanation... So I bought this DVD that had these 2 videos,you already know very well the other video so I though I should illustrate you with the *new* one. Then it was just a matter of letting VirtualDub (http://virtualdub.sourceforge.net/) do what it does best. I managed to crop the video in 4 and having the first one with the audio.

At first I though FLV decompression was going to be hard for any CPU and having 4 videos playing at once was going to be hard, but in the end it wasn't too bad. My iBook G4 wasn'table to handle it, but I guess it's old enough to ignore. Then some problems on the flashplayer for Linux appeared. The top-left video had a lot of delay, that video was the one that had the music, so I though it was just a matter of the FLV player having problems there.

Anyway, the next day, I removed the audio from the first video (i,e cropped it again with virtualdub but without the audio), and then created a new video (black) with the music and if you take a look at the code, you'll see that there are 5 youtube players. Well, video0 is the one that plays the music, but as you can see on the styles, it's hidden. So if something goes behind the rest will be the music, and well, neither in the original video the music was 100% synced so I guess it does properly it's job.

It was just a matter of having the idea and spending a couple of hours on it, hope  you enjoy it, feel free to do your own versions! Hopefuly youtube won't mind ;)

PS: There is some people out there reversioning the file making it lose the control bars so the four videos match perfectly. Well, I think they are missing the point, the idea wasn't to overuse youtube, the idea was more on the joke side; nobody is actually going to upload 5 videos for a little bit more of quality isn't it?  Well, I hope nobody takes this seriously and does it :D

Cheers!
--
Mr.doob

Hehehe... 俺们鸟语不好,貌似作者的想法(5 youtube players)和我的雷同,如果是我肯定只放4个。

因为作者的无聊,引得我也有如此无聊,把MM看完不就得了,还看这么多鸟语代码又分析这么多……但多思考不是坏习惯。
Google
收藏到网摘: 添加到“Google书签” 添加到“Yahoo收藏” 添加到“QQ书签” 添加到“百度搜藏” 添加到“新浪ViVi收藏夹” 添加到“Del.icio.us” 添加到“365天天网摘” 添加到“天极网摘” 添加到“POCO网摘” 添加到“和讯网摘” 添加到“Bolaa博客收录中心” 添加到“igooi网摘” 添加到“天下图摘”        在线订阅: 用RSS订阅本站最新日志 用邮件订阅本站最新日志
Tags: , , , ,
发表评论
表情
emotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]