Skip to content

Remove FFmpeg nonfree configure flag - #19

Merged
JonnyBurger merged 3 commits into
mainfrom
codex/remove-ffmpeg-nonfree
Jul 16, 2026
Merged

JonnyBurger merged 3 commits into
mainfrom
codex/remove-ffmpeg-nonfree

Conversation

@JonnyBurger

Copy link
Copy Markdown
Member

Summary

  • remove --enable-nonfree from the FFmpeg configure args
  • add an FFmpeg source patch that treats this repo's fdk-aac-free build as a normal external library instead of a nonfree one
  • apply that patch in both existing-checkout and fresh-clone FFmpeg setup paths

Why

FFmpeg's stock configure script classifies libfdk_aac as nonfree, which forces --enable-nonfree when GPL components are enabled. This repo builds fdk-aac-free-2.0.0, so the build can keep the FDK encoder enabled without marking the resulting FFmpeg build as nonfree.

Validation

  • node --check compile-ffmpeg.mjs
  • git diff --cached --check
  • applied fdk-aac-free.patch to a clean temporary copy of FFmpeg configure
  • reran FFmpeg configure after the custom FDK override; it passed and reported License: GPL version 2 or later

@JonnyBurger
JonnyBurger marked this pull request as ready for review July 10, 2026 11:45
@JonnyBurger
JonnyBurger merged commit e6927e2 into main Jul 16, 2026
8 checks passed
@JonnyBurger
JonnyBurger deleted the codex/remove-ffmpeg-nonfree branch July 16, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant