Install ffmpeg on elastic beanstalk using ebextensions config












9














I'm attempting to install an up to date version of ffmpeg on an elastic beanstalk instance on amazon servers. I've created my config file and added these container_commands:



    container_commands:
01-ffmpeg:
command: wget -O/usr/local/bin/ffmpeg http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz
leader_only: false
02-ffmpeg:
command: tar -xzf /usr/local/bin/ffmpeg
leader_only: false
03-ffmpeg:
command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg
leader_only: false


Command 01 and 03 seems to work perfectly but 02 doesn't seem to work so ffmpeg doesn't unzip. Any ideas what the issue might be?



Thanks,
Helen










share|improve this question


















  • 1




    Any help from anyone who has successfully installed an up to date version of ffmpeg and imagick on an eb instance is also welcome, whether it's completely different to the above or not.
    – user3581244
    Apr 29 '14 at 22:22
















9














I'm attempting to install an up to date version of ffmpeg on an elastic beanstalk instance on amazon servers. I've created my config file and added these container_commands:



    container_commands:
01-ffmpeg:
command: wget -O/usr/local/bin/ffmpeg http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz
leader_only: false
02-ffmpeg:
command: tar -xzf /usr/local/bin/ffmpeg
leader_only: false
03-ffmpeg:
command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg
leader_only: false


Command 01 and 03 seems to work perfectly but 02 doesn't seem to work so ffmpeg doesn't unzip. Any ideas what the issue might be?



Thanks,
Helen










share|improve this question


















  • 1




    Any help from anyone who has successfully installed an up to date version of ffmpeg and imagick on an eb instance is also welcome, whether it's completely different to the above or not.
    – user3581244
    Apr 29 '14 at 22:22














9












9








9


9





I'm attempting to install an up to date version of ffmpeg on an elastic beanstalk instance on amazon servers. I've created my config file and added these container_commands:



    container_commands:
01-ffmpeg:
command: wget -O/usr/local/bin/ffmpeg http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz
leader_only: false
02-ffmpeg:
command: tar -xzf /usr/local/bin/ffmpeg
leader_only: false
03-ffmpeg:
command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg
leader_only: false


Command 01 and 03 seems to work perfectly but 02 doesn't seem to work so ffmpeg doesn't unzip. Any ideas what the issue might be?



Thanks,
Helen










share|improve this question













I'm attempting to install an up to date version of ffmpeg on an elastic beanstalk instance on amazon servers. I've created my config file and added these container_commands:



    container_commands:
01-ffmpeg:
command: wget -O/usr/local/bin/ffmpeg http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-05.tar.gz
leader_only: false
02-ffmpeg:
command: tar -xzf /usr/local/bin/ffmpeg
leader_only: false
03-ffmpeg:
command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg
leader_only: false


Command 01 and 03 seems to work perfectly but 02 doesn't seem to work so ffmpeg doesn't unzip. Any ideas what the issue might be?



Thanks,
Helen







amazon-web-services ffmpeg elastic-beanstalk






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 28 '14 at 12:09









user3581244

29728




29728








  • 1




    Any help from anyone who has successfully installed an up to date version of ffmpeg and imagick on an eb instance is also welcome, whether it's completely different to the above or not.
    – user3581244
    Apr 29 '14 at 22:22














  • 1




    Any help from anyone who has successfully installed an up to date version of ffmpeg and imagick on an eb instance is also welcome, whether it's completely different to the above or not.
    – user3581244
    Apr 29 '14 at 22:22








1




1




Any help from anyone who has successfully installed an up to date version of ffmpeg and imagick on an eb instance is also welcome, whether it's completely different to the above or not.
– user3581244
Apr 29 '14 at 22:22




Any help from anyone who has successfully installed an up to date version of ffmpeg and imagick on an eb instance is also welcome, whether it's completely different to the above or not.
– user3581244
Apr 29 '14 at 22:22












6 Answers
6






active

oldest

votes


















22














