Link: nihilogic(刚开始没还发现,这个是Blogger上的,居然直接就打开了,看来又解封了。郁闷死了,一会儿封一会解封的。如果你打不开,翻墙吧)
My first thought was to read binary video files using a technique like the Andy Na posted about here, figuring that there must be some really simple to parse video formats around, but I soon changed directions and decided to make up a whole new video format. Enter.. JSONVid. Using a player like mplayer, it is easy to export all frames in a movie clip to individual jpeg files, and using whichever language you prefer it is also fairly trivial to collect these files, base64 encode the bunch of them and throw them all together in a nice JSON file (I used this PHP script).
…
There are two test files, both around 4 Mb: Test 1 and Test 2
确实是很有趣的东东,用JS播放转换成jpeg的视频,不过,就像Blog上的回复说的那样
It might been fun, chalenging, but mostly just useless ;-)
PS:试了下,效果还是将就。嘿嘿
Related posts:
- The best way to load external JavaScript 作者说的最好的加载JS方法,即是如何无阻塞的加载JS,作者提到了三个技巧 创建两个JS文件, 第一个只包含动态加载JS的必要代码,第二个包含除必要的一些初始化的所有内容; 创建加载第一个JS文件的<script>标签,并把它放在页面的最底端,</body>标签里面; 创建第二个<script>标签,加载第二个JS文件和运行附加的初始化代码。 作者还提供了一个例子,这是第一个JS文件的内容 1 2 3 4...
Related posts brought to you by Yet Another Related Posts Plugin.


Recent Comments