播放网站上的任何视频(flash、divx、avi/wmv(m2ts/mts、mkv?))
我怎样才能将任何类型的视频嵌入到网页上,youtube似乎可以上传任何类型的视频,我想知道我是否也可以做到这一点,而无需大量的资源和金钱(网站会非常小)会员人数肯定低于 100 名,最有可能低于 50 名)
是否有播放器可以播放所有格式,或者我必须使用不同的播放器?
另外,对于高清视频,我希望有一个标清选项。
How can I embed any type of video onto a webpage, youtube seems to be able to upload any type of video and I'd like to know if I can do that too without huge amounts of resources and money (the website would be very small with definitely under 100 member, most likely under 50)
Is there a player that plays all formats, or would I have to use different players?
Also on HD videos I'd like to have a SD option.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
YouTube 使用
ffmpeg
(免费且开源)将上传的视频转换为 Flash 格式以进行嵌入。如果您愿意,您也可以这样做。YouTube uses
ffmpeg
(free and open-source) to convert uploaded video to a Flash format for embedding. You can do the same, if you like.决定使用 Divx 网络播放器,因为它可以使用 avi、divx 和 mkv(mts 可以轻松转换为 mkv)
Decided to use Divx webplayer, as it does avi, divx, and mkv (mts can convert to mkv easily)
shwup.com 可以托管协作视频相册,仅在朋友/家人/教室之间共享。无限上传。因为您想要私人共享。
另一种很酷的方法是使用其中一个视频 API 上传/编码到云端,例如:YouTube 数据 API、Vimeo API、嘿!观看,Orb,Phanfare
对于玩家:JW Player 非常好。
Flowplayer 也很棒。
如果您的主机上有ffmpeg,它可以轻松处理最流行格式之间的转换
并自托管文件,另一个选择是 uEncode.com - 一种用于在格式之间进行转换的按需 Web 服务
您也可以将文件上传到 YouTube、veoh 等共享网站之一上的常规帐户,然后将它们嵌入到您的网站中。让他们提供带宽:)
shwup.com can host collaborative video albums to share amongst friends / family / classrooms only. unlimited uploads. since you want private sharing.
another cool way is to use one of the video APIs to upload/encode to the cloud, e.g.: YouTube Data API, Vimeo API, Hey!Watch, Orb, Phanfare
For players: JW Player is pretty nice.
Flowplayer is great as well.
if you have ffmpeg on your host, that can easily handle conversion between most popular formats
if you're doing tons of encoding and self-hosting the files, another option is uEncode.com - an on-demand web service to convert between formats
also you could just upload the files to a regular account on one of the sharing sites like youtube, veoh, and embed them in your site. let them provide the bandwidth :)
没有播放器可以播放所有格式。您要么必须限制可用的容器和编解码器,要么将重新编码转移到另一个进程。
There is no player that plays all formats. You would either have to restrict the containers and codecs usable, or farm off reencoding to another process.
我使用 JW Player:http://www.jeroenwijering.com/?item=JW_FLV_Player
I use JW Player: http://www.jeroenwijering.com/?item=JW_FLV_Player