diff --git a/.ebextensions-dev/02-ffmpeg-package.config b/.ebextensions-dev/02-ffmpeg-package.config index 714c7d9..9d36580 100644 --- a/.ebextensions-dev/02-ffmpeg-package.config +++ b/.ebextensions-dev/02-ffmpeg-package.config @@ -1,17 +1,11 @@ -packages: - yum: - ImageMagick: [] - ImageMagick-devel: [] commands: 01-wget: - command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz" + command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz" 02-mkdir: command: "if [ ! -d /opt/ffmpeg ] ; then mkdir -p /opt/ffmpeg; fi" 03-tar: - command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg" + command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1" 04-ln: - command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-4.2.2-amd64-static/ffmpeg /usr/bin/ffmpeg; fi" + 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 -sf /opt/ffmpeg/ffmpeg-4.2.2-amd64-static/ffprobe /usr/bin/ffprobe; fi" - 06-pecl: - command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi" \ No newline at end of file + command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -s /opt/ffmpeg/ffprobe /usr/bin/ffprobe; fi"