Fedora

Build FFmpeg 9.1 from Source on Rocky Linux 10 and Fedora 45

FFmpeg 9.1 compiles cleanly on Rocky Linux 10 and Fedora 45. A stock ./configure still quietly drops both new Vulkan features and every other shader-based Vulkan filter. On our 8 vCPU test box (built November 2026 on Rocky Linux 10) configure finished without a single error and still disabled the APV Vulkan encoder and the fruc_vulkan filter, because no glslc shader compiler was installed.

Original content from computingforgeeks.com - post 193195

Neither distro ships the new release yet. Rocky gets 7.1.5 from EPEL and RPM Fusion and Fedora 45 gets 9.0.2, so a source build into /opt is how we ran it next to the packaged ffmpeg on both systems. Fedora also gets xHE-AAC, because RPM Fusion already carries the library Rocky lacks.

The headline result is the reworked native AAC encoder, measured against 9.0.2 built with identical flags on the same VM. At the same bitrate it keeps 700 Hz less treble, runs up to 43% slower with default settings, and -q:a 2 now writes files 39% smaller than before.

What FFmpeg 9.1 changes

The 9.1 “Gauss” release landed on 20 November 2026, about three months after 9.0. Its Changelog lists twenty entries, and most of them (an iTerm2 muxer, Rhetorex ADPCM, DVD-Audio LPCM) matter to a handful of people. The table keeps the ones that change how you build or what you can encode on Linux, and the right column says what we could check on the lab VMs.

Changelog entryBuild requirementChecked in this lab
Extensively improved AAC encoderNone, it is the native aac encoderMeasured against 9.0.2 (new default coder, size, speed, cutoff)
APV Vulkan encoder--enable-vulkan plus glslc at configure timeEncoded 1080p on the llvmpipe CPU Vulkan driver
NVIDIA optical flow interpolation filter (vf_fruc_vulkan)Vulkan headers 1.4.317 or newer, glslcBuilds, refuses to run without VK_NV_optical_flow
xHE-AAC encoding via libfdk-xhe-aac--enable-nonfree --enable-libfdk-xhe-aacBuilt and encoded on Fedora 45, not packaged on Rocky 10
ASTC via libastcenc, DSD encoder, MVR demuxer, Panasonic RW2 decoderlibastcenc for ASTC onlyNot tested
asf_o demuxer removedNoneNot tested

The AAC line affects the most people, since every -c:a aac command in every script picks up the new encoder after an upgrade. The release notes give no detail beyond “extensively improved”, so the only way to know what changed for your files is to encode the same source with both versions. We did exactly that in Step 6, and the results are not what the wording suggests.

Which FFmpeg your distro ships

Rocky Linux 10 carries no FFmpeg in its base repositories. With EPEL, CRB and RPM Fusion enabled (the commands are in Step 1), both sources offer the 7.1 line, and a search for the xHE-AAC library returns nothing. This query shows the two candidates side by side once those repositories are on.

dnf info ffmpeg ffmpeg-free | grep -E "^(Name|Version|Release|Repository)"

RPM Fusion’s full build and EPEL’s patent-trimmed ffmpeg-free turn out to be the same upstream release, 7.1.5, so picking one repository over the other buys you codecs but not a newer version.

dnf info showing ffmpeg 7.1.5 from RPM Fusion and ffmpeg-free 7.1.5 from EPEL on Rocky Linux 10, with no fdk-xhe-aac package

That 7.1.5 package is fine for everyday transcoding, and our FFmpeg install and commands guide for Rocky Linux 10 covers it. It is two feature releases behind 9.1, though, and the only Fraunhofer package in reach is fdk-aac-free, which has no xHE-AAC encoder. So on Rocky a source build is the only route to 9.1, and xHE-AAC would need the Fraunhofer library compiled by hand as well.

Fedora 45 is one release behind. Fedora’s own ffmpeg-free and RPM Fusion’s ffmpeg are both 9.0.2, and RPM Fusion nonfree ships fdk-aac-devel 3.0.0, which provides pkgconfig(fdk-xhe-aac). That pkg-config name is exactly what the 9.1 configure script probes for, so Fedora users get xHE-AAC without building any extra library.

Fedora 45 ffmpeg-free 9.0.2 and RPM Fusion ffmpeg 9.0.2, with fdk-aac-devel 3.0.0 providing pkgconfig fdk-xhe-aac

