好吧,我已经在谷歌上搜索了一段时间,但我似乎找不到关于如何从我的托管服务器连接到 Amazon S3 帐户的好教程。如果有人知道一个好的分步教程,请发布网址。
以下是有关我想要实现的目标的更多信息。我正在使用 Vidiscript,它是 YouTube 的克隆版本,我想通过将所有视频上传到亚马逊 S3 帐户来节省磁盘空间和带宽,而且我还需要大量上传,因为 vidiscript 不提供一种免费的方式来上传多个视频一次。我想创建一个 cron 作业来检查新上传的视频并将信息添加到数据库中。但我仍然需要想出一种方法来创建视频预览缩略图,因此我可能必须上传到托管,然后创建缩略图,然后上传到亚马逊 S3 帐户,然后从托管中删除文件。
但无论哪种方式,我都需要从托管服务器连接到我的亚马逊 S3 帐户。
我将使用 flowplayer 的伪流媒体插件流式传输所有视频。
任何节省带宽和大量上传的替代解决方案也将受到赞赏。
Ok I been Googling for a while now, and i can't seem to find a good tutorial on how to connect to an Amazon S3 account from my hosting server. If anyones knows of a good step by step tutorial please post url.
Here's a little bit more info on what im trying to accomplish. im using Vidiscript which is a YouTube clone I want to save on disk space and bandwidth by uploading all videos to an amazon S3 account and i also needed away to mass upload since vidiscript doesn't offer a free way to upload more that one video at a time. I wanted to create a cron job that checks for newly upload videos and adds info to database. but I still have to come up with a way to create a preview thumbnail for videos so I might have to upload to hosting then create thumbnails then upload to amazon S3 account then delete files from hosting.
But either way I need to connect to my amazon S3 account from hosting server.
I will be streaming all videos using flowplayer's pseudostreaming plugin.
any alternative solutions to save on bandwidth and mass upload would also be appreciated.
发布评论
评论(3)
您可以使用 FUSE 将 AWS S3 目录映射到本地。有几个项目可以实现这一目标。
You can map AWS S3 directory to your local using FUSE. There are several projects to achieve that.
看起来 Vidiscript 是基于 PHP 的,所以我会选择 php-aws
Looks like Vidiscript is based on PHP so I'd go with php-aws
这是为了回应问题的一部分
“我还需要大量上传,因为 vidiscript 不提供一种免费的方式来一次上传多个视频。我想创建一个 cron 作业来检查新上传的视频并向数据库添加信息”
这是免费批量上传的测试版。
http://dev.vidiscript.co.uk/VidiScriptOriginalNew/
用户名:admin 密码:admin
单击上传,请注意上传表单分为两部分。
您可以为此文件设置一个 cron 作业
http://youServer/VidiscriptFolder/process.php
您可以从 vidiscript.co.uk
This is in response to the part of the problem
"I also needed away to mass upload since vidiscript doesn't offer a free way to upload more that one video at a time. I wanted to create a cron job that checks for newly upload videos and adds info to database"
Here's a beta of free bulk upload.
http://dev.vidiscript.co.uk/VidiScriptOriginalNew/
username:admin password:admin
click on upload ,note that upload form is in 2 parts.
you can setup a cron job for this file
http://youServer/VidiscriptFolder/process.php
you can download the updated version of vidiscript from vidiscript.co.uk