Installing FFmpeg on your website opens up a world of multimedia possibilities. It's a powerful tool that helps you handle and manipulate different audio and video formats.
With FFmpeg, you can encode, decode, and convert videos, as well as manipulate and convert audio files. This means you can support dynamic multimedia content on your website, improve media playback, and seamlessly integrate with other multimedia tools.
This guide covers installing FFmpeg on CentOS and AlmaLinux.
Install FFmpeg on CentOS
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
- Install the EPEL repository
yum install epel-release
- Install the 3rd party RPM Fusion repository
yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
- Install the
ffmpeg
andffmpeg-devel
packages along with their dependencies
yum -y install ffmpeg ffmpeg-devel
- Test the installation
ffmpeg -version
TIP: If the installation was successful, this command will output version information for FFmpeg.
EXAMPLE:root@vps12345 [~]# ffmpeg -version
ffmpeg version N-100689-gdf4e2b9 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
Install FFmpeg on AlmaLinux
IMPORTANT: This solution will require root access. If this needs to be obtained, follow the guide on requesting root access.
- SSH into the server as root
- Install and enable the EPEL repository
dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
yum-config-manager --enable powertools - Install the 3rd party RPM Fusion repository
dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm -y
dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm -y - Install the
ffmpeg
andffmpeg-devel
packages along with their dependencies
dnf -y install ffmpeg ffmpeg-devel
- Test the installation
ffmpeg -version
TIP: If the installation was successful, this command will output version information for FFmpeg.
EXAMPLE:
root@vps12345 [~]# ffmpeg -version
ffmpeg version 4.2.8 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 8 (GCC)
Comments
0 comments
Article is closed for comments.