有没有人让ffmpegthumbnailer在heroku上工作?我在网上找到的唯一文件是:
Using Heroku Vulcan to build lib with dependency
似乎从来没有回答过。
当我尝试安装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 ,它返回 vendor / ffmpeg / bin / ffmpeg
我尝试添加环境变量FFMPEG_CFLAGS和FFMPEG_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安装?
答案 0 :(得分:2)
以下是有关如何在heroku应用程序上安装ffmpeg和ffmpegthumbnailer的完整说明。我花了几个星期才终于开始工作,所以我希望这可以帮助其他人!