feat(overlay): detect libfreetype/drawtext, fail overlays gracefully #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/9/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
ffmpeg overlays (REQ-023) are drawn with the
drawtextfilter, which only exists in libfreetype-enabled ffmpeg builds. Homebrew's coreffmpegformula now omits libfreetype, so--burn-overlay/play --overlaydie mid-render with a crypticNo such filter: 'drawtext'. SPEC-001 assumed drawtext was "built into ffmpeg, no additional deps" — no longer true on common installs.Change
Keeps
drawtext(and its live running timecode) as the overlay path, but makes the libfreetype requirement first-class and self-diagnosing:ffmpeg -filtersfordrawtext; addsoverlay_drawtexttoDoctorResultwith a platform-specific install hint.ar-edit doctorprintsoverlay (drawtext) available/MISSING — … brew install homebrew-ffmpeg/ffmpeg/ffmpeg.RenderError::OverlayUnavailable: fail early with an actionable message instead of letting each segment extraction fail cryptically.drawtext(and whisper-cli), with remediation.No new crates; no behaviour change when ffmpeg has
drawtext.Tests
cargo test -p ar-edit-core --lib→ 458 passed, incl. new tests: filter parser (present / absent / name-in-description), install hint,OverlayUnavailablemessage, doctor serialization with the new field.cargo check+cargo clippy -p ar-edit-coreclean.🤖 Generated with Claude Code