在网站上投放视频的最佳方法是什么

在网站上投放视频的最佳方法是什么

本文介绍了在网站上投放视频的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的网站上放一些视频.它们是从FlipShare相机获取的.MP4文件提供的.

现在我尝试将它们转换为WMV(成功,但是当以< object id ='mediaPlayer'width ='320'height ='285'classid ='CLSID:22d6f312-b0f6嵌入html时,-11d0-94ab-0080c74c7e95'等'标记,用户必须安装插件,并且该站点上10个Windows Media Player的用户体验也不是很好.)

然后我看了一下youtube,想知道他们是如何做到的,但是我不知道他们将视频转换成什么格式.

所以我的问题是:我必须将视频转换为哪种格式,才能在不需要安装在用户浏览器中的播放器中显示它.我需要什么工具,嵌入这样的视频的html代码是什么?

如您所见:从头开始.

PS:我经常听到:这个或那个文件扩展名只是一个容器,里面可以有任何东西.如果您在答案中使用它,可以向我解释一下,因为我从来不明白这一点.对我来说,.cs是一个c#文件,一个.doc是一个Word文件,而不是容器".

解决方案

我想说,目前最流行的解决方案是H.264编码的基于Flash的视频,该解决方案已被YouTube和其他主要视频门户网站采用.从……开始,Flash就可以播放视频了……我认为是版本8或版本9,并因此获得了巨大的市场份额.

我个人最喜欢的Flash播放器是 LongTail Player ,但它并非免费用于商业用途.

此处这是一个问题,其中包含基于Flash的播放器列表,包括开放源代码的播放器.

但是,Flash无法在iPhone和iPad上播放.

如果要使用Flash Player 9支持计算机(我已经见过一些,但没有硬数字),则需要对FLV文件进行编码(我认为它们使用名为Sorenson的编解码器)./p>

即将到来的替代方法是 HTML 5 Video ,但在浏览器中却对此感到吃惊,但其市场份额却遥遥无期.

I want so serve some videos on my site. They are available as .MP4 files gotten from a FlipShare camera.

Now I tried converting them to WMV (which succeeded, but when embedded in html in a <object id='mediaPlayer' width='320' height='285' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' etc' tag, users have to install an addon and the user experience of 10 Windows Media Players on the site isn't just so good.)

So then I looked at youtube and wondered how they do it, but I can't figure out what format they convert the video to.

So my question is: What format do I have to convert my video to, to show it in a player which does not need to be installed in the users browser. What tool do i need and what is the html code to embed such a video?

As you can see: starting from scratch.

PS: I often hear: This or that file extension is just a container, there can be anything inside. If you're using this in your answer, can you explain this to me, because I never understood this. For me a .cs is a c# file and a .doc a Word file, and not 'a container'.

解决方案

I'd say the most popular solution at the moment - utilized by YouTube and other major video portals - is H.264 encoded Flash-based Video. Flash can play Video since... I think Version 8 or 9, and has since gained significant market share.

My personal favourite Flash player is LongTail Player, but it isn't free for commercial use.

Here's a SO question with a list of Flash based players including open source ones.

Flash won't play on iPhone and iPad, though.

If you want to support computers with Flash Player 9 (I've seen some around, but I don't have any hard numbers) you will need to encode FLV files (which use a codec named Sorenson I think).

The upcoming alternative is HTML 5 Video but suport for that in browsers is nowhere near a major market share.

这篇关于在网站上投放视频的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 06:40