将视频转换为Flash和Ruby上的mp4 ruby​​? [英] Converting video to flash and mp4 ruby on rails?

查看:105
本文介绍了将视频转换为Flash和Ruby上的mp4 ruby​​?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前是我们青年教堂网站base上的主要开发人员(只读开发人员!).

I'm currently the lead dev (read only dev!) on a website for our youth church called base..

http://mybase.co

此刻,我正在对该网站进行"2.0"样式的迭代,希望使它的内容更加丰富并且对移动设备更加友好.

At the moment i'm working on a "2.0" style iteration of the site hoping to make it more content rich and more mobile friendly..

我们一直在使用Vimeo托管我们的视频,但希望开始托管我们自己的视频,以便当我们想要制作一个iPhone应用程序以流式传输最新内容时,我们已经在自己的服务器上准备了一个庞大的视频目录继续,它还为我们提供了许多其他灵活性..

We have been using Vimeo to host our videos but would like to start hosting our own videos so that when we wanna do an iphone app for streaming the latest content we've got a big catalog of videos on our own server ready to go, plus it gives us a lot of other flexibility..

当我们将视频上传到Flash版本和iOS就绪版本时,我正在寻找一种转换视频的方法.

I'm looking for a way of converting videos when we upload them to both a flash version and an iOS ready version.

该站点是基于ruby构建的,并托管在Ubuntu 10.04服务器上,我对该服务器具有完全的root访问权限,并且可以安装任何必需的软件..

The site is built on ruby on rails and hosted on a Ubuntu 10.04 server i have full root access to the server and can install anything necessary..

基本上我要问的是:

  1. 从红宝石转换视频的最简单方法是什么(我听说过有关FFMPEG的一些嗡嗡声)
  2. 它会完全消耗资源吗? (它是一个虚拟服务器,具有1.5GB的ram托管了另外两个站点,因此即使转换需要几个小时,仍然可以降低资源使用率,这还是很棒的)
  3. 是否有一种不错"的方式? (一个干净的API,适合使用system("convert ma videoze")进行炮击)

谢谢:)

丹尼尔

推荐答案

  1. FFMPEG 确实是您所需要的.

随着您将发送给它的作业越来越多,它将消耗更多的RAM.但是您可以组织简单的队列和后台作业来转换视频.

As more jobs you'll send to it, as more it will eat of your RAM. But you can organize simple queue and background job for converting video.

我从未使用过宝石,但是您可以查看此列表:

I have never used gems for it but you can look this list:

  • http://rubygems.org/gems/ffmpeg-ruby ( https://github.com/hackerdude/ffmpeg-ruby )
  • or this fork http://github.com/gwik/ffmpeg-ruby
  • http://rvideo.rubyforge.org/

这篇关于将视频转换为Flash和Ruby上的mp4 ruby​​?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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