A kind person at Amazon helped me out and sent me this config file that works, hopefully some other people will find this useful:



packages:
yum:
ImageMagick:
ImageMagick-devel:
commands:
01-wget:
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"
04-ln:
command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffmpeg /usr/bin/ffmpeg; fi"
05-ln:
command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffprobe /usr/bin/ffprobe; fi"
06-pecl:
command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"


Edit: Changed the commands to install a "more official" static build linked from the FFMPEG web site. Also, the former static build from Gusari does not seem available anymore.






share|improve this answer























  • To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
    – Thomas Kekeisen
    Aug 4 '14 at 16:58










  • Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
    – Aleem
    Nov 30 '16 at 15:12










  • Can i know whats the file name and folder structure that we need place write these commands..?
    – Jegan
    Jan 6 at 7:47










  • Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
    – Sergey Mell
    Jan 10 at 14:07












  • You should specify the lib version.
    – Barış Özçelik
    Feb 2 at 10:26



















6














You can use a static build from ffmpeg gusari and the sources syntax to automagically download and extract the binaries from a static build tar to /usr/local/bin. Here's an extremely simple example that has worked for me:



sources:
/usr/local/bin: https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz





share|improve this answer



















  • 1




    Much simpler. Thanks!
    – pztrick
    Mar 4 '16 at 17:06






  • 1




    Together we shall be gloriously lazy!
    – Vinay
    Mar 4 '16 at 22:05










  • Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
    – Eric Platon
    May 18 '17 at 0:59






  • 1




    @SizzlingCode ffprobe should be included in the static build.
    – Vinay
    Apr 26 at 16:28






  • 1




    @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
    – bdombro
    Oct 11 at 14:09



















2














The version is not specified in the first command "01-wget ..." however, it is specified when linking the files. Since the publication of this the release has been changed from "ffmpeg-3.3.1-64bit-static" to "ffmpeg-3.3.3-64bit-static" there are two solutions to fix this problem:




  1. specify the version for wget


  2. strip the containing directory on unpacking.



    03-tar:
    command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1"




Here is the full script:



packages:
yum:
ImageMagick:
ImageMagick-devel:
commands:
01-wget:
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 --strip 1"
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"





