向我的 Rails 应用程序添加视频上传、编码和流媒体功能的最佳方法是什么?
向我的 Rails 应用程序添加视频上传、编码和流媒体功能的最佳方式是什么?
我正在考虑这样的组合:Rails 应用程序 + 视频在线编码器 + Amazon S3。你怎么认为 ?
对于视频在线编码器 (VOE),哪一个更容易与 Rails 一起使用:heywatch、panvidea、encoding.com、pandastream,...?
顺便说一句,该应用程序将允许用户播放流视频,并在运行时添加动态文本、模式和声音。有一个例子:
- 在rails应用程序(后台或前台)中:视频上传(.mov,.avi,...)
- VOE:FLV格式的视频编码+存储在Amazon S3中
- 在rails应用程序中,后台:在自制Flash中例如,在应用程序中,向视频“添加”1 分钟后显示的文本和模式(信息存储在 Rails 应用程序数据库中)。
- 在 Rails 应用程序中,前台:在自制 Flash 播放器中播放来自 Amazon S3 (+Cloudfront) 的流式视频,播放 1 分钟后动态显示视频上的文本和架构。
我真正不明白的部分是FLV视频流。我认为 Cloudfront 可以做到这一点。
我希望我说得足够清楚;-)
谢谢大家的回答!
What is the best way to add video uploading, encoding and streaming functionality to my Rails app ?
I'm thinking about a mix as : Rails app + Video Online Encoder + Amazon S3. What do you think ?
For the Video Online Encoder (VOE), which one is the easier to use with Rails : heywatch, panvidea, encoding.com, pandastream, ... ?
By the way, the application will allow users to play streamed videos with dynamic Texts, Schemas and Sounds added to them at the run time. There's an example :
- in rails app (backoffice or frontoffice) : Video upload (.mov, .avi, ...)
- VOE : video encoding in FLV format + storage in Amazon S3
- in rails app, backoffice : in a home-made Flash application, "add" to the video a Text and a Schemas showed after 1 minute for example (informations stored in the Rails app DB).
- in rails app, frontoffice : play the streamed video from Amazon S3 (+Cloudfront) in a home-made Flash player which show dynamicaly the Text and the Schema over the video after 1 minute of playing.
The part I really don't understand is the FLV video Stream. I was thinking that Cloudfront could do that.
I hope I'm clear enough ;-)
Thank you all for your answers !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
免责声明:我是 transloadit.com 的联合创始人。
我不鼓励您推出自己的解决方案。发布的链接 alexy13 肯定会为您提供一个可以接收用户视频并对其进行编码的应用程序。但是,您最终会遇到一些限制:
这是一个简短的问题列表,但通常大约需要 100 小时才能拥有一个运行无故障且可以处理某些负载的系统。
因此,我鼓励您重新考虑使用服务。我们的竞争对手都很好,但如果您能查看我们的服务 (transloadit.com) 或给我发送电子邮件 [电子邮件受保护]如果您有任何疑问。
还有一个 Rails3 示例应用程序,用于将 transloadit 与 paperclip 和 S3 结合使用:
http://github.com/joerichsen/transloadit-paperclip -示例
--fg
Disclaimer: I am a co-founder for transloadit.com.
I would discourage you from rolling your own solution. The link alexy13 posted will certainly get you an application that can receive user videos and encode them. However, you'll end up with a few limitations:
This is a short list of problems, but generally you are ~100 hours away from having a system that runs without hickups and can deal with some load.
So I would encourage you to re-consider going with a service. Our competitors are quite nice, but of course I'd also be very happy if you would check out our service (transloadit.com) or shoot me an email at [email protected] if you have any questions.
There is also a Rails3 sample application for using transloadit with paperclip and S3:
http://github.com/joerichsen/transloadit-paperclip-example
--fg
Zencoder 看起来很酷,它可能具有您想要的 API 支持。我猜播放器使用闪光灯?为此,您将需要 FMS 或 Red5。这是一个非常简单的示例的链接,该示例为您转码存储在 S3 中的内容,当然是用 Ruby!: http://zencoder.com/docs/integration-libraries/#library
Zencoder looks cool and it probably has the API support you want. Use flash for the player I'm guessing? You will need FMS or Red5 for that. Here is a link to a really simple example that transcodes something stored in S3 for you, in Ruby of course!: http://zencoder.com/docs/integration-libraries/#library
我会对使用免费的第三方在线服务感到怀疑。我会考虑使用服务器端视频编码,因为第三方 Web 服务可能具有可变的性能,并且基本上可以对视频执行任何操作。如果您没有很多 CPU,那么第三方服务可能是一个不错的选择。
编辑:此链接应该帮助你一点
I would feel skeptical using a free third party online service. I would consider using server-side video encoding because the third-party web service could have variable performance, and could do basically anything to the video. If you don't have many CPU's then a third-party service might be a good choice.
EDIT: This Link should help you a bit