让ffmpegthumbnailer在heroku上工作

让ffmpegthumbnailer在heroku上工作,heroku,ffmpeg,Heroku,Ffmpeg,有人让ffmpegthumbnailer在heroku工作吗?我能在网上找到的唯一文档如下: 而且似乎从来没有人回答过 当我尝试安装ffmpegthumbnailer时,出现了以下错误: checking for FFMPEG... no configure: error: Package requirements (libavutil libavformat libavcodec >= 52.26.0 libswscale) were not met: No package 'lib

有人让ffmpegthumbnailer在heroku工作吗?我能在网上找到的唯一文档如下:

而且似乎从来没有人回答过

当我尝试安装ffmpegthumbnailer时,出现了以下错误:

checking for FFMPEG... no
configure: error: Package requirements (libavutil libavformat libavcodec >= 52.26.0 libswscale) were not met:

No package 'libavutil' found
No package 'libavformat' found
No package 'libavcodec' found
No package 'libswscale' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables FFMPEG_CFLAGS
and FFMPEG_LIBS to avoid the need to call pkg-config.
不过,我确实安装了ffmpeg,我可以通过heroku查看哪个ffmpeg,它返回供应商/ffmpeg/bin/ffmpeg

我尝试添加环境变量FFMPEG\u CFLAGS和FFMPEG\u LIBS:

FFMPEG_CFLAGS:   bin:vendor/ffmpeg/include:vendor/libav/include
FFMPEG_LIBS:     vendor/ffmpeg/lib:vendor/libav/lib
LD_LIBRARY_PATH: vendor/ffmpeg/lib:/usr/local/lib
PATH:            bin:vendor/ffmpeg/bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin

在安装ffmpegthumbnailer时,如何让Heroku应用程序识别我安装的ffmpeg?

以下是如何在Heroku应用程序上安装ffmpeg和ffmpegthumbnailer的完整说明。我花了几个星期的时间才最终完成这项工作,所以我希望这能帮助其他人解决问题