share|improve this answer





























    0














    Check cloud-init logs for messages. On a Linux instance, that would be:



    grep "03-ffmpeg" /var/log/eb-cfn-init.log


    Also, you can log to another file to make errors easier to find:



    command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg >> /var/log/my-init.log





    share|improve this answer





















    • Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
      – user3581244
      Apr 29 '14 at 22:21



















    0














    Untested, but shouldn't it be



    tar xzf /usr/local/bin/ffmpeg



    without a minus?






    share|improve this answer





















    • It doesn't seem to make a difference unfortunately. Thank you for your response though.
      – user3581244
      Apr 29 '14 at 22:20



















    0














    add the following to your .ebextensions/packages.config



    packages:
    yum:
    ImageMagick:

    sources:
    /usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz





    share|improve this answer





















      Your Answer






      StackExchange.ifUsing("editor", function () {
      StackExchange.using("externalEditor", function () {
      StackExchange.using("snippets", function () {
      StackExchange.snippets.init();
      });
      });
      }, "code-snippets");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "1"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23340771%2finstall-ffmpeg-on-elastic-beanstalk-using-ebextensions-config%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      6 Answers
      6






      active

      oldest

      votes








      6 Answers
      6






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      22














      A kind person at Amazon helped me out and sent me this config file that works, hopefully some other people will find this useful:



      packages:
      yum:
      ImageMagick:
      ImageMagick-devel:
      commands:
      01-wget:
      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"
      04-ln:
      command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffmpeg /usr/bin/ffmpeg; fi"
      05-ln:
      command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffprobe /usr/bin/ffprobe; fi"
      06-pecl:
      command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"


      Edit: Changed the commands to install a "more official" static build linked from the FFMPEG web site. Also, the former static build from Gusari does not seem available anymore.






      share|improve this answer























      • To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
        – Thomas Kekeisen
        Aug 4 '14 at 16:58










      • Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
        – Aleem
        Nov 30 '16 at 15:12










      • Can i know whats the file name and folder structure that we need place write these commands..?
        – Jegan
        Jan 6 at 7:47










      • Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
        – Sergey Mell
        Jan 10 at 14:07












      • You should specify the lib version.
        – Barış Özçelik
        Feb 2 at 10:26
















      22














      A kind person at Amazon helped me out and sent me this config file that works, hopefully some other people will find this useful:



      packages:
      yum:
      ImageMagick:
      ImageMagick-devel:
      commands:
      01-wget:
      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"
      04-ln:
      command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffmpeg /usr/bin/ffmpeg; fi"
      05-ln:
      command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffprobe /usr/bin/ffprobe; fi"
      06-pecl:
      command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"


      Edit: Changed the commands to install a "more official" static build linked from the FFMPEG web site. Also, the former static build from Gusari does not seem available anymore.






      share|improve this answer























      • To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
        – Thomas Kekeisen
        Aug 4 '14 at 16:58










      • Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
        – Aleem
        Nov 30 '16 at 15:12










      • Can i know whats the file name and folder structure that we need place write these commands..?
        – Jegan
        Jan 6 at 7:47










      • Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
        – Sergey Mell
        Jan 10 at 14:07












      • You should specify the lib version.
        – Barış Özçelik
        Feb 2 at 10:26














      22












      22








      22






      A kind person at Amazon helped me out and sent me this config file that works, hopefully some other people will find this useful:



      packages:
      yum:
      ImageMagick:
      ImageMagick-devel:
      commands:
      01-wget:
      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"
      04-ln:
      command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffmpeg /usr/bin/ffmpeg; fi"
      05-ln:
      command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffprobe /usr/bin/ffprobe; fi"
      06-pecl:
      command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"


      Edit: Changed the commands to install a "more official" static build linked from the FFMPEG web site. Also, the former static build from Gusari does not seem available anymore.






      share|improve this answer














      A kind person at Amazon helped me out and sent me this config file that works, hopefully some other people will find this useful:



      packages:
      yum:
      ImageMagick:
      ImageMagick-devel:
      commands:
      01-wget:
      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"
      04-ln:
      command: "if [[ ! -f /usr/bin/ffmpeg ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffmpeg /usr/bin/ffmpeg; fi"
      05-ln:
      command: "if [[ ! -f /usr/bin/ffprobe ]] ; then ln -sf /opt/ffmpeg/ffmpeg-3.4-64bit-static/ffprobe /usr/bin/ffprobe; fi"
      06-pecl:
      command: "if [ `pecl list | grep imagick` ] ; then pecl install -f imagick; fi"


      Edit: Changed the commands to install a "more official" static build linked from the FFMPEG web site. Also, the former static build from Gusari does not seem available anymore.







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Nov 1 '17 at 20:02









      Mark

      180410




      180410










      answered May 3 '14 at 8:05









      user3581244

      29728




      29728












      • To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
        – Thomas Kekeisen
        Aug 4 '14 at 16:58










      • Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
        – Aleem
        Nov 30 '16 at 15:12










      • Can i know whats the file name and folder structure that we need place write these commands..?
        – Jegan
        Jan 6 at 7:47










      • Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
        – Sergey Mell
        Jan 10 at 14:07












      • You should specify the lib version.
        – Barış Özçelik
        Feb 2 at 10:26


















      • To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
        – Thomas Kekeisen
        Aug 4 '14 at 16:58










      • Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
        – Aleem
        Nov 30 '16 at 15:12










      • Can i know whats the file name and folder structure that we need place write these commands..?
        – Jegan
        Jan 6 at 7:47










      • Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
        – Sergey Mell
        Jan 10 at 14:07












      • You should specify the lib version.
        – Barış Özçelik
        Feb 2 at 10:26
















      To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
      – Thomas Kekeisen
      Aug 4 '14 at 16:58




      To be complete, here are some more examples to make similar things work: snipe.net/2013/03/…
      – Thomas Kekeisen
      Aug 4 '14 at 16:58












      Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
      – Aleem
      Nov 30 '16 at 15:12




      Hi I'm having this issue while installing ffmpeg using this extension: any help would be appreciated. ` Yum does not have commands-06-pecl available for installation. Package listed in EBExtension failed to install`
      – Aleem
      Nov 30 '16 at 15:12












      Can i know whats the file name and folder structure that we need place write these commands..?
      – Jegan
      Jan 6 at 7:47




      Can i know whats the file name and folder structure that we need place write these commands..?
      – Jegan
      Jan 6 at 7:47












      Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
      – Sergey Mell
      Jan 10 at 14:07






      Works great! Just small change: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-3.4.1-64bit-static.tar.xz" To make release version and directory name correspondent.
      – Sergey Mell
      Jan 10 at 14:07














      You should specify the lib version.
      – Barış Özçelik
      Feb 2 at 10:26




      You should specify the lib version.
      – Barış Özçelik
      Feb 2 at 10:26













      6














      You can use a static build from ffmpeg gusari and the sources syntax to automagically download and extract the binaries from a static build tar to /usr/local/bin. Here's an extremely simple example that has worked for me:



      sources:
      /usr/local/bin: https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz





      share|improve this answer



















      • 1




        Much simpler. Thanks!
        – pztrick
        Mar 4 '16 at 17:06






      • 1




        Together we shall be gloriously lazy!
        – Vinay
        Mar 4 '16 at 22:05










      • Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
        – Eric Platon
        May 18 '17 at 0:59






      • 1




        @SizzlingCode ffprobe should be included in the static build.
        – Vinay
        Apr 26 at 16:28






      • 1




        @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
        – bdombro
        Oct 11 at 14:09
















      6














      You can use a static build from ffmpeg gusari and the sources syntax to automagically download and extract the binaries from a static build tar to /usr/local/bin. Here's an extremely simple example that has worked for me:



      sources:
      /usr/local/bin: https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz





      share|improve this answer



















      • 1




        Much simpler. Thanks!
        – pztrick
        Mar 4 '16 at 17:06






      • 1




        Together we shall be gloriously lazy!
        – Vinay
        Mar 4 '16 at 22:05










      • Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
        – Eric Platon
        May 18 '17 at 0:59






      • 1




        @SizzlingCode ffprobe should be included in the static build.
        – Vinay
        Apr 26 at 16:28






      • 1




        @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
        – bdombro
        Oct 11 at 14:09














      6












      6








      6






      You can use a static build from ffmpeg gusari and the sources syntax to automagically download and extract the binaries from a static build tar to /usr/local/bin. Here's an extremely simple example that has worked for me:



      sources:
      /usr/local/bin: https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz





      share|improve this answer














      You can use a static build from ffmpeg gusari and the sources syntax to automagically download and extract the binaries from a static build tar to /usr/local/bin. Here's an extremely simple example that has worked for me:



      sources:
      /usr/local/bin: https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz






      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited Sep 10 at 18:38

























      answered Oct 14 '15 at 11:10









      Vinay

      3,89642547




      3,89642547








      • 1




        Much simpler. Thanks!
        – pztrick
        Mar 4 '16 at 17:06






      • 1




        Together we shall be gloriously lazy!
        – Vinay
        Mar 4 '16 at 22:05










      • Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
        – Eric Platon
        May 18 '17 at 0:59






      • 1




        @SizzlingCode ffprobe should be included in the static build.
        – Vinay
        Apr 26 at 16:28






      • 1




        @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
        – bdombro
        Oct 11 at 14:09














      • 1




        Much simpler. Thanks!
        – pztrick
        Mar 4 '16 at 17:06






      • 1




        Together we shall be gloriously lazy!
        – Vinay
        Mar 4 '16 at 22:05










      • Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
        – Eric Platon
        May 18 '17 at 0:59






      • 1




        @SizzlingCode ffprobe should be included in the static build.
        – Vinay
        Apr 26 at 16:28






      • 1




        @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
        – bdombro
        Oct 11 at 14:09








      1




      1




      Much simpler. Thanks!
      – pztrick
      Mar 4 '16 at 17:06




      Much simpler. Thanks!
      – pztrick
      Mar 4 '16 at 17:06




      1




      1




      Together we shall be gloriously lazy!
      – Vinay
      Mar 4 '16 at 22:05




      Together we shall be gloriously lazy!
      – Vinay
      Mar 4 '16 at 22:05












      Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
      – Eric Platon
      May 18 '17 at 0:59




      Great idea. A few notes, though. Unfortunately that kind of link is not official, and risks to become obsolete. This link is dead, now. Another problem is security, when not officially supported. Note that the official FFMPEG site does provide static builds, although from a third party. Problem is the compression format is xz. EB accepts only ZIP and TAR (gz).
      – Eric Platon
      May 18 '17 at 0:59




      1




      1




      @SizzlingCode ffprobe should be included in the static build.
      – Vinay
      Apr 26 at 16:28




      @SizzlingCode ffprobe should be included in the static build.
      – Vinay
      Apr 26 at 16:28




      1




      1




      @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
      – bdombro
      Oct 11 at 14:09




      @vinay thanks! That works. Btw, I've now decided to compile myself though, so I can get AAC support.
      – bdombro
      Oct 11 at 14:09











      2














      The version is not specified in the first command "01-wget ..." however, it is specified when linking the files. Since the publication of this the release has been changed from "ffmpeg-3.3.1-64bit-static" to "ffmpeg-3.3.3-64bit-static" there are two solutions to fix this problem:




      1. specify the version for wget


      2. strip the containing directory on unpacking.



        03-tar:
        command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1"




      Here is the full script:



      packages:
      yum:
      ImageMagick:
      ImageMagick-devel:
      commands:
      01-wget:
      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 --strip 1"
      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"





      share|improve this answer


























        2














        The version is not specified in the first command "01-wget ..." however, it is specified when linking the files. Since the publication of this the release has been changed from "ffmpeg-3.3.1-64bit-static" to "ffmpeg-3.3.3-64bit-static" there are two solutions to fix this problem:




        1. specify the version for wget


        2. strip the containing directory on unpacking.



          03-tar:
          command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1"




        Here is the full script:



        packages:
        yum:
        ImageMagick:
        ImageMagick-devel:
        commands:
        01-wget:
        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 --strip 1"
        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"





        share|improve this answer
























          2












          2








          2






          The version is not specified in the first command "01-wget ..." however, it is specified when linking the files. Since the publication of this the release has been changed from "ffmpeg-3.3.1-64bit-static" to "ffmpeg-3.3.3-64bit-static" there are two solutions to fix this problem:




          1. specify the version for wget


          2. strip the containing directory on unpacking.



            03-tar:
            command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1"




          Here is the full script:



          packages:
          yum:
          ImageMagick:
          ImageMagick-devel:
          commands:
          01-wget:
          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 --strip 1"
          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"





          share|improve this answer












          The version is not specified in the first command "01-wget ..." however, it is specified when linking the files. Since the publication of this the release has been changed from "ffmpeg-3.3.1-64bit-static" to "ffmpeg-3.3.3-64bit-static" there are two solutions to fix this problem:




          1. specify the version for wget


          2. strip the containing directory on unpacking.



            03-tar:
            command: "tar xvf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip 1"




          Here is the full script:



          packages:
          yum:
          ImageMagick:
          ImageMagick-devel:
          commands:
          01-wget:
          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 --strip 1"
          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"






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Sep 5 '17 at 14:59









          Adrian Goris

          211




          211























              0














              Check cloud-init logs for messages. On a Linux instance, that would be:



              grep "03-ffmpeg" /var/log/eb-cfn-init.log


              Also, you can log to another file to make errors easier to find:



              command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg >> /var/log/my-init.log





              share|improve this answer





















              • Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
                – user3581244
                Apr 29 '14 at 22:21
















              0














              Check cloud-init logs for messages. On a Linux instance, that would be:



              grep "03-ffmpeg" /var/log/eb-cfn-init.log


              Also, you can log to another file to make errors easier to find:



              command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg >> /var/log/my-init.log





              share|improve this answer





















              • Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
                – user3581244
                Apr 29 '14 at 22:21














              0












              0








              0






              Check cloud-init logs for messages. On a Linux instance, that would be:



              grep "03-ffmpeg" /var/log/eb-cfn-init.log


              Also, you can log to another file to make errors easier to find:



              command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg >> /var/log/my-init.log





              share|improve this answer












              Check cloud-init logs for messages. On a Linux instance, that would be:



              grep "03-ffmpeg" /var/log/eb-cfn-init.log


              Also, you can log to another file to make errors easier to find:



              command: ln -s /usr/local/bin/ffmpeg /usr/bin/ffmpeg >> /var/log/my-init.log






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 28 '14 at 13:28









              faermanj

              7,93664565




              7,93664565












              • Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
                – user3581244
                Apr 29 '14 at 22:21


















              • Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
                – user3581244
                Apr 29 '14 at 22:21
















              Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
              – user3581244
              Apr 29 '14 at 22:21




              Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
              – user3581244
              Apr 29 '14 at 22:21











              0














              Untested, but shouldn't it be



              tar xzf /usr/local/bin/ffmpeg



              without a minus?






              share|improve this answer





















              • It doesn't seem to make a difference unfortunately. Thank you for your response though.
                – user3581244
                Apr 29 '14 at 22:20
















              0














              Untested, but shouldn't it be



              tar xzf /usr/local/bin/ffmpeg



              without a minus?






              share|improve this answer





















              • It doesn't seem to make a difference unfortunately. Thank you for your response though.
                – user3581244
                Apr 29 '14 at 22:20














              0












              0








              0






              Untested, but shouldn't it be



              tar xzf /usr/local/bin/ffmpeg



              without a minus?






              share|improve this answer












              Untested, but shouldn't it be



              tar xzf /usr/local/bin/ffmpeg



              without a minus?







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Apr 29 '14 at 7:34









              marco

              609414




              609414












              • It doesn't seem to make a difference unfortunately. Thank you for your response though.
                – user3581244
                Apr 29 '14 at 22:20


















              • It doesn't seem to make a difference unfortunately. Thank you for your response though.
                – user3581244
                Apr 29 '14 at 22:20
















              It doesn't seem to make a difference unfortunately. Thank you for your response though.
              – user3581244
              Apr 29 '14 at 22:20




              It doesn't seem to make a difference unfortunately. Thank you for your response though.
              – user3581244
              Apr 29 '14 at 22:20











              0














              add the following to your .ebextensions/packages.config



              packages:
              yum:
              ImageMagick:

              sources:
              /usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz





              share|improve this answer


























                0














                add the following to your .ebextensions/packages.config



                packages:
                yum:
                ImageMagick:

                sources:
                /usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz





                share|improve this answer
























                  0












                  0








                  0






                  add the following to your .ebextensions/packages.config



                  packages:
                  yum:
                  ImageMagick:

                  sources:
                  /usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz





                  share|improve this answer












                  add the following to your .ebextensions/packages.config



                  packages:
                  yum:
                  ImageMagick:

                  sources:
                  /usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 20 at 9:51









                  a14m

                  4,58433554




                  4,58433554






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Stack Overflow!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f23340771%2finstall-ffmpeg-on-elastic-beanstalk-using-ebextensions-config%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Create new schema in PostgreSQL using DBeaver

                      Deepest pit of an array with Javascript: test on Codility

                      Costa Masnaga