-
-
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 |
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
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
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
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
404 not found
https://johnvansickle.com/ffmpeg
This guy tired to support it.
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!
404 - not found