Discover the straightforward steps for install FFmpeg on Rocky Linux 9 with our easy-to-follow guide. Optimize multimedia processing and unlock powerful capabilities for audio and video manipulation effortlessly. #centlinux #linux #ffmpeg
Table of Contents
What is FFmpeg?
FFmpeg is a powerful open-source software suite that allows users to record, convert, and stream audio and video files. It is a command-line tool that provides a vast range of functionalities for manipulating multimedia data.
Here are some key features of FFmpeg:
- Format Conversion: FFmpeg supports a wide variety of multimedia formats, including video containers (such as MP4, AVI, and MKV) and audio formats (such as MP3, AAC, and FLAC). It allows you to convert files between different formats with various encoding options.
- Transcoding: FFmpeg enables you to transcode multimedia files, meaning you can change the video and audio codecs, bitrate, frame rate, resolution, and other parameters to optimize the file for different devices or platforms.
- Recording: FFmpeg can capture audio and video from various sources, including webcams, microphones, and desktop screens. It provides options to set the capture duration, input devices, and output formats.
- Filtering and Effects: FFmpeg includes a powerful filtering system that allows you to apply various effects, transformations, and enhancements to multimedia streams. You can adjust brightness, contrast, and saturation, apply overlays, add subtitles, crop videos, and perform many other operations.
- Streaming: FFmpeg supports streaming multimedia content over network protocols like HTTP, RTMP, and RTP. It can encode and transmit audio/video streams in real-time, making it useful for live streaming applications.
- Cross-platform: FFmpeg is available for multiple operating systems, including Windows, macOS, Linux, and BSD. This makes it versatile and widely used across different platforms.
FFmpeg is highly flexible and extensively used by professionals and enthusiasts in multimedia processing, video editing, streaming services, and other applications that involve working with audio and video files.
What is FFmpeg used for?
FFmpeg is a versatile multimedia framework that can be used for encoding, decoding, transcoding, muxing, demuxing, streaming, and filtering audio and video files. It’s commonly used for tasks such as converting video and audio formats, editing videos, streaming media over networks, and more.
Recommended Training: FFmpeg – The Complete Guide from Syed Andaleeb Roomy
Environment Specification:
n this tutorial, we are utilizing a minimal installation of Rocky Linux 9, configured as a virtual machine with the following specifications:
- CPU – 3.4 Ghz (2 cores)
- Memory – 2 GB
- Storage – 20 GB
- Operating System – Rocky Linux release 9.1 (Blue Onyx)
- Hostname – rocky-02.centlinux.com
- IP Address – 192.168.116.128/24
This setup provides a lightweight yet sufficient environment for demonstrating and testing the tasks covered in this guide. Adjust the resources as needed based on your requirements and the scale of the workloads you plan to run.
New Amazon Fire HD 8 Kids Pro tablet, ages 6-12. Bright 8″ HD screen, includes ad-free content, parental controls, 13-hr battery, slim case for older kids, 32GB, Jungle Cat, (2024 release)
$84.99 (as of February 4, 2025 14:53 GMT +00:00 – More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Prepare your Rocky Linux OS:
Log in as the root user on your Linux server using an SSH client to gain administrative access. SSH (Secure Shell) is a secure and encrypted protocol that allows you to remotely connect to your server and execute commands. Ensure that you have the correct root credentials and the server’s IP address or hostname. Open your preferred SSH client, such as PuTTY, Terminal, or any other SSH tool, and initiate the connection. Once logged in, you will have full administrative privileges, enabling you to manage system configurations, install software, and perform maintenance tasks efficiently. Always proceed cautiously with root access to avoid unintended changes or issues.
# dnf update -y
In some cases, running the above command may also update your Linux kernel to a newer version. When this happens, it is essential to reboot your Linux operating system to ensure the system loads the updated kernel. The new kernel version typically includes important security patches, performance improvements, and bug fixes, making your system more robust and efficient. Restarting your Linux OS allows these updates to take effect and ensures the stability of your environment. After rebooting, you can verify the active kernel version to confirm the update was successful. Always plan reboots during maintenance windows to minimize disruption, especially on production servers.
# reboot
Note down the version of Linux OS and Linux Kernel.
# cat /etc/rocky-release Rocky Linux release 9.1 (Blue Onyx) # uname -r 5.14.0-162.23.1.el9_1.x86_64
Install RPMFusion Yum Repository:
FFmpeg software is available in RPM Fusion yum repository. Therefore, you need to install RPM Fusion repository first.
However, RPM Fusion repository requires some software packages from CodeReady Builder (CRB) yum repository.
CRB repository is formerly known as Power Tools Repo in previous versions of CentOS & Rocky Linux. But to install CRB repository you need to install Extra Packages for Enterprise Linux (EPEL) yum repository.
In short, you need to install EPEL, CRB and RPM Fusion repositories on your Linux server.
Execute following dnf command to install EPEL repo.
# dnf install -y epel-release
To proceed with the installation or configuration, the next step is to enable the CRB (CodeReady Builder) repository on your Linux system. This repository provides access to a collection of development tools and libraries that may be required for certain installations or functionalities. You can enable the CRB repository by executing the appropriate command at your Linux terminal. Activating this repository ensures that your system can fetch the necessary dependencies and packages efficiently. Make sure to verify the repository’s activation status after enabling it to confirm that it is set up correctly and ready to use.
# /usr/bin/crb enable Enabling CRB repo CRB repo is enabled and named: crb
RPM Fusion consist for to separate yum repositories.
- free for Open Source Software (as defined by the Fedora Licensing Guidelines) which the Fedora project cannot ship due to other reasons
- nonfree for redistributable software that is not Open Source Software (as defined by the Fedora Licensing Guidelines); this includes software with publicly available source-code that has “no commercial use”-like restrictions
Execute following commands to install free and nonfree RPM Fusion repositories.
# dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm # dnf install -y --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
Build your cache for newly installed yum repositories.
# dnf makecache Extra Packages for Enterprise Linux 9 - x86_64 7.5 kB/s | 7.4 kB 00:00 Rocky Linux 9 - BaseOS 881 B/s | 4.1 kB 00:04 Rocky Linux 9 - AppStream 857 B/s | 4.5 kB 00:05 Rocky Linux 9 - CRB 1.6 kB/s | 4.1 kB 00:02 Rocky Linux 9 - Extras 926 B/s | 2.9 kB 00:03 RPM Fusion for EL 9 - Free - Updates 44 kB/s | 245 kB 00:05 RPM Fusion for EL 9 - Nonfree - Updates 24 kB/s | 63 kB 00:02 Metadata cache created.
Install FFmpeg on Rocky Linux 9:
All the necessary yum repositories have been successfully configured, ensuring access to the required packages. With this setup in place, you are now ready to proceed with the installation of FFmpeg on your Linux system. To do so, simply execute the appropriate command in your Linux terminal. This streamlined process allows you to install FFmpeg effortlessly, providing you with a powerful multimedia framework for handling video, audio, and other multimedia files. Whether you’re encoding, decoding, streaming, or editing media, FFmpeg will be fully operational once installed.
# dnf install -y ffmpeg ffmpeg-devel
Verifying installation of FFmpeg software by running ffmpeg command.
# ffmpeg -version ffmpeg version 5.1.3 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 11 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' --extra-cflags=' -I/usr/include/rav1e' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --enable-chromaprint --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libdav1d --enable-libass --enable-libbluray --enable-libbs2b --enable-libcdio --enable-libdrm --enable-libjack --enable-libjxl --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libilbc --enable-libmp3lame --enable-libmysofa --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librav1e --enable-librubberband --enable-libsmbclient --enable-version3 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-version3 --enable-vapoursynth --enable-libvpx --enable-vulkan --enable-libshaderc --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libxml2 --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-avfilter --enable-libmodplug --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-lto --enable-libmfx --enable-runtime-cpudetect libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100
FFmpeg software has been installed on your Linux OS.
Getting Started Becoming a Master Hacker: Hacking is the Most Important Skill Set of the 21st Century!
$39.99 (as of February 4, 2025 14:53 GMT +00:00 – More infoProduct prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on [relevant Amazon Site(s), as applicable] at the time of purchase will apply to the purchase of this product.)Video Tutorial:
Final Thoughts
In conclusion, how to install FFmpeg on Rocky Linux 9 is a straightforward process once the necessary repositories are configured. FFmpeg is a versatile tool that enables you to work with multimedia files, whether it’s converting formats, streaming content, or editing videos and audio. By following the steps outlined in this guide, you can set up FFmpeg quickly and efficiently, unlocking powerful media-handling capabilities for your Linux system. With FFmpeg installed, you’re equipped to handle a wide range of multimedia tasks with ease and flexibility.
Struggling with AWS or Linux server issues? I specialize in configuration, troubleshooting, and security to keep your systems performing at their best. Check out my Fiverr profile for details.
Leave a Reply
You must be logged in to post a comment.