Conversation
The macOS ffmpeg bundle is built without openh264, so asking it for libopenh264 failed every extension clip with "Unknown encoder" and left the inserted word's stretch without media. The encoder is now chosen per platform: h264_videotoolbox on macOS, with -allow_sw 1 so a size or a Mac the hardware encoder refuses falls back to Apple's software one, and libopenh264 on Windows and Linux.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Summary
Extension clips now encode on macOS. Until now each one failed with
Unknown encoder 'libopenh264': the macOS ffmpeg bundle is built with VideoToolbox and without openh264, so the inserted word's stretch got no media.-c:v h264_videotoolbox -allow_sw 1.-c:v libopenh264, unchanged.-allow_sw 1lets VideoToolbox fall back to Apple's software encoder. The M1's hardware one refuses sizes above 4096x2304, and a generated clip copies its source's geometry. At 4K it costs nothing measurable.No released version is affected: insertions are only enabled in dev builds.
Not touched: the macOS export ladder in
crates/compositor/src/pipeline_macos.rsalso ends onlibopenh264andlibkvazaar, which that bundle lacks. It is an export fallback, not this defect.Related issue
None.
Type of change
Release impact
Desktop impact
Screenshots / video
No UI change.
Testing
npx vitest --run electron/media/extensionClip.test.ts, 12/12, each platform passed in. Puttinglibopenh264back on macOS fails two tests.npm run lintare green.h264_videotoolboxis its only H.264 encoder;-12903. With-allow_sw 1, every size up to 8K encodes.libopenh264and rejects-allow_sw. A test pins it to macOS.Not verified: the in-app flow on macOS, and Intel Macs.
🤖 Generated with Claude Code
Summary by CodeRabbit