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

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

问题描述

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

我已经在我的github存储库中创建了一个.buildpacks(不超出限制)文件.这就是其中的内容:

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

每次我尝试将更改推送到heroku时,这就是我得到的:

-----> Fetching custom git buildpack... failed ! Push rejected, error fetching custom buildpack

毫无疑问,关于ffmpeg安装的信息不多 在heroku上.我在这里想念什么?

解决方案

我刚刚用从Heroku克隆的演示应用程序尝试过此操作:

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

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

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

https://devcenter.heroku.com/articles/对一个应用使用多个buildpacks

并具有官方支持的ffmpeg buidback,您可以使用:

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

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

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

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

-----> Fetching custom git buildpack... failed ! Push rejected, error fetching custom buildpack

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

解决方案

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

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

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

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

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天全站免登陆