将视频添加到网站
您认为,假设将视频呈现为 FLV,向网站添加视频的最佳选择是什么。 关键考虑因素是什么?
您会使用第 3 方服务(youtube.com、vimeo.com 等)还是自己托管? 为什么? 如果您使用过一项服务,会选择哪一项? 如果您自己托管,是否像使用现有的嵌入式 Flash FLV 播放器通过 HTTP 访问 FLV 文件一样简单,还是在内容管理等方面您还需要做更多的事情?
In your opinion, what are the best options for adding video to a website assuming it would be rendered as FLV. What are the key considerations?
Would you use a 3rd party service (youtube.com, vimeo.com, etc.) or host yourself? Why?
If you used a service, which one? If you hosted yourself is it as simple as using an existing embeddable flash FLV player to access FLV files via HTTP or is there something more you would do in terms of content management, etc.?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您要使用第 3 方网站,请使用 vimeo - 它具有出色的用户体验和出色的视频质量。
If you are going to use a 3rd party site, use vimeo - it's a great user experience and great video quality.
您是否决定自己托管视频很大程度上取决于您的要求、托管环境和您使用的技术。 如果它是一个小型个人网站,那么将其托管在 youtube 或其他托管服务上是完全可以的,但如果您正在制作一个公司网站,那么如果您自己托管它,它看起来会更专业。 或者,如果视频不会经常更改,那么您自己托管也很容易。
要自行托管,只需在服务器上放入可通过 Web 访问的目录并在播放器中设置 URL 即可。
如果您需要进行内容管理,请记住服务器上可能存在的上传限制,并且事实上,HTTP 并不是上传大文件的理想协议。
如果您必须在服务器上重新编码视频,请不要忘记,在编码运行时,这将严重影响性能。
要在服务器上重新编码视频,我更喜欢使用 FFMPEG 或 mencoder(两者都有 Windows 和 linux/unix 版本)。
Whether you decide to host the video yourself depends greatly on your requirements, hosting environment and technology you use. If it's a small personal site, than it's prefectly ok to host it on youtube or another hosting service, but if you are making a corporate site, it looks much more professional if you host it yourself. Or if the video won't change very frequently it's pretty easy to just host it yourself.
To host it yourself it's just simply puting in a web accessible directory on the server and setting the URL in the player.
If you need to do content management, than keep in mind the possible upload limits you will have on the server, and the fact, that HTTP is not the ideal protocol for uploading large files.
If you have to recode the video on the server, than don't forget that it will be a serious performance hit to it while the encoding is running.
To recode the video on the server I prefer to use FFMPEG or mencoder (both have windows and linux/unix versions).
我想问题归结为你是否需要完全控制视频,以及你是否有钱投入该项目。 如果您在 YouTube 等网站上托管,您将受到他们的服务条款的约束,并且需要在其品牌的限制内工作。
当我需要为客户完全控制 Flash 视频剪辑时,我使用了 JW-FLV玩家。 它很乐意通过 HTTP 服务器提供 FLV 文件。 可以将播放器嵌入到另一个 Flash 影片中,但大多数情况下您将通过 HTML 链接控制播放列表。 托管视频文件可能会非常昂贵,因此需要支付巨额带宽费用。
如果我要创建具有某种营销方面的供公众消费的视频,我会使用第三方服务。 将其托管在 YouTube 上,您可以获得很好的曝光度,人们有机会找到您的视频。 这些服务的网络也具有全球影响力,因此您可以在全球范围内获得更好的性能。
Google 最近为 Google Apps 客户发布了视频。 这样您就可以保护属于您组织的用户的 Google 视频的安全。 这弥补了一些传统上使用自托管的项目的空白。
I guess the question boils down to whether you need to be in complete control of the video, and whether you have money to throw at the project. If you host on youtube etc you are subject to their terms of service and need to work within the constraints of their branding.
When I have needed complete control of Flash video clips for clients I have used the JW-FLV player. It will happily serve FLV files off an HTTP server. It is possible to embed the player in another Flash movie, but most often you will control the playlist from HTML links. Hosting video files can get very expensive, so expect to pay a hefty bandwidth bill.
I would use a 3rd party service if I was creating video for public consumption that had some sort of marketing aspect to it. Host it on YouTube and you can get very good exposure, and people have a chance of finding your video. These services also have global reach in their networks so you may get better performance worldwide.
Google recently released Video for Google Apps customers. This allows you to secure your Google video to users belonging to your organisation. This bridges the gap for some projects that would traditionally use self-hosting.