The table puts both systems side by side. The last row decides whether xHE-AAC is a dnf install away or a separate library build, and the Vulkan header row decides whether fruc_vulkan compiles at all.

Package sourceRocky Linux 10Fedora 45
Distro / EPEL ffmpeg-free7.1.5 (EPEL)9.0.2 (updates)
RPM Fusion ffmpeg7.1.59.0.2
Vulkan headers1.4.3411.4.350
glslc shader compiler2026.12026.2
pkgconfig(fdk-xhe-aac)Not availablefdk-aac-devel 3.0.0 (RPM Fusion nonfree)

Whether the build is worth it depends on what you need from 9.1. Our comparison of RPM Fusion ffmpeg and ffmpeg-free on Fedora covers the packaged route in depth.

  • Stay on the package if you transcode with x264, x265 or libvpx and never touch AAC defaults. 9.0.2 on Fedora is current enough, and 7.1.5 on Rocky gets security fixes from the repositories.
  • Build 9.1 if you want the new AAC coder and its rate-control options, the APV Vulkan encoder, or xHE-AAC on Fedora. Keep the package installed as a fallback, which is what Step 4 sets up.

The rest of this guide takes the second path on both distros, with the differences called out where they matter.

Step 1: Install the build dependencies

Both builds link x264 and x265, which come from RPM Fusion, so that repository is the first thing to enable on either distro. The Rocky lab ran on an 8 vCPU, 32 GB cloud VM and the Fedora lab on a 4 vCPU, 8 GB Proxmox VM, both logged in as a regular user with sudo. Neither machine had a GPU, which shapes what Step 7 can and cannot show.

Rocky Linux 10

Rocky needs EPEL and the CRB repository before RPM Fusion will resolve, because several -devel packages live in CRB. Our guide to enabling RPM Fusion on Rocky Linux explains each repository in turn. For this build, three commands are all you need.

sudo dnf -y install epel-release
sudo dnf config-manager --set-enabled crb
sudo dnf -y install https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm

Then install the compiler, the assembler and the codec headers. glslc and spirv-headers-devel are the two packages most build guides leave out, and without them the Vulkan encoder and the swscale SPIR-V backend are skipped without an error. Everything else on the line maps to one --enable flag in Step 3.

sudo dnf -y install gcc gcc-c++ make nasm pkgconf-pkg-config xz bzip2 x264-devel x265-devel libvpx-devel opus-devel lame-devel libdav1d-devel libass-devel freetype-devel harfbuzz-devel fontconfig-devel openssl-devel libdrm-devel vulkan-headers vulkan-loader-devel glslc spirv-headers-devel

On the test box this pulled x264-devel 0.164 and x265-devel 4.1 from RPM Fusion and vulkan-headers 1.4.341. The Vulkan version matters because the fruc_vulkan filter needs headers from 1.4.317 onward, so an older EL point release with older headers builds FFmpeg without that filter. Check rpm -q vulkan-headers first if you are on an older minor release.

Fedora 45

Fedora needs only RPM Fusion. Enable free and nonfree together, since fdk-aac-devel sits in nonfree, and see the RPM Fusion and codecs guide for Fedora if you want the repository explained in more detail.

sudo dnf -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

The package list is the Rocky one plus fdk-aac-devel. On the Fedora VM it brought in glslc 2026.2, vulkan-headers 1.4.350, x264-devel 0.165 and x265-devel 4.3, all newer than the Rocky equivalents. We added the font and SPIR-V packages in a second pass after the first build, so the full list below was installed in two transactions on both VMs rather than one.

sudo dnf -y install gcc gcc-c++ make nasm pkgconf-pkg-config xz bzip2 x264-devel x265-devel libvpx-devel opus-devel lame-devel libdav1d-devel libass-devel freetype-devel harfbuzz-devel fontconfig-devel openssl-devel libdrm-devel vulkan-headers vulkan-loader-devel glslc spirv-headers-devel fdk-aac-devel

Skip fdk-aac-devel if the binary may ever leave the machine. Linking it requires --enable-nonfree, and FFmpeg then marks the build “nonfree and unredistributable”, which rules out shipping it inside a container image or a package for other people. A build without it keeps the GPL licence and loses only the xHE-AAC encoder.

Step 2: Download and verify the 9.1 source

