- Joined
- Jul 7, 2016
- Messages
- 609
- Points
- 28
My server needs FFMpeg hence I installed this service on CentOS server, I have noted the operation steps so that anyone who needs it can use it later.
FFmpeg is an application for converting audio and video files on Linux. Compiling ffmpeg from source code is quite complicated, here I will show you 2 ways to install:
Install directly from a supported repo.
Install using the prebuilt version.
If you need a new version of FFmpeg, you should use the second way to install it with the prebuilt version.
FFprobe is installed with FFmpeg by default, so you don't need to worry about it.
1. Install FFmpeg from repository
The repo has very little FFmpeg support, it can be said to be rare and will usually be an old version. Here I introduce the Nux Dextop repo, the latest version is 2.6.
First install epel-release
Install nux repo
Install ffmpeg and ffmpeg-devel packages
Check the settings again
2. Install FFmpeg from the prebuilt version
Download the installation script
Grant executable permission
Installing
Check the results again, the latest version is 3.4.1
Done, hope it helps!
FFmpeg is an application for converting audio and video files on Linux. Compiling ffmpeg from source code is quite complicated, here I will show you 2 ways to install:
Install directly from a supported repo.
Install using the prebuilt version.
If you need a new version of FFmpeg, you should use the second way to install it with the prebuilt version.
FFprobe is installed with FFmpeg by default, so you don't need to worry about it.
1. Install FFmpeg from repository
The repo has very little FFmpeg support, it can be said to be rare and will usually be an old version. Here I introduce the Nux Dextop repo, the latest version is 2.6.
First install epel-release
Code:
yum -y install epel-release
Code:
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
Code:
yum install ffmpeg ffmpeg-devel -y
Code:
# ffmpeg -version
ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --enable-libfaac --enable-nonfree --enable-libfdk-aac --enable-nonfree --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Download the installation script
Code:
wget https://raw.githubusercontent.com/q3aql/ffmpeg-install/master/ffmpeg-install
Code:
chmod a+x ffmpeg-install
Code:
./ffmpeg-install --install release
Code:
# ffmpeg -version
ffmpeg version 3.4.1-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 6.4.0 (Debian 6.4.0-10) 20171112
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100