如何实现像youtube这样的网站?

发布于 2024-10-09 09:56:45 字数 332 浏览 0 评论 0原文

我正在为我的大学语言中心制作一个语言网站,学生可以登录并观看视频来学习英语。我必须这样做,

人们正在登录系统,使用搜索区域进行搜索并找到与该视频相关的详细信息、课程和视频。这个功能完全符合youtube的场景。

为了实现类似twitter的功能,我们可以使用status-net,是否有一个类似的库,类似statusnet的著名的youtube实现或某种平台或像codeigniter这样的框架,我们可以使用它来非常轻松地实现类似youtube的网站? 请建议一些选择?开源的还是商业的???

在此类网站中使用的最佳视频格式是什么? .flv?? mp4??或移动???

问候, 兰加纳

I'm doing a language web site for my university language center, where students login and see videos to learn English. i have to do it like this,

person is logging in to the system, search using a search area and find the details,lessons and videos relevant to that videos. this functionality exactly matches the youtube scenario.

for implementing twitter like functionality we can use status-net, is there a similer library, statusnet like famous implementation for youtube or a some kind of platform or a framework like codeigniter that we can use to implement youtube like site very easily??
please suggest some options?? a open source one or a commercial one ???

and what is the best video format to use in a such web site?? flv?? mp4?? or mov???

regards,
Rangana

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

没有心的人 2024-10-16 09:56:45

您的最佳选择是使用基于“云”的视频处理服务。大多数都有适用于许多不同语言和框架的示例项目/库。以下是我尝试过并喜欢的一些内容的列表:

典型的步骤包括通过浏览器将视频文件上传到大型“云”静态资源主机(例如 S3)。如果您缺乏经验,最好选择提供上传程序的处理器(它将处理将文件放在正确的位置)。这三者中,Transloadit 和 Panda 都有定制卸载器。

通常,该服务将允许您将编码设置(格式和质量)输出作为参数传递或在您的帐户中配置它们。要支持当前所有 HTML5 浏览器,您只需要 H264 (.m4a) 和 OGG (.ogv)。然而,视频世界的新趋势是 WEBM (.webm),因此您可能也想将其包括在内。

接下来,您将从 Web 服务收到一个唯一代码,您必须将其存储在持久存储(数据库)中。视频编码后,可以将 Web 服务配置为“回调”(对您的服务执行 HTTP POST 或 GET 请求)。

收到回电后,您可以激活视频并开始在页面上显示它。为了显示,如果您没有经验,我强烈建议您使用以下播放器之一:

他们都以不同的价格做类似的事情。我目前个人最喜欢的是 Sublime Video(它提供了很酷的灯箱效果和华丽的播放器)。

Your best option is to use a 'cloud' based video processing service. Most have a sample project / library for many different languages and frameworks. Here is a list of a few I've tried and liked:

The typical steps involve uploading the video files to a large 'cloud' static asset host (such as S3) through the browser. If you are inexperienced it is best to select a processor that provides an uploader (it will handle putting the files in the right spot). Of the three, Transloadit and Panda both have custom unloaders.

Usually the service will allow you to either pass the encoding settings (what formats and qualities to) output to as parameters or configure them in your account. To support all current HTML5 browsers you just need H264 (.m4a) and OGG (.ogv). However, the new trend in the video world is for WEBM (.webm) so you might want to include it as well.

Next you will receive a unique code from the web service that you must store in persistent storage (database). The web service can be configured to 'callback' (perform an HTTP POST or GET request to your service) once the video is encoded.

Once your recieve a callback you can activate your video and start dislpaying it on your pages. For displaying, if you are inexperienced I'd highly recommend you use one of the following players:

They all do similar things for different prices. My current personal favourite is Sublime Video (it offers cool light box effects and a gorgeous player).

因为看清所以看轻 2024-10-16 09:56:45

当您可以使用 YouTube 免费托管视频时,为什么必须重新实现 Youtube?许多在线电子学习门户(例如可汗学院)正是这样做的。

至于使用的最佳视频格式 - 请阅读 H.264/AVC 。这就是 YouTube 目前使用的。

Why do you have to re-implement Youtube when you can just use it for hosting your videos for free? Many online e-learning portals (e.g. Khan academy) do exactly that.

As far as the best video format to use -- go read about H.264/AVC. It's what Youtube currently uses.

波浪屿的海角声 2024-10-16 09:56:45

我认为您不会找到已经构建的解决方案;)

但这并不是那么难。您可以使用现有的框架,这将使您在构建帐户管理系统时变得更轻松,其余的应该不会那么难(假设您真的不想重新构建整个 Youtube ;D )。

要播放视频,您可以使用JW Player。一个很棒的软件,你应该看看。

I think you will not find already built solution ;)

But it's not really that hard. You can use existing frameworks that will make your life easier while you build account management system, the rest shouldn't be really that hard (assuming you don't really want to re-build the whole Youtube ;D ).

For playing videos, you can use JW Player. A great piece of software, you should check it out.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文