The release tarball comes from ffmpeg.org with a detached signature. Detect the newest 9.1.x tarball from the release index instead of hardcoding it, so the same commands pick up a point release when one ships and the upgrade in Step 8 needs no edits.

FFMPEG_VER=$(curl -s https://ffmpeg.org/releases/ | grep -oP "ffmpeg-\K9\.1(\.[0-9]+)?(?=\.tar\.xz\")" | sort -uV | tail -1)
echo "FFMPEG_VER=${FFMPEG_VER}"

On 21 November 2026 the index held only the first 9.1 tarball, so the echo printed plain 9.1 with no point suffix. Download the tarball and its .asc signature into a working directory, import the FFmpeg release key and verify before you unpack anything. An unverified tarball that you then install with sudo is a bad habit worth breaking here.

mkdir -p ~/src && cd ~/src
curl -sO https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VER}.tar.xz
curl -sO https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VER}.tar.xz.asc
curl -s https://ffmpeg.org/ffmpeg-devel.asc | gpg --import
gpg --verify ffmpeg-${FFMPEG_VER}.tar.xz.asc ffmpeg-${FFMPEG_VER}.tar.xz

The line to look for is “Good signature” from key FCF986EA15E6E293A5644F10B4322F04D67658D8, the fingerprint the FFmpeg download page publishes. The trust warning only means you have not signed the key yourself, so it is expected on a fresh keyring.

gpg: Signature made Fri 20 Nov 2026 12:18:20 AM UTC
gpg:                using RSA key FCF986EA15E6E293A5644F10B4322F04D67658D8
gpg:                issuer "[email protected]"
gpg: Good signature from "FFmpeg release signing key <[email protected]>" [unknown]
gpg: WARNING: The key's User ID is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: FCF9 86EA 15E6 E293 A564  4F10 B432 2F04 D676 58D8

The tarball was 12,557,532 bytes. Unpack it and move into the tree, where every command from here on runs.

tar xf ffmpeg-${FFMPEG_VER}.tar.xz && cd ffmpeg-${FFMPEG_VER}

Keep the tarball after unpacking. If a later configure run goes wrong, deleting the tree and unpacking again is faster than hunting for stale objects with make distclean.

Step 3: Configure and build into /opt/ffmpeg-9.1

Three flags carry the side-by-side design, and each one closes a specific failure we hit or avoided in the lab.

  • --prefix=/opt/ffmpeg-9.1 keeps every installed file out of /usr, so dnf never overwrites the build and removal is one directory.
  • --enable-shared builds shared libraries that other software (mpv, OBS, Python bindings) can link against, at the cost of a library path to manage.
  • -Wl,-rpath,/opt/ffmpeg-9.1/lib bakes that library path into the binaries, so they never need ld.so.conf. Step 4 shows what goes wrong without it.

This is the configure line used for the final Rocky build.

./configure --prefix=/opt/ffmpeg-9.1 \
  --extra-ldflags="-Wl,-rpath,/opt/ffmpeg-9.1/lib" \
  --enable-gpl --enable-version3 --enable-shared --disable-static \
  --enable-libx264 --enable-libx265 --enable-libvpx --enable-libopus \
  --enable-libmp3lame --enable-libdav1d --enable-libass --enable-libfreetype \
  --enable-libharfbuzz --enable-libfontconfig --enable-openssl --enable-libdrm \
  --enable-vulkan

On Fedora, append --enable-nonfree --enable-libfdk-xhe-aac to the same line for the xHE-AAC encoder. Configure prints a long summary and exits 0 even when it has dropped optional components, so check the generated config for the two Vulkan features before you spend minutes compiling.

grep -E "^!?CONFIG_(VULKAN|APV_VULKAN_ENCODER|FRUC_VULKAN_FILTER)=" ffbuild/config.mak

All three lines must read CONFIG_...=yes with no leading !. A ! means the component is disabled, which is exactly what we got on the first attempt before glslc was installed. The correct result looks like this.

CONFIG_VULKAN=yes
CONFIG_APV_VULKAN_ENCODER=yes
CONFIG_FRUC_VULKAN_FILTER=yes

Build with one job per CPU and time it, then install. Here time is the bash keyword, because Rocky’s cloud image has no /usr/bin/time.

time make -j$(nproc)
sudo make install

The build took 4 minutes 33 seconds of wall time and 34 minutes of CPU time on the 8 vCPU Rocky VM, and the installed tree came to 42 MB. The version banner confirms the 9.1 libraries, libavcodec 63.24.100 among them, so the binary is not accidentally picking up an older system library.

