在 Heroku 上安装 FFMPEG [英] Install FFMPEG on Heroku

查看:30
本文介绍了在 Heroku 上安装 FFMPEG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装 FFMPEG 以使用我的 NodeJs 服务器.我正在使用 heroku-buildpack-multi 插件:
heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

I am trying to install FFMPEG to work with my NodeJs server. I am using heroku-buildpack-multi plugin:
heroku config:set BUILDPACK_URL=https://github.com/ddollar/heroku-buildpack-multi.git

我在我的 github 存储库中创建了一个 .buildpacks(没有扩展)文件.这是它包含的内容:

I have created a .buildpacks (without extesion) file at my github repository. This is what it includes:

https://github.com/jayzes/heroku-buildpack-ffmpeg
https://github.com/heroku/heroku-buildpack-nodej

每次我尝试将更改推送到 heroku 时,我都会得到:

Each time i am trying to push my changes to heroku, this is what i get:

<代码>----->获取自定义 git buildpack ... 失败!推送被拒绝,获取自定义构建包时出错

不幸的是,关于ffmpeg安装的信息并不多在heroku上.我在这里错过了什么?

Unforlunatly, there is not much information regarding ffmpeg installtion on heroku. What am i missing here?

推荐答案

我刚刚用我从 Heroku 克隆的演示应用程序尝试了这个:

I just tried this with a demo app I cloned from Heroku:

https://github.com/heroku/node-js-getting-启动.git

我能够按照您上面列出的相同步骤成功部署,除了我在第二个 buildpack 的末尾添加了一个s"(您有错别字 - 这可能是问题吗?):https://github.com/heroku/heroku-buildpack-nodejs

I was able to deploy successfully following the same steps you listed above, except I added an 's' to the end of your second buildpack (you have a typo - could this be the issue?): https://github.com/heroku/heroku-buildpack-nodejs

我建议使用新的代码库执行相同的过程,以帮助对您的环境进行故障排除.但请注意两件事:1) 您使用的 heroku-buildpack-multi 插件已被弃用,以及 2) Heroku 正式支持多个 buildpack:

I would recommend following the same process with a fresh codebase to help troubleshoot your environment. But note two things: 1) The heroku-buildpack-multi plugin you're using is deprecated, and 2) Heroku officially supports multiple buildpacks:

https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app

并且有一个官方支持的 ffmpeg buidback 你可以使用:

and has an officially supported ffmpeg buidback you can use:

https://elements.heroku.com/buildpacks/jonathanong/heroku-buildpack-ffmpeg-latest

这篇关于在 Heroku 上安装 FFMPEG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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