【问题标题】:HTML5 audio conversion using NodeJS on Heroku在 Heroku 上使用 NodeJS 进行 HTML5 音频转换
【发布时间】:2013-07-29 13:49:51
【问题描述】:

我有一个 HTML5 应用程序,允许用户上传和播放他们的音频文件。服务器是运行在 Heroku 上的 Node。

为了允许跨浏览器播放音频,我的理解是我必须至少维护每个音频文件的两种格式,比如 .mp3 和 .ogg。所以,我需要在服务器端自动对文件进行转码。

问题是 Heroku 不运行 ffmpeg。我发现这个项目为支持 ffmpeg 的 heroku 创建了一个自定义构建包,但它似乎适用于 Rails 应用程序:https://github.com/dzello/ffmpeg-heroku

我正在考虑运行一个外部服务器进行转码,我的 nodejs 应用程序将文件发送到该服务器,它进行转码,并在我的 nodejs 服务器上重新上传新文件。但我不知道如何设置这样的服务器,是否已经有现成的解决方案可以完成这种工作?

所以,这是我的问题:

1- Is there a solution to run ffmpeg on heroku+nodejs?

2- How can I set up a transcoding server that communicates with my nodejs+heroku server?

谢谢!

【问题讨论】:

    标签: node.js heroku ffmpeg html5-audio transcoding


    【解决方案1】:

    为什么需要在 heroku 上运行它?只需设置一些虚拟服务器,例如在Digital Ocean

    并使用 linux 服务器来设置节点。这很简单,可以运行所需的每个包。它已经有带有预配置 node.js+mongodb 堆栈的 droplet

    【讨论】:

      猜你喜欢
      • 2011-10-17
      • 2014-10-24
      • 1970-01-01
      • 2011-07-03
      • 1970-01-01
      • 1970-01-01
      • 2012-03-14
      • 2012-05-27
      • 1970-01-01
      相关资源
      最近更新 更多