FFmpeg 9.1 make finishing in 4m33s on 8 vCPU and ffmpeg -version showing libavcodec 63.24.100

Build time follows core count. The 4 vCPU Fedora VM used less total CPU than the Rocky box but needed 78 to 95 seconds more wall time, and the 9.0.2 comparison build cost almost exactly what 9.1 did.

BuildHostWall timeCPU time (user)
9.1, first buildRocky 10, 8 vCPU Xeon 2.80 GHz4m 33s33m 59s
9.1, rebuild with harfbuzz and fontconfigRocky 10, 8 vCPU4m 06s29m 45s
9.0.2, same flags (comparison build)Rocky 10, 8 vCPU4m 31s33m 03s
9.1 with xHE-AACFedora 45, 4 vCPU Proxmox VM5m 51s21m 48s
9.1 with xHE-AAC, harfbuzz and fontconfigFedora 45, 4 vCPU5m 41s21m 14s

With the binaries installed, list the new encoder and filter and check where the binary loads its libraries from. These four commands are the real proof that the build did what the configure line asked.

/opt/ffmpeg-9.1/bin/ffmpeg -hide_banner -encoders | grep -E "apv_vulkan|aac"
/opt/ffmpeg-9.1/bin/ffmpeg -hide_banner -filters | grep fruc_vulkan
readelf -d /opt/ffmpeg-9.1/bin/ffmpeg | grep -i rpath
ldd /opt/ffmpeg-9.1/bin/ffmpeg | grep libavcodec

Both Vulkan components are present, the binary carries an RPATH of /opt/ffmpeg-9.1/lib, and ldd resolves libavcodec from that directory without any linker configuration.

FFmpeg 9.1 listing the apv_vulkan encoder and fruc_vulkan filter, with RPATH set to /opt/ffmpeg-9.1/lib

If apv_vulkan is missing from that list, the configure check above was skipped or ignored. The errors section near the end has the cause and the fix, and the rebuild takes the same four to six minutes again.

Step 4: Run 9.1 alongside the distro ffmpeg

Put /opt/ffmpeg-9.1/bin first in PATH for login shells and leave the library path alone, because the RPATH already handles it. Create a profile script for that.

sudo vim /etc/profile.d/ffmpeg-9.1.sh

Add the following. The case guard keeps the directory from being added twice when the file is sourced more than once, for example by a nested login shell, so PATH stays clean.

case ":${PATH}:" in
  *:/opt/ffmpeg-9.1/bin:*) ;;
  *) export PATH="/opt/ffmpeg-9.1/bin:${PATH}" ;;
esac

The checks below compare against the packaged ffmpeg, so install it if Step 1 was your first contact with RPM Fusion. On Rocky that is sudo dnf -y install ffmpeg (7.1.5 from RPM Fusion), and on Fedora sudo dnf -y install ffmpeg-free (9.0.2), which is what our two VMs had. Then log out and back in (or run source /etc/profile.d/ffmpeg-9.1.sh) and confirm both binaries are reachable and which one wins.

which -a ffmpeg
ffmpeg -hide_banner -version | head -1
/usr/bin/ffmpeg -hide_banner -version | head -1

On the Rocky VM plain ffmpeg is now 9.1, while the RPM Fusion 7.1.5 build stays installed and answers at its full path (on Fedora the same check shows 9.0.2 there). Package updates keep patching /usr/bin/ffmpeg as usual, and dnf never touches anything in /opt, so the two lines of maintenance stay independent.

which -a ffmpeg showing the 9.1 source build ahead of the distro ffmpeg 7.1.5 on Rocky Linux 10

Services and cron jobs do not read /etc/profile.d, so give them the full path /opt/ffmpeg-9.1/bin/ffmpeg. Switching a single command back to the packaged build is the same trick in reverse, calling /usr/bin/ffmpeg by its path. If which -a and PATH order are not second nature, the Linux Commands Cheat Sheet on files, grep, find and processes is a quick refresher on the shell tools used throughout this section.

Why not add /opt/ffmpeg-9.1/lib to ld.so.conf

Many source build guides finish with an ld.so.conf.d entry and ldconfig. On Fedora 45 that hijacks the packaged ffmpeg, because 9.0.2 and 9.1 use the same soname majors (libavcodec.so.63), so the dynamic linker hands the distro binary whichever copy it finds first. We added the entry on the Fedora VM to show it.

