Install ffmpeg on elastic beanstalk using ebextensions config
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
add a comment |
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
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
add a comment |
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
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
amazon-web-services ffmpeg elastic-beanstalk
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
add a comment |
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
add a comment |
6 Answers
6
active
oldest
votes
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.
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
add a comment |
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
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 isxz
. 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
|
show 4 more comments
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:
- specify the version for wget
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"
add a comment |
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
Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
– user3581244
Apr 29 '14 at 22:21
add a comment |
Untested, but shouldn't it be
tar xzf /usr/local/bin/ffmpeg
without a minus?
It doesn't seem to make a difference unfortunately. Thank you for your response though.
– user3581244
Apr 29 '14 at 22:20
add a comment |
add the following to your .ebextensions/packages.config
packages:
yum:
ImageMagick:
sources:
/usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
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
add a comment |
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.
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
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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
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 isxz
. 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
|
show 4 more comments
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
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 isxz
. 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
|
show 4 more comments
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
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
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 isxz
. 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
|
show 4 more comments
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 isxz
. 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
|
show 4 more comments
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:
- specify the version for wget
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"
add a comment |
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:
- specify the version for wget
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"
add a comment |
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:
- specify the version for wget
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"
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:
- specify the version for wget
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"
answered Sep 5 '17 at 14:59
Adrian Goris
211
211
add a comment |
add a comment |
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
Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
– user3581244
Apr 29 '14 at 22:21
add a comment |
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
Thanks for this, certainly helps in debugging but unfortunately still can't figure it out.
– user3581244
Apr 29 '14 at 22:21
add a comment |
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
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
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
add a comment |
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
add a comment |
Untested, but shouldn't it be
tar xzf /usr/local/bin/ffmpeg
without a minus?
It doesn't seem to make a difference unfortunately. Thank you for your response though.
– user3581244
Apr 29 '14 at 22:20
add a comment |
Untested, but shouldn't it be
tar xzf /usr/local/bin/ffmpeg
without a minus?
It doesn't seem to make a difference unfortunately. Thank you for your response though.
– user3581244
Apr 29 '14 at 22:20
add a comment |
Untested, but shouldn't it be
tar xzf /usr/local/bin/ffmpeg
without a minus?
Untested, but shouldn't it be
tar xzf /usr/local/bin/ffmpeg
without a minus?
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
add a comment |
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
add a comment |
add the following to your .ebextensions/packages.config
packages:
yum:
ImageMagick:
sources:
/usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz
add a comment |
add the following to your .ebextensions/packages.config
packages:
yum:
ImageMagick:
sources:
/usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz
add a comment |
add the following to your .ebextensions/packages.config
packages:
yum:
ImageMagick:
sources:
/usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz
add the following to your .ebextensions/packages.config
packages:
yum:
ImageMagick:
sources:
/usr/local/bin: http://ffmpeg.org/releases/ffmpeg-4.1.tar.gz
answered Nov 20 at 9:51
a14m
4,58433554
4,58433554
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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