gpt4 book ai didi

heroku - 让 ffmpegthumbnailer 在 heroku 上工作

转载 作者:行者123 更新时间:2023-12-04 22:56:22 26 4
gpt4 key购买 nike

有没有人让 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 ,返回 供应商/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?

最佳答案

以下是有关如何在 heroku 应用程序上安装 ffmpeg 和 ffmpegthumbnailer 的完整说明。我花了几个星期才终于完成这项工作,所以我希望这对其他人有所帮助!

https://gist.github.com/ttseng/7682321

关于heroku - 让 ffmpegthumbnailer 在 heroku 上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20155183/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com