echo /opt/ffmpeg-9.1/lib | sudo tee /etc/ld.so.conf.d/ffmpeg-9.1.conf
sudo ldconfig
/usr/bin/ffmpeg -hide_banner -version | grep -E "^ffmpeg version|libavcodec"

The packaged 9.0.2 binary, compiled against libavcodec 63.1.102, is now running on the 63.24.100 library from /opt. It started without complaint, and that silence is the problem, because every program linked to the system libavcodec.so.63 (the packaged ffmpeg, mpv, anything built against libavcodec-free) now silently runs your build. On Fedora that build carries the libfdk code and the “nonfree and unredistributable” licence from Step 3, and every future 9.1 rebuild changes their behaviour without a dnf transaction to show for it.

Fedora distro ffmpeg 9.0.2 loading the 9.1 libavcodec after an ld.so.conf.d entry for /opt/ffmpeg-9.1/lib

If you followed along, revert it the same way we did. Removing the file and rebuilding the linker cache puts /lib64/libavcodec.so.63 back, and /usr/bin/ffmpeg reports 63.1.102 again.

sudo rm -f /etc/ld.so.conf.d/ffmpeg-9.1.conf
sudo ldconfig

On Rocky the 7.1 packages carry older soname majors (libavcodec.so.61), so the clash does not happen there today. The RPATH approach is safe on both, though, and it keeps working after the next distro rebase brings the package to the 63 series.

Step 5: Encode xHE-AAC on Fedora

With --enable-nonfree --enable-libfdk-xhe-aac on the Fedora configure line, the build gains a libfdk_xhe_aac encoder that links /usr/lib64/fdk-aac/libfdk-xhe-aac.so.0 from RPM Fusion. It accepts only 44.1 or 48 kHz, mono or stereo. We encoded the same 120 second test file used in the AAC benchmark below at 32 and 64 kbps, once with xHE-AAC and once with the native encoder.

ffmpeg -i src.wav -c:a libfdk_xhe_aac -b:a 64k xhe-64k.m4a
ffmpeg -i src.wav -c:a aac -b:a 64k aac-64k.m4a

At 64 kbps xHE-AAC kept content up to 20.3 kHz against 14.3 kHz for native AAC at the same size, using SBR to rebuild the top octave. The 32 kbps file is the catch, because FFmpeg’s own decoder rejects it outright.

libfdk_xhe_aac encoder on Fedora 45 at 32k and 64k against native AAC, and the FFmpeg USAC decoder refusing the 32k file

The numbers from that run, all on the 4 vCPU Fedora VM, show xHE-AAC costing roughly twice the encode time of the native encoder at both bitrates.

EncoderTargetMeasured bitrateSpeedProfileCutoff
libfdk_xhe_aac32k33.5 kbps27x realtimenot reportedFFmpeg cannot decode it
aac32k33.5 kbps60x realtimeLC8.3 kHz
libfdk_xhe_aac64k66.1 kbps24x realtimexHE-AAC20.3 kHz
aac64k65.4 kbps40x realtimeLC14.3 kHz

xHE-AAC is worth it below 64 kbps only if every player in your chain has a complete USAC decoder, so test the actual devices before you switch a speech or radio pipeline. FFmpeg’s decoder does not yet handle SBR ratios other than 2:1, which is what libfdk picked at 32 kbps, and that means you cannot even check those files with ffprobe on the same machine that made them.

Step 6: Measure the native AAC encoder against 9.0.2

The new encoder announces itself in -h encoder=aac. In 9.1 the default aac_coder changed from twoloop to a new nmr (noise-to-mask ratio) trellis, and three options are new: aac_rc for CBR or ABR rate control, aac_nmr_speed from 0 to 4, and aac_allow_71wide. Diffing the help output of the two builds shows every change in one place.

7c7
<   -aac_coder         <int>        E...A...... Coding algorithm (from 0 to 1) (default twoloop)
---
>   -aac_coder         <int>        E...A...... Coding algorithm (from 0 to 2) (default nmr)
9a10
>      nmr             2            E...A...... Noise-to-mask ratio scalefactor trellis
14a16,20
>   -aac_rc            <int>        E...A...... Rate-control mode (NMR coder) (from 0 to 1) (default cbr)
>      cbr             0            E...A...... Constant bitrate (corridor + leaky bucket)
>      abr             1            E...A...... Average bitrate (constant-quality target, slow rate servo)
>   -aac_nmr_speed     <int>        E...A...... NMR coder speed level: 0 = slowest/best, higher trades quality for speed (from 0 to 4) (default 0)
>   -aac_allow_71wide  <boolean>    E...A...... Allow non-PCE use of 7.1(wide) channel layout (default false)

