Skip to content

Instantly share code, notes, and snippets.

@loong
Last active November 16, 2021 06:52
Show Gist options
  • Save loong/b670903c3d8b8977afaa4440b50f48e1 to your computer and use it in GitHub Desktop.
Save loong/b670903c3d8b8977afaa4440b50f48e1 to your computer and use it in GitHub Desktop.
# Taken from https://forums.aws.amazon.com/thread.jspa?messageID=332091
sudo su -
cd /usr/local/bin
mkdir ffmpeg
cd ffmpeg
wget http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.latest.tar.gz
tar -xzf ffmpeg.static.64bit.latest.tar.gz
ln -s /usr/local/bin/ffmpeg/ffmpeg /usr/bin/ffmpeg
exit
@ocramot
Copy link

ocramot commented Nov 30, 2017

404 - not found

@mukk85
Copy link

mukk85 commented Dec 5, 2017

Change the wget and tar lines to the following and it should work.

wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
tar -xf ffmpeg-release-64bit-static.tar.xz

@arjunkesava
Copy link

Thank you!
But how to check whether its installed or not.
When I try to run ffmpeg command.
Its showing bash: ffmpeg: command not found

@stevenannett
Copy link

Try whereis ffmpeg If you get a response of ffmpeg: /usr/bin/ffmpeg /usr/local/bin/ffmpeg then it's probably a directory change required e.g.

cd /user/local/bin/ffmpeg/
sudo mv ffmpeg-3.4.2-64bit-static/* .

Now the command ffmpeg should work.

It would be great if the script could do this no matter the version number in the middle of this folder

@morugu
Copy link

morugu commented May 16, 2018

wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz

404 not found

@Eugst
Copy link

Eugst commented May 16, 2018

https://johnvansickle.com/ffmpeg
This guy tired to support it.

@jaredwa
Copy link

jaredwa commented May 17, 2018

You might have to install from source. To do this, you'll need yasm.

yum install yasm

then you'll want to wget the file here: https://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

You can unzip it as such: tar -vxjf ./ffmpeg-snapshot.tar.bz2

then finally make it as described here: https://github.com/FFmpeg/FFmpeg/blob/master/INSTALL.md

Type ./configure to create the configuration. A list of configure options is printed by running configure --help.

configure can be launched from a directory different from the FFmpeg sources to build the objects out of tree. To do this, use an absolute path when launching configure, e.g. /ffmpegdir/ffmpeg/configure.

Then type make to build FFmpeg. GNU Make 3.81 or later is required.

Type make install to install all binaries and libraries you built.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment