FFmpeg source build steps | Generated by AI

Home 2026.07

Here’s the full procedure I followed to build FFmpeg from source:


1. Initial Assessment

I checked:

2. First Configure Attempt

Ran:

./configure --enable-gpl --enable-version3 --enable-nonfree

Failed with:

nasm not found or too old. Please install/update nasm or use --disable-x86asm

Why: NASM is the assembler FFmpeg uses to compile hand-optimized x86 assembly routines (SIMD-optimized codecs, filters, etc.). Without it, configure forces a fallback to pure C, which is slower but still works. I chose to install it instead for a faster build.

3. Install NASM

Since this machine requires interactive sudo, I used pkexec (Polkit GUI elevation):

pkexec bash -c 'apt-get update -qq && apt-get install -y nasm'

This installed nasm 2.16.01 from the Ubuntu 24.04 (Noble) repos.

4. Second Configure — Success

Re-ran the same configure command:

./configure --enable-gpl --enable-version3 --enable-nonfree

Succeeded. Configure auto-detected:

About the flags:

5. Compilation

make -j$(nproc)

6. Verification

Checked:

Key Takeaways


Back Donate