To measure what that does, we built 9.0.2 into /opt/ffmpeg-9.0.2 with the identical configure line on the same Rocky VM and added RPM Fusion’s 7.1.5 as a third row. The method was kept simple so anyone can repeat it.

  • Source: 120 seconds of 48 kHz 16-bit stereo, two independent pink noise channels mixed with steady tones and a swept tone, generated by lavfi with fixed seeds so the file is bit-identical everywhere (sha256 a3957030...e0e32f on both VMs).
  • Speed: -benchmark real time, three runs per setting, median kept, reported as multiples of realtime.
  • Size: output file bytes, converted to the bitrate actually delivered over 120 seconds.
  • Cutoff: each file decoded back to WAV with the same 9.1 decoder, averaged spectrum compared with the source, and the first frequency above 4 kHz where the output sits 30 dB below the source for eight FFT bins running.

Pink noise is a harsh signal for a perceptual coder and is not music, so read the cutoff as “how much bandwidth the encoder chose to keep”, not as a listening score. We did not run ViSQOL or any other perceptual metric. If you want the same file, this is the source command.

ffmpeg -f lavfi -i "anoisesrc=c=pink:r=48000:a=0.12:d=120:seed=1" -f lavfi -i "anoisesrc=c=pink:r=48000:a=0.12:d=120:seed=2" -f lavfi -i "aevalsrc=0.15*sin(2*PI*440*t)+0.08*sin(2*PI*1320*t)+0.05*sin(2*PI*(3000+2000*sin(0.5*t))*t)|0.15*sin(2*PI*554*t)+0.08*sin(2*PI*2200*t)+0.04*sin(2*PI*9000*t):s=48000:d=120" -filter_complex "[0:a][1:a]amerge=inputs=2[n];[n][2:a]amix=inputs=2:normalize=0[a]" -map "[a]" -c:a pcm_s16le src.wav

Each build then encoded it with plain CBR targets and one VBR setting, with no other flags, so the defaults of each version decide the result. Two of the 128k runs looked like this.

/opt/ffmpeg-9.1/bin/ffmpeg -benchmark -i src.wav -c:a aac -b:a 128k 9.1-128k.m4a
/opt/ffmpeg-9.0.2/bin/ffmpeg -benchmark -i src.wav -c:a aac -b:a 128k 9.0.2-128k.m4a

The full run covered twelve settings with three passes each and printed one line per setting.

AAC encoder benchmark: FFmpeg 7.1.5, 9.0.2 and 9.1 at 96k, 128k and q 2 with size, speed and spectral cutoff

Condensed into the rows that matter, 7.1.5 and 9.0.2 produce near byte-identical files, and every difference sits in the 9.1 column.

Setting7.1.5 (RPM Fusion)9.0.2 (source)9.1 (source)9.1 vs 9.0.2
-b:a 96k size1,467,945 B1,467,932 B1,463,919 B0.3% smaller
-b:a 96k speed37x42x34x19% slower
-b:a 96k cutoff15.8 kHz15.8 kHz15.1 kHz700 Hz lower
-b:a 128k size1,950,090 B1,950,013 B1,943,559 B0.3% smaller
-b:a 128k speed48x55x31x43% slower
-b:a 128k cutoff17.3 kHz17.3 kHz16.6 kHz700 Hz lower
-q:a 2 bitrate343.4 kbps343.4 kbps209.5 kbps39% smaller
-q:a 2 cutoff24.0 kHz24.0 kHz18.1 kHz5.9 kHz lower

On CBR the new encoder spends the same bits and keeps a narrower band, which is consistent with an NMR coder that moves bits from the top octave into the range where masking errors are easier to hear. Whether that sounds better needs listening tests or a perceptual metric we did not run, so we will not call it a quality gain. What the numbers do prove is cost: at 128k the default setting encodes 43% slower than 9.0.2 (medians of 3.826 s against 2.199 s), though still 31 times faster than realtime on the Xeon test VM.

