In CentOS7 Installation through yum ffmpeg
Crazy for technical concerns
0.3872018.04.27 15:32:40 243 read 2,966 words
1, upgrade the system
sudo yum install epel-release -y
sudo yum update -y
sudo shutdown -r now
2, the installation source Nux Dextop Yum
Because CentOS is no official FFmpeg rpm package. However, we can use third-party YUM source (Nux Dextop) to complete this work.
1) CentOS 7
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
2) CentOS 6
sudo rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
Sudo rpm Uvh http://li.nux.ro/download/nux/dextop/el6/x86_64/nux-dextop-release-0-2.el6.nux.noarch.rpm
3, and install FFmpeg FFmpeg Development Kit
sudo yum install ffmpeg ffmpeg-devel -y
4, test whether the installation is successful
ffmpeg
5, if you want more information on the use of FFmpeg, you can enter:
ffmpeg -h
example:
Ogg to mp3 converted using FFmpeg
ffmpeg -i MLKDream_64kb.mp3 -c:a libvorbis -q:a 4 MLKDream_64kb.ogg
FFmpeg will use mp4 into flv
ffmpeg -i beeen.flv -y -vcodec copy -acodec copy beeen.mp4