

configure -disable-x86asm # Disable nasm dependency # install -enablerepo=raven-multimedia ffmpeg-devel ffmpeg $ sudo yum install -enablerepo=raven-multimedia

$ sudo yum install -enablerepo=PowerTools SDL2 SDL2-devel D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv_build/opencv_contrib/modules \ # make sure the OPENCV_EXTRA_MODULES_PATH correct path for cl.h $ sudo ln -s /usr/include/linux/videodev2.h videoio.h # videoio.h DBG (videodev2.h comes from kernel-headers) If fixing videoio.h, png.h and FFMPEG then it will be fixed

This should leave you with a successful install of FFMpeg.# => OpenCL_INCLUDE_DIR-NOTFOUND/CL/cl.h: No such file or directory Using DNF, issue the following command: dnf install ffmpeg ffmpeg-devel Using YUM, the following command: yum install ffmpeg ffmpeg-devel Here’s what you’ve been waiting for! Let’s actually install FFMpeg. This should show a successful install of the SDL2 libraries. With DNF, use the following command: dnf install Using YUM, issue the following command: yum install You can install it with your favorite tool again. Step 3: Install SDL2 Library DependenciesįFMpeg will require the use of the SDL2 library. Please remember, only use YUM or DNF, but not both. If you prefer DNF, use the following command: dnf config-manager -enable PowerTools & dnf install -nogpgcheck Using YUM, you can install using the following command: yum install They are both free to use, but the nonfree repository contains software that may not be covered under open source licensing. RPM Fusion has two repositories we will be using, a free one and a nonfree one. You should have successfully installed the EPEL repository at this point. If you’re using DNF, use the following command: dnf -y install DO NOT issue both commands, one or the other.įor YUM, issue the following command: yum install In CentOS 8, the EPEL repository can be installed using YUM or DNF, whichever you’re more comfortable with. The first is the EPEL repository, which contains a bunch of extra packages not shipped with the base CentOS 8 install media. There is two repositories which we will be relying on to install FFMpeg on CentOS 8. Comfortable with YUM/DNF and RPM commands (Please don’t blindly copy and paste code, understand it!).Root Access (typical on a VPS) or have a sudo user (typical on a shared hosting environment or other VPS environments).
