Handling video uploads is difficult. You have to keep connections open for a long time, then transcode the video (to FLV if you want a YouTube-style site), the store the video, then stream it back to users, all which takes up a lot of CPU, disk space, bandwidth.
Developing all of that from scratch would take a lot of effort.
If you want an out-of-the-box video upload feature I would look at the various video modules for the major CMS's (like this one for Drupal).
You could also integrate with a site like YouTube, using YouTube to upload and stream the video (there's also a Drupal module for that). There are also commercial services like VitalStream which will handle video uploading for you (via an iframe).
如果您不想学习, 新语言/使用数据库服务器,您应该使用 youtube 嵌入系统,这非常简单。您可以通过在 Google 上输入“youtube embed”来查看有关 YouTube 嵌入系统的帮助。
if you are ready to learn new stuff I would recommend using PHP/MYSQL with a file uploader like the one included in tinyMCE, the license cost about 60$ I think, once the video is uploaded you can work on it via the PHP plugin FFMPEG installed on many host.
FFMPEG allow you to convert the video format and also to create thumbnail of the video automatically.
If you prefer not to learn new language / use database server, you should go with the youtube embedding system which is quite simple. You can view help about the youtube embedding system by typing "youtube embed" on Google.
至于数据库,我会在本地安装 CF 服务器,并将其指向本地 Access 数据库进行测试(假设您没有 MySQL 或任何其他可用的数据库)。至于实施。 。 。好吧,这实际上取决于您想要做什么。我要指出的是,如果您在制作中托管此内容,您会发现您的带宽会更快用完,因为电影可能会变得相当大。
I would run with Coldfusion:
it is a very easy language to pick up
its syntax looks very much like HTML
its easy to configure the server
its very stable and has a huge community that is very passionate about helping developers learn the language (without getting snotty like some developers do in languages I have dabbled in) The CF community will never tell you to RTFM, they will help you learn frameworks and best practices.
As for a database, I would install the CF server locally, and point it at a local Access database for testing (assuming you don't have MySQL or any other DB available to you). As for implementation . . . well that is really up to what you want to do. I will throw out that if you host this in production, you will find that your bandwidth will be used up faster as movies can get to be rather large.
发布评论
评论(3)
处理视频上传很困难。您必须长时间保持连接打开,然后对视频进行转码(如果您想要 YouTube 风格的网站,则转码为 FLV),存储视频,然后将其流式传输回用户,所有这些都会占用大量 CPU、磁盘空间、带宽。
从头开始开发所有这些需要付出很大的努力。
如果您想要开箱即用的视频上传功能,我会查看主要 CMS 的各种视频模块(例如 这个适用于 Drupal)。
您还可以与 YouTube 等网站集成,使用 YouTube 上传和流式传输视频(还有一个 Drupal 模块用于此目的)。还有一些商业服务,例如 VitalStream,可以为您处理视频上传(通过 iframe)。
Handling video uploads is difficult. You have to keep connections open for a long time, then transcode the video (to FLV if you want a YouTube-style site), the store the video, then stream it back to users, all which takes up a lot of CPU, disk space, bandwidth.
Developing all of that from scratch would take a lot of effort.
If you want an out-of-the-box video upload feature I would look at the various video modules for the major CMS's (like this one for Drupal).
You could also integrate with a site like YouTube, using YouTube to upload and stream the video (there's also a Drupal module for that). There are also commercial services like VitalStream which will handle video uploading for you (via an iframe).
如果您准备好学习新东西,我建议您使用 PHP/MYSQL 和文件上传器,例如tinyMCE中包含的文件上传器,许可证费用约为 60 美元,我认为,视频上传后您可以通过 PHP 插件 FFMPEG 进行处理安装在许多主机上。
FFMPEG 允许您转换视频格式并自动创建视频缩略图。
您可以查看这些网站以获取参考/许可
http://tinymce.moxiecode.com
如果您不想学习, 新语言/使用数据库服务器,您应该使用 youtube 嵌入系统,这非常简单。您可以通过在 Google 上输入“youtube embed”来查看有关 YouTube 嵌入系统的帮助。
if you are ready to learn new stuff I would recommend using PHP/MYSQL with a file uploader like the one included in tinyMCE, the license cost about 60$ I think, once the video is uploaded you can work on it via the PHP plugin FFMPEG installed on many host.
FFMPEG allow you to convert the video format and also to create thumbnail of the video automatically.
You can view those site for reference / license
http://tinymce.moxiecode.com
If you prefer not to learn new language / use database server, you should go with the youtube embedding system which is quite simple. You can view help about the youtube embedding system by typing "youtube embed" on Google.
我会使用 Coldfusion:
非常热衷于提供帮助
开发人员学习语言
(不会像某些人那样流鼻涕
开发人员使用我拥有的语言进行操作
涉足)CF社区将
永远不要告诉你 RTFM,他们会的
帮助你学习框架和最好的
做法。
至于数据库,我会在本地安装 CF 服务器,并将其指向本地 Access 数据库进行测试(假设您没有 MySQL 或任何其他可用的数据库)。至于实施。 。 。好吧,这实际上取决于您想要做什么。我要指出的是,如果您在制作中托管此内容,您会发现您的带宽会更快用完,因为电影可能会变得相当大。
I would run with Coldfusion:
that is very passionate about helping
developers learn the language
(without getting snotty like some
developers do in languages I have
dabbled in) The CF community will
never tell you to RTFM, they will
help you learn frameworks and best
practices.
As for a database, I would install the CF server locally, and point it at a local Access database for testing (assuming you don't have MySQL or any other DB available to you). As for implementation . . . well that is really up to what you want to do. I will throw out that if you host this in production, you will find that your bandwidth will be used up faster as movies can get to be rather large.