The VBR row is the one that will surprise people. -q:a 2 produced 343 kbps on 7.1.5 and 9.0.2 but 210 kbps on 9.1, so a batch job that relies on that setting writes files 39% smaller after the upgrade, with the band cut from 24 kHz to 18.1 kHz. If your pipeline needs a fixed size or bandwidth, pin -b:a instead, and re-check any -q:a value on a sample before you upgrade production boxes.

The spectrograms of the 96k files show the same thing visually. The swept tone and the 9 kHz line come through both encoders, and the top edge of the coded band sits lower in the 9.1 file.

Spectrograms of the same 96 kbps AAC encode from FFmpeg 9.0.2 and 9.1, showing the 9.1 lowpass slightly lower

Both images came from showspectrumpic=s=1280x540:legend=1:scale=log:stop=24000 on a 20 second slice of each decoded file. To isolate where the extra time goes, we ran three more 9.1 variants at 128k, each changing one new option.

9.1 at 128k withBitrateSpeedCutoff
defaults (nmr, speed 0, CBR)129.6 kbps31x16.6 kHz
-aac_coder twoloop129.9 kbps40x17.3 kHz
-aac_nmr_speed 4129.6 kbps39x16.6 kHz
-aac_rc abr128.6 kbps19x16.6 kHz

-aac_coder twoloop brings back the 9.0.2 bandwidth exactly, yet it still runs 27% slower than 9.0.2’s twoloop (40x against 55x), so other parts of the encoder changed too. -aac_nmr_speed 4 recovers most of the speed and keeps the new coder’s bandwidth, and ABR is the slowest mode at 19x.

For live work such as the RTMP and HLS paths in our low-latency streaming comparison, 31x is far more headroom than one audio track needs, so the default is fine there. Bulk jobs are different. When you are extracting audio from video across thousands of files, the 43% slowdown adds up to hours, and -aac_nmr_speed 4 is the setting we would run.

Step 7: Try the APV Vulkan encoder without a GPU

Neither lab VM has a GPU, but Mesa’s llvmpipe driver implements Vulkan on the CPU, which is enough to check that the APV encoder works end to end. On Rocky the driver comes from mesa-vulkan-drivers, and vulkan-tools provides vulkaninfo to confirm which device FFmpeg will see.

sudo dnf -y install mesa-vulkan-drivers vulkan-tools
vulkaninfo --summary | grep -E "deviceName|driverName|apiVersion"

The only device is the software rasterizer, reporting Vulkan 1.4.348.

	apiVersion         = 1.4.348
	deviceName         = llvmpipe (LLVM 22.1.8, 256 bits)
	driverName         = llvmpipe

We targeted APV’s 10-bit 4:2:2 profile, the common one for camera and editing work, so convert the input to yuv422p10le, upload it to the Vulkan device and encode. We used five seconds of a 1080p test pattern, then tried fruc_vulkan on the same device with a shorter 720p clip.

ffmpeg -hide_banner -benchmark -init_hw_device vulkan=vk -f lavfi -i testsrc2=s=1920x1080:r=30:d=5 -vf "format=yuv422p10le,hwupload" -c:v apv_vulkan test-1080p.apv
ffmpeg -hide_banner -init_hw_device vulkan=vk -f lavfi -i testsrc2=s=1280x720:r=30:d=2 -vf "format=nv12,hwupload,fruc_vulkan" -f null -

The encoder produced 150 frames at 29 fps (0.95x realtime) and a 40.7 MB file at 65 Mbit/s, all on CPU. ffprobe read it back as APV 1920×1080 yuv422p10le, and a full decode completed without errors. The frame interpolation filter, by contrast, stopped immediately.

APV Vulkan encode of 1080p test video on the llvmpipe CPU Vulkan driver, and fruc_vulkan failing without VK_NV_optical_flow

fruc_vulkan needs the VK_NV_optical_flow extension, which only NVIDIA drivers expose, so it cannot run on llvmpipe, AMD or Intel. The llvmpipe numbers above prove the build is correct, but they say nothing about GPU speed, and we did not run either feature on real NVIDIA hardware for this article.

FFmpeg 9.1 build errors and fixes

Each of these came up on the two lab VMs while building 9.1. The first two are silent until you look for them, which is why the config check in Step 3 is there.

apv_vulkan and fruc_vulkan missing after a successful build

