Skip to content

Instantly share code, notes, and snippets.

@Mikodes
Forked from watanabeyu/ffmpeg-download.config
Created December 13, 2018 00:10
Show Gist options
  • Save Mikodes/b1db60b9b7ec739199da2a1becabeb72 to your computer and use it in GitHub Desktop.
Save Mikodes/b1db60b9b7ec739199da2a1becabeb72 to your computer and use it in GitHub Desktop.
elastic beanstalkでffmpegをインストールするためのebextensionsコンフィグ(.ebextensions/ffmpeg-download.config)
packages:
yum:
ImageMagick: []
ImageMagick-devel: []
container_commands:
01-wget:
command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/release-source"
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"
04-unlink:
command: "if [[ -f /usr/bin/ffmpeg ]] ; then unlink /usr/bin/ffmpeg; fi"
05-ln:
command: "ln -sf /opt/ffmpeg/ffmpeg-3.4.1-64bit-static/ffmpeg /usr/bin/ffmpeg"
06-unlink:
command: "if [[ -f /usr/bin/ffmpeg ]] ; then unlink /usr/bin/ffprobe; fi"
07-ln:
command: "ln -sf /opt/ffmpeg/ffmpeg-3.4.1-64bit-static/ffprobe /usr/bin/ffprobe"
08-pecl:
command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment