2013-11-22 66 views
1

有沒有人得到ffmpegthumbnailer在heroku上工作?我可以在網上找到的唯一文檔是在這裏:讓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安裝?

回答

2

以下是有關如何在heroku應用程序上安裝ffmpeg和ffmpegthumbnailer的完整說明。我花了好幾個星期才完成這個工作,所以我希望這能幫助其他人解決問題。

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