Configure looks for a shader compiler under three program names, and with none installed it disables both new components, plus every other shader-based Vulkan filter and encoder, without printing a warning. The only trace is in ffbuild/config.log.

./configure: line 1044: glslc: command not found
./configure: line 1044: glslang: command not found
./configure: line 1044: glslangValidator: command not found

ffbuild/config.mak then shows !CONFIG_APV_VULKAN_ENCODER=yes and !CONFIG_FRUC_VULKAN_FILTER=yes. Install the glslc package (the glslang package works too, since configure accepts either) and run configure again, since a plain make reuses the old config.

Unknown option “–enable-libshaderc”

Older build scripts pass --enable-libshaderc to get SPIR-V support. FFmpeg 9.1 has no such option and stops at once with Unknown option "--enable-libshaderc". Drop the flag, because the glslc program covers the same need.

WARNING: spirv-headers not found, swscale SPIR-V backend unavailable

This was the only warning in an otherwise clean configure on both distros. It disables the swscale SPIR-V backend while leaving the rest of the Vulkan support intact. Installing spirv-headers-devel cleared it, which is why the package is in the Step 1 list.

No such filter: ‘drawtext’

Our first build had --enable-libfreetype but no drawtext filter, because 9.1 configure declares drawtext_filter_deps="libfreetype libharfbuzz". Add --enable-libharfbuzz (and --enable-libfontconfig for font name lookup) and install harfbuzz-devel and fontconfig-devel. The rebuild listed drawtext again.

USAC SBR with a ratio other than 2:1 is not implemented

FFmpeg 9.1’s decoder prints this and exits with “Not yet implemented in FFmpeg, patches welcome” on the 32 kbps xHE-AAC file from Step 5. The encode is fine, but the decoder lacks that SBR mode. Raise the bitrate to 64k, where libfdk chose a mode FFmpeg decodes, or test with the playback device you are targeting.

/usr/bin/time: No such file or directory

Rocky Linux 10 cloud images do not install GNU time, so build scripts that call /usr/bin/time fail with “No such file or directory” before make runs. Use the bash time keyword as in Step 3, or install the package with sudo dnf -y install time.

Step 8: Upgrade or remove the source build

A 9.1.x point release keeps the same sonames and the same prefix, so upgrading means rerunning Step 2 (the version detection returns the new tarball), the same configure line in the new tree, and sudo make install over the old files. Nothing else changes, because the profile script and RPATH both point at /opt/ffmpeg-9.1. A move to 9.2 is different, and it deserves its own prefix so you can benchmark it against 9.1 the way we did here.

Removing the build takes two deletions, since make install wrote nothing outside the prefix and the only other file is the profile script from Step 4. The third line is harmless when the file is absent and cleans up after the ld.so.conf experiment if you ran it.

sudo rm -rf /opt/ffmpeg-9.1
sudo rm -f /etc/profile.d/ffmpeg-9.1.sh
sudo rm -f /etc/ld.so.conf.d/ffmpeg-9.1.conf && sudo ldconfig

We removed the 9.0.2 comparison build the same way after the benchmark, which freed 40 MB and left only ffmpeg-9.1 in /opt. The RPM Fusion ffmpeg in /usr/bin was never involved, because it shares no file with either tree, so a new login shell after both deletions falls back to the packaged binary.

Keep reading

How to Upgrade Fedora 44 to Fedora 45 (GUI, CLI and Rollback) Fedora How to Upgrade Fedora 44 to Fedora 45 (GUI, CLI and Rollback) Things to Do After Installing Fedora 45 Workstation Fedora Things to Do After Installing Fedora 45 Workstation Enable RPM Fusion and Multimedia Codecs on Fedora 45 / 44 / 43 Fedora Enable RPM Fusion and Multimedia Codecs on Fedora 45 / 44 / 43 Patch PHP CVE-2026-115560 on RHEL, Rocky Linux and AlmaLinux AlmaLinux Patch PHP CVE-2026-115560 on RHEL, Rocky Linux and AlmaLinux Patch Java4Shell (CVE-2026-114938) on RHEL, Rocky Linux and AlmaLinux Rocky Linux Patch Java4Shell (CVE-2026-114938) on RHEL, Rocky Linux and AlmaLinux Install Podman Compose on Fedora 45 / 44 and Run Rootless Stacks Fedora Install Podman Compose on Fedora 45 / 44 and Run Rootless Stacks

Leave a Comment

Press ESC to close