mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-14 18:01:20 +08:00
34a6366776
The CLI had its own ffmpeg PATH resolver in packages/cli/src/browser/ffmpeg.ts, separate from the engine resolver that already preferred spawnable Windows binaries. Its results feed spawn/execFileSync without shell:true in snapshot.ts, transcribe.ts, and background-removal/pipeline.ts, so a .cmd/.bat shim ahead of ffmpeg.exe on Windows PATH still caused spawn EINVAL there. Converges both resolvers on the engine's shared selectBinaryFromPathResults (now re-exported from the engine package root) instead of duplicating the selection logic a third time.