视频上传和播放Flowplayer使用Amazon S3和其他Web服务 [英] Video upload and playback in Flowplayer using Amazon S3 and other webservices

查看:252
本文介绍了视频上传和播放Flowplayer使用Amazon S3和其他Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望做到以下几点。我希望各位高手可以审查步骤,让我知道,如果有可能,或者哪一步没有我的计划土崩瓦解。我很抱歉,如果这个格式是不是有效的,但我想看到我的思维过程中的步骤将是最好的。太谢谢你了。

  1. 在购买一个Amazon S3存储账户(开始试行)
  2. 创建上传我的网站上,这将允许用户上传的 亚马逊的存储(网络上传)
  3. 创建定做codeD数据库将链接的视频 在网站上(标题,用户,意见,日期等),以实际的元数据 文件地址在亚马逊的存储。这个步骤是重要的,因为它会 让谁上传的视频删除视频用户,更改 该网站,更多的视频节目。
  4. 定做code网页,基于视频ID查找文件的地址(第3步数据库)
  5. 定做code网页播放从亚马逊存储的文件中 Flowplayer flash播放器

希望这些措施传达我的目标。

我的问题:

  1. Flowplayer接受以下文件格式:FLV,H.264,MP4。出于方便起见,我想照顾的文件转换为我的用户,我认为这就是YouTube和大的视频公司做。我怎样才能做到这一点,在步骤2(视频上传)?
  2. 第三步,也就是建立数据库到Amazon S3存储链接到我的网站的实际用户/视频元数据似乎有点复杂。亚马逊是否有需要照顾所有这一切对我来说是服务(容易吗?)

太感谢了!

解决方案
  1. 您将上传到中间服务器,你会EN code将其存储在S3之前的影片中所需要的格式。 EC2可能会是一个不错的选择这里EC2和S3之间的转账是免费的,速度非常快。

    FFmpeg的是用于将视频或者你可以考虑喜欢的 encoding.com 大多数的大牌球员在这个空间支持推拉到S3本身了。

  2. 亚马逊没有真的有什么服务,索引和跟踪S3的视频。虽然你可以使用API​​查询S3或元数据添加到S3的对象,你肯定是最好的跟踪一切都在自己的数据库。使用任何数据库,你是舒服 - 你只需要存储S3 每个文件(文件名)以及您想链接任何其他用户的数据

I'm looking to do the following. I was hoping you expert could review the steps and let me know if it is possible, or at which step does my plan fall apart. I apologize if this format is not effective, but I think seeing my thought process in steps will be best. Thank you so much.

  1. Purchase an Amazon S3 storage account (start with trial)
  2. Create uploader on my website that will allow users to upload to the Amazon storage (web uploader)
  3. Create custom-coded database that will link video metadata on website (Title, User, Views, Date, etc) to the actual file address on Amazon storage. This step is important, as it will allow a user who uploaded a video to remove a video, change the video title on the website, and more.
  4. Custom-code webpage to locate file address based on video id (step 3-database)
  5. Custom-code webpage to play that file from Amazon storage in Flowplayer flash player

Hopefully these steps convey my goal.

My questions:

  1. Flowplayer accepts the following file formats: FLV, H.264, MP4. Out of convenience, I would want to take care of file conversion for my users, as I assume that is what YouTube and the big video companies do. How can I do this in step 2 (video upload)?
  2. Step 3, which is setting up the database to link Amazon S3 storage to the actual users/video metadata on my site seems somewhat complicated. Does Amazon have a service that takes care of all of this for me (easily?)

Thanks so much!

解决方案

  1. You would upload to an Intermediate server where you would encode the videos in the desired formats before storing them on S3. EC2 would probably be a good fit here as transfers between EC2 and S3 are free and very fast.

    FFmpeg is a common tool used to convert videos or you might consider a 3rd party solution like encoding.com Most of the big players in this space support pulling and pushing to S3 natively too.

  2. Amazon doesn't really have any service to index and track your S3 videos. Whilst you can query S3 using the APIs or add metadata to S3 objects, you're definitely better off tracking everything in your own database. Use whatever database you are comfortable with - you only need to store the S3 bucket and key (filename) of each file along with any other user data you wish to link.

这篇关于视频上传和播放Flowplayer使用Amazon S3和其他Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