Install FFmpeg on Centos/RHEL 5/6/7
FFmpeg is a gathering of libraries and tools to process interactive media substance, for example, sound, feature, subtitles and related metadata. FFmpeg is a quick feature and sound converter that can likewise snatch from a live sound/feature source.
FFmpeg is the main mixed media structure, ready to translate, encode, transcode, mux, demux, stream, channel and play virtually anything that people and machines have made. It supports the most cloud old organizations up to the front line.
FFmpeg Libraries:-
Step 1: Install FFmpeg
Before installing make sure that you have enabled atrpms repository in system. Now we install FFmpeg packages on our server.
yum install ffmpeg ffmpeg-devel
Dependencies Resolved =========================================================================================================================================================== Package Arch Version Repository Size =========================================================================================================================================================== Installing: ffmpeg x86_64 2.2.1-65.el7 atrpms 1.6 M ffmpeg-devel x86_64 2.2.1-65.el7 atrpms 5.4 M Installing for dependencies: libavcodec55 x86_64 2.2.1-65.el7 atrpms 3.3 M libavformat55 x86_64 2.2.1-65.el7 atrpms 677 k libavutil52 x86_64 2.2.1-65.el7 atrpms 118 k libavfilter4 x86_64 2.2.1-65.el7 atrpms 346 k libavdevice55 x86_64 2.2.1-65.el7 atrpms 38 k libswresample0 x86_64 2.2.1-65.el7 atrpms 41 k libswscale2 x86_64 2.2.1-65.el7 atrpms 114 k Transaction Summary =========================================================================================================================================================== Install 2 Packages (+7 Dependent packages) Total download size: 19 M Installed size: 62 M Is this ok [y/d/N]: y
Step 2: Check FFmpeg packages
Check FFmpeg packages using following command:
rpm -qa | grep ffmpeg
ffmpeg-devel-2.2.1-65.el6.x86_64 ffmpeg-2.2.1-65.el6.x86_64
Step 3: Check FFmpeg version
Check version using following command:
# ffmpeg -v
ffmpeg version 2.2.1 Copyright (c) 2000-2014 the FFmpeg developers
After installing FFmpeg packages now we can Convert any video using FFMPEG
You can also Compile FFmpeg on CentOS/RHEL
These 3 steps worked for me
sudo rpm –import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
sudo yum install ffmpeg ffmpeg-devel -y