【发布时间】:2017-01-07 13:47:23
【问题描述】:
这不是重复的,我找到了一个线程,它已经过时并且不起作用: Install ffmpeg on elastic beanstalk using ebextensions config.
我一直在尝试安装它,但似乎没有任何效果。 请分享 config.yml 来完成这项工作。
我在 Elastic Beanstalk 上使用运行 PHP 7.0 的 64 位 Amazon Linux 2016.03 v2.1.6
我当前的文件是
branch-defaults:
default:
environment: Default-Environment
master:
environment: Default-Environment
global:
application_name: "My First Elastic Beanstalk Application"
default_ec2_keyname: ~
default_platform: "64bit Amazon Linux 2016.03 v2.1.6 running PHP 7.0"
default_region: us-east-1
profile: eb-cli
sc: git
packages: ~
yum:
ImageMagick: []
ImageMagick-devel: []
commands:
01-wget:
command: "wget -O /tmp/ffmpeg.tar.gz http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz"
02-mkdir:
command: "if [ ! -d /opt/ffmpeg ] ; then mkdir -p /opt/ffmpeg; fi"
03-tar:
command: "tar -xzf ffmpeg.tar.gz -C /opt/ffmpeg"
cwd: /tmp
04-ln:
command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -s /opt/ffmpeg/ffmpeg /usr/bin/ffmpeg; fi"
05-ln:
command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -s /opt/ffmpeg/ffprobe /usr/bin/ffprobe; fi"
06-pecl:
command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"
【问题讨论】:
-
我建议您切换到使用 docker 映像,这样您可以更轻松地设置 ffmpeg
标签: php ffmpeg amazon-elastic-beanstalk