如何在Heroku中安装FFMPEG?

时间:2018-09-03 00:51:57

标签: heroku ffmpeg discord

我在Heroku上托管了Discord音乐bot,由于找不到FFMPEG,它似乎无法播放音乐。这是可以理解的,因为FFMPEG仅在我的PC上可用,而在外部云上不可用。如何在Heroku上安装FFMPEG?

1 个答案:

答案 0 :(得分:1)

我有此问题并希望分享我发现的内容,请自行回答:

Heroku支持将ffmpeg作为应用程序的构建包。只需在https://dashboard.heroku.com/apps/[app-name]/settings上打开您的应用设置,然后向下滚动到Buildpacks,即可在其中添加https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

或者,您也可以运行CLI命令:

$ heroku buildpacks:add https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git

来源:

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