Fix Missing libass or drawtext Filter on macOS FFmpeg
AVFilterGraph: No such filter: "drawtext" | [AVFilterGraph] No option name near "captions.ass" | Error initializing complex filters Running FFmpeg subtitle burn-in (-vf ass=captions.ass or -vf subtitles=subs.srt) or lower-third title rendering (-vf drawtext=...) crashes immediately on macOS Homebrew installs even though the exact command works on Linux CI.
Recent default Homebrew ffmpeg bottles on macOS drop optional font/subtitle libraries (libass, libfreetype, libharfbuzz) or change filter compilation flags—causing copied FFmpeg text and caption commands to fail with cryptic filtergraph parse errors.
Copy-Paste Verified Fix
# 1. Probe whether your current ffmpeg build includes ass / subtitles / drawtext
ffmpeg -hide_banner -filters | grep -E ' (ass|subtitles|drawtext) ' || echo "MISSING libass/libfreetype in stock ffmpeg"
# 2. Option A (100% Portable — Zero Extra Libraries): Composite crisp RGBA PNG title/lower-third plate
ffmpeg -y -i input.mp4 -loop 1 -t 4 -i title_rgba.png \
-filter_complex "[1:v]format=rgba,fade=t=in:st=0.5:d=0.25:alpha=1,fade=t=out:st=3.5:d=0.25:alpha=1[t];[0:v][t]overlay=0:0:shortest=1,format=yuv420p[v]" \
-map "[v]" -map 0:a? -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart -c:a copy output_titled.mp4
# 3. Option B (Soft toggleable MP4 captions — zero libass required!)
ffmpeg -y -i input.mp4 -i captions.srt -c copy -c:s mov_text output_softsubs.mp4
# 4. Option C (When hard-burned .ass captions are strictly mandatory on macOS):
# brew tap homebrew-ffmpeg/ffmpeg && brew install homebrew-ffmpeg/ffmpeg/ffmpeg-full Before vs. After (Broken Pattern vs. Verified Fix)
ffmpeg -i input.mp4 -vf "drawtext=text='Launch Day':fontsize=64:fontcolor=white:x=80:y=80" out.mp4 ffmpeg -y -i input.mp4 -loop 1 -t 4 -i title_rgba.png \
-filter_complex "[1:v]format=rgba,fade=t=in:st=0.5:d=0.25:alpha=1,fade=t=out:st=3.5:d=0.25:alpha=1[t];[0:v][t]overlay=0:0:shortest=1,format=yuv420p[v]" \
-map "[v]" -map 0:a? -c:v libx264 -crf 18 -pix_fmt yuv420p -c:a copy output_titled.mp4 Why this works: Built-in overlay and fade filters ship in every FFmpeg distribution on earth, letting you design razor-sharp typography in Figma/Satori/HTML with zero library dependency surprises.
Why This Failure Happens in Real Pipelines
Most creators waste an hour fighting shell quote escaping around colons (\:) or Windows/macOS font paths inside drawtext, only to discover that their installed ffmpeg binary was never compiled with --enable-libfreetype or --enable-libass in the first place. A single 1-second check via ffmpeg -hide_banner -filters immediately tells you whether the filters exist.
Even when drawtext IS present, FFmpeg text rendering lacks clean optical kerning, custom web-font fallback, box padding, and drop shadows. For lower-thirds, titles, and end-cards, rendering crisp transparent RGBA PNG plates via Figma, Satori, Playwright, or sharp and compositing them with FFmpeg’s built-in overlay filter is 100% portable across stock macOS, Linux, Windows, and Docker builds—while giving vastly sharper studio typography.
Step-by-Step Resolution & Verification
- 01
Probe installed filters before debugging shell quoting
Run ffmpeg -hide_banner -filters | grep -E " (ass|subtitles|drawtext) ". If nothing prints, your FFmpeg binary was compiled without font-rendering support.
- 02
Switch titles and lower-thirds to transparent RGBA PNG overlays
Generate exact brand typography as a 1920×1080 or 1080×1920 RGBA PNG via Figma, Satori, or sharp, then composite with built-in FFmpeg overlay + alpha fade.
- 03
Use ffmpeg-full (keg-only path) or soft mov_text tracks for captions
If you install homebrew-ffmpeg/ffmpeg/ffmpeg-full, note that it is keg-only—invoke /opt/homebrew/opt/ffmpeg-full/bin/ffmpeg explicitly or add it to PATH ahead of stock /opt/homebrew/bin/ffmpeg.
/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg -hide_banner -filters | grep -E ' (ass|subtitles|drawtext) ' .. ass V->V Render ASS subtitles onto input video using the libass library.
.. drawtext V->V Draw text on top of video frames using libfreetype library. How to Prevent This Error From Recurring
Prefer RGBA PNG overlays over drawtext in automated team scripts
PNG overlays preserve custom licensed brand fonts, exact kerning, and cross-OS portability across macOS laptops and Linux CI containers.
Check filter availability at the top of caption bash scripts
Adding a 1-line ffmpeg -filters | grep -q " ass " pre-flight guard gives teammates an instant actionable error message instead of opaque AVFilterGraph failures.
Use Remotion for animated word-by-word Reels typography
When you need spring animations, active-word color highlighting, and custom CSS web fonts, Remotion renders cleanly in headless Chromium without touching libass.
Troubleshooting FAQs
- Why did FFmpeg say "No option name near captions.ass" instead of "missing filter"?
- Some FFmpeg builds lack libass entirely or misparse unescaped colons/paths inside filter strings. Running ffmpeg -filters | grep ass immediately tells you whether the library exists in your binary.
- I ran brew install ffmpeg-full, so why does ffmpeg still say missing drawtext?
- Homebrew installs ffmpeg-full as keg-only so it does not overwrite stock ffmpeg. Either call /opt/homebrew/opt/ffmpeg-full/bin/ffmpeg directly or prepend /opt/homebrew/opt/ffmpeg-full/bin to your shell PATH.
- Can Remotion render animated word-by-word captions without FFmpeg libass?
- Yes. Remotion renders captions cleanly inside headless Chromium using real CSS and web fonts—completely bypassing FFmpeg libass and libfreetype limitations.
- What is the cleanest way to keep burned-in vertical captions clear of TikTok and Reels UI?
- Set PlayResX: 1080, PlayResY: 1920, Alignment: 2, MarginV: 520, MarginL: 80, and MarginR: 170 in your .ass header—or verify frames visually in our 9:16 Safe